943,508 Members | Top Members by Rank

Ad:
Apr 10th, 2004
0

Nicest Programming Shortcuts

Expand Post »
Hi ,
What is the nicest shortcut you discoverd when coding? I don't know about you - but I have unbounded love for recursion . It's always hard to visualise (for me atleast...) but it's so beautiful and efficient. After I'd made a recursive procedure @ work I got over the shock that they teach the method at uni :eek: only to be pained by my mates hating it @ our uni - the problem of education - they wanna shove it down your throat:p .

Anyway, what is you favourite method you use in coding? [We all have our favourite functions...but that's another thread ]
Similar Threads
Reputation Points: 11
Solved Threads: 1
Newbie Poster
doubleglazing2 is offline Offline
16 posts
since Apr 2004
Apr 10th, 2004
0

Re: Nicest Programming Shortcuts

actually believe it or not recursion is considered "elegant" but not more effecient, It actually requires more memory than normal iteration and is mostly used as a logical convience for approaching recusive problems.
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Apr 10th, 2004
0

Re: Nicest Programming Shortcuts

Really?... ...all these years I've been thinking that....:lol:
I think I was fooled by the fact that a piece of code get used over and over again - so is more efficient. Obviously i need a retake in my logic module! :lol:
You're right - we were taught that @ uni I think - but I'm trying to ge that outta my system now...I still can't believe it....:lol: It's like I thought you spell environment with out an 'n' for years and when i found out I fell on the floor laughing...:lol: :cry: :lol:

Anyway...you got a favourite piece of code?...or do u love it all?....or hate it all?.....or non-reactionary....?
Reputation Points: 11
Solved Threads: 1
Newbie Poster
doubleglazing2 is offline Offline
16 posts
since Apr 2004
Aug 18th, 2004
0

Re: Nicest Programming Shortcuts

I think my favorite programming shortcuts are subroutines and functions for small pieces of code. Using them makes your programs smaller and your code easier to read, but it also uses more space on the stack.
Reputation Points: 115
Solved Threads: 5
Junior Poster
Toba is offline Offline
192 posts
since Jun 2004
Sep 7th, 2004
0

Re: Nicest Programming Shortcuts

Signals & Slots in Qt Designer . :lol:
Reputation Points: 11
Solved Threads: 0
Newbie Poster
shalin is offline Offline
15 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Why questions go unanswered... (Link)
Next Thread in Computer Science Forum Timeline: problems with WORD documents





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC