News for hackers. Stuff that matters.
Re:The Greatest Invention in Computer Science by mynameishere on Saturday June 07, 2008 @10:19AM (#211531)
"Routine" as he means it is a control structure with an implicit stack with a memory range associated with each JMP. (That is foo(int x) has four bytes on the stack devoted to x). If a language has no routines, they can be faked out if you can make a stack data structure, which would be a little difficult in basic, having no pointers or references. Hence, I'd say pointers are somewhat more "great".
Re:The Greatest Invention in Computer Science by ratsbane on Saturday June 07, 2008 @01:11PM (#211592)
Instead of "routines" why not just say "functions" - which then opens another can of worms because functions were studied long before they were ever used in programming.
Re:The Greatest Invention in Computer Science by michael_dorfman on Saturday June 07, 2008 @02:28PM (#211624)
Perhaps-- but we need to be able to make a distinction between a mathematical function and the procedure which implements it.
Re:The Greatest Invention in Computer Science by michael_dorfman on Saturday June 07, 2008 @10:57AM (#211537)
...and here I was, guessing "recursion".
Re:The Greatest Invention in Computer Science by mxh on Saturday June 07, 2008 @05:28PM (#211726)
Ok, I guess I'm officially grumpy.

"The routines in your code should be treated like tiny, highly polished diamonds, each one more exquisitely polished and finely cut than the next."

This makes no sense. Each routine can't be more exquisitely polished than the others. And if you try to make it make sense by interpreting 'next' strictly, to mean 'next in sequence', then it means your functions should get worse as development proceeds. Even if you replace 'next' with 'last', to try to turn it into a semi-coherent statement ("Each routine you write should be the best routine you've ever written") it's still bad advice: You should spend your time on the important questions, and not every function is equally important.

Re:The Greatest Invention in Computer Science by thedob on Saturday June 07, 2008 @09:41AM (#211523)
Interesting choice with the routine. I'd argue for the CMOS, without which none of this would be possible...but let me know if that's too much on the EE side to fit the title.
Re:The Greatest Invention in Computer Science by gills on Saturday June 07, 2008 @11:10AM (#211542)
Backspace.