Go Back  PPRuNe Forums > Misc. Forums > Computer/Internet Issues & Troubleshooting
Reload this Page >

How hard is computer programming / how do I go about it?


Notices
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

How hard is computer programming / how do I go about it?

Old 23rd October 2013 | 22:18
  #1 (permalink)  
Thread Starter
 
Joined: Aug 2002
Posts: 181
Likes: 0
From: Surrey
How hard is computer programming / how do I go about it?

Hello,

I've created lots of mysql/php websites using relational databases and I'm happy I can scale them pretty much infinitely. I'm wondering how much harder it is to create computer programs (for Microsoft operating systems)....

I have a very strange burning desire - I want to write a computer program that addresses all the shortcomings of Pivot Tables in Excel, for a particular niche that I work in. Basically it will be like a Microsoft Excel workbook with a Pivot Table - one sheet holds the table of data, and the other sheet holds the Pivot Table.

So how hard do you think it would be? And what computer language should I use?

Thanks,

MrS

Last edited by mrsurrey; 23rd October 2013 at 22:18.
mrsurrey is offline  
Reply
Old 23rd October 2013 | 22:43
  #2 (permalink)  
 
Joined: Jun 2003
Posts: 246
Likes: 0
From: The Netherlands
Does VBA - Visual Basic for Applications, built in Excel, not give you enough options?
JeroenC is offline  
Reply
Old 24th October 2013 | 07:14
  #3 (permalink)  
 
Joined: Mar 2003
Posts: 285
Likes: 0
From: England
Mrs S,

I agree with Jeroen: if you want to output to Excel then VBA is probably the right tool. It is built in to excel and the programming interface is accessed by pressing alt+F11.

For your needs I suggest you look at custom functions rather than subroutines.

Subroutines are either run from the macro menu or by keyboard short cut. Custom functions can be entered into cells like the built in functions. I have used them to create data queries.

If you have the data in excel already oftem you can often achieve better results than pivot tables with a combination of INDEX, MATCH, SUMIF and MMULT.

HTH

EG
ExGrunt is offline  
Reply
Old 24th October 2013 | 15:31
  #4 (permalink)  
 
Joined: Jul 2010
Posts: 624
Likes: 0
From: East sussex
mrsurry........COBAL is the way to go, big revival according to the net. Thing is a 'compiler' = to machine code can cost big bucks.

Last edited by dazdaz1; 24th October 2013 at 15:47.
dazdaz1 is offline  
Reply
Old 24th October 2013 | 23:59
  #5 (permalink)  
Thread Starter
 
Joined: Aug 2002
Posts: 181
Likes: 0
From: Surrey
VBA is a very inefficient solution - it takes a long time to implement a complex solution (often an extra employee to code and maintain), it's unstable, inelegant (needs lots of workarounds), prone to programmer error, hard to hand over code during staff turnover.

And pivot tables are hard to adjust for people not familiar with excel and the format isn't flexible enough to make a presentation 'clean' enough for management consumption. And there are technical bugs with calculated fields and calculated items that I won't bore you with.

So please humour me :-) how do I go about this?

I think the consensus is that the best coders are young (according to gates/jobs/zucerburg) so surely that suggest that it just takes 1-2 years worth of programming knowledge and then a whole load of motivation? I just need pointing in the right direction...

Thanks,

MrS

p.s. thanks Daz I'll give COBAL a look
mrsurrey is offline  
Reply
Old 25th October 2013 | 00:40
  #6 (permalink)  
TWT
 
Joined: Apr 2008
Aviation Qualifications: SLF
Posts: 1,117
Likes: 228
From: troposphere
COBOL mmmmmm
TWT is offline  
Reply
Old 25th October 2013 | 17:33
  #7 (permalink)  

Plastic PPRuNer
25 Anniversary
 
Joined: Sep 2000
Posts: 1,902
Likes: 0
From: Rochechouart, France
Write a program to get a date (and parse it correctly) in a lower level language (no get_date modules/libraries).

Do it in COBOL, GW-Basic, FORTH, FORTRAN, C (not++), PROLOG, Ada, Lisp, Smalltalk, DBase, and Haskell.

Make it intelligent - sensible responses to unexpected input

"January has only 31 days - what planet are you from?"
"2014 isn't a leap year so it can't be 29th February!"
"Are you sure you want to set the date for this event 4234 years into the future?"
"That was the day before yesterday!"
"1342? Now we're back in the Middle Ages! [BTW, Louis I was crowned King of Hungary on July 16th]"

That is the real future - even the basic get module is harder than you would think to write from complete scratch.

Not that hard to write a quick-and-dirty but making it elegant and economical is a real challenge.

Mac



PS: This will drive you insane because the intelligence, knowledge and humour built into the program is infinite - but it's fun to make a start!

See you in 4 years.

Mac the Knife is offline  
Reply
Old 25th October 2013 | 20:37
  #8 (permalink)  
Administrator
 
Joined: Mar 2001
Aviation Qualifications: PPL
Posts: 8,121
Likes: 686
From: Twickenham, home of rugby
A lesson I learned a long time ago, when studying civil engineering in University, was to break an engineering programming task down into 3 phases:

understanding and stating the actual problem and solution in as simple English / mathematical terms as possible;
developing high-level pseudo-code algorithms to model the solution;
finally, writing code in whatever specific language was available / mandated / chosen.

This may seem bleeding obvious to many, but at the time it was a major insight, as I had been confusing the how with the what, why and with which up to that point.

Getting halfway decent and presentable output in FORTRAN IV was still a bugger, ISTR. BASIC was a bit easier if access to a PC was available (I am talking 80's here!)

SD
Saab Dastard is offline  
Reply
Old 25th October 2013 | 21:32
  #9 (permalink)  
 
Joined: Jul 2008
Posts: 894
Likes: 1
From: uk
Aaaaaah. I used to be fairly fluent in BASIC.

I miss all the PEEKing and POKEing.
vulcanised is offline  
Reply
Old 26th October 2013 | 05:06
  #10 (permalink)  
 
Joined: Nov 2002
Posts: 1,630
Likes: 0
From: 39N 77W
Not accommodating all the "what if?" s can be the downfall of software.

I was nearly ready to submit my income tax filing when I discovered that the most-commonly-used preparation software had ignored one of the sub-forms. It took me a long time to find that I had made the error of calling it sub-form "1" (one) rather than "01" (zero one). The software wasn't smart enough to handle this. I haven't used that brand of software since then.
seacue is offline  
Reply

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.