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

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

Wikiposts
Search
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?

Thread Tools
 
Search this Thread
 
Old 23rd Oct 2013, 22:18
  #1 (permalink)  
Thread Starter
 
Join Date: Aug 2002
Location: Surrey
Posts: 179
Likes: 0
Received 0 Likes on 0 Posts
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 Oct 2013 at 22:18.
mrsurrey is offline  
Old 23rd Oct 2013, 22:43
  #2 (permalink)  
 
Join Date: Jun 2003
Location: The Netherlands
Posts: 246
Likes: 0
Received 0 Likes on 0 Posts
Does VBA - Visual Basic for Applications, built in Excel, not give you enough options?
JeroenC is offline  
Old 24th Oct 2013, 07:14
  #3 (permalink)  
 
Join Date: Mar 2003
Location: England
Posts: 286
Likes: 0
Received 0 Likes on 0 Posts
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  
Old 24th Oct 2013, 15:31
  #4 (permalink)  
 
Join Date: Jul 2010
Location: East sussex
Posts: 624
Likes: 0
Received 0 Likes on 0 Posts
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 Oct 2013 at 15:47.
dazdaz1 is offline  
Old 24th Oct 2013, 23:59
  #5 (permalink)  
Thread Starter
 
Join Date: Aug 2002
Location: Surrey
Posts: 179
Likes: 0
Received 0 Likes on 0 Posts
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  
Old 25th Oct 2013, 00:40
  #6 (permalink)  
TWT
 
Join Date: Apr 2008
Location: troposphere
Posts: 832
Received 34 Likes on 19 Posts
COBOL mmmmmm
TWT is offline  
Old 25th Oct 2013, 17:33
  #7 (permalink)  

Plastic PPRuNer
 
Join Date: Sep 2000
Location: Cape Town
Posts: 1,898
Received 0 Likes on 0 Posts
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  
Old 25th Oct 2013, 20:37
  #8 (permalink)  
Spoon PPRuNerist & Mad Inistrator
 
Join Date: Sep 2003
Location: Twickenham, home of rugby
Posts: 7,396
Received 265 Likes on 173 Posts
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  
Old 25th Oct 2013, 21:32
  #9 (permalink)  
 
Join Date: Jul 2008
Location: uk
Posts: 894
Likes: 0
Received 0 Likes on 0 Posts
Aaaaaah. I used to be fairly fluent in BASIC.

I miss all the PEEKing and POKEing.
vulcanised is offline  
Old 26th Oct 2013, 05:06
  #10 (permalink)  
 
Join Date: Nov 2002
Location: 39N 77W
Posts: 1,630
Likes: 0
Received 0 Likes on 0 Posts
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  

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



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

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