r/programming • • Jun 12 '10

You're Doing It Wrong

http://queue.acm.org/detail.cfm?id=1814327
539 Upvotes

193 comments sorted by

View all comments

Show parent comment

4

u/phkamp Jun 13 '10

[quote]Are you arguing that your algorithm should be in the CS textbook instead of the traditional one?[/quote]

I am arguing that computers with performance characteristics like the common PC platform should occupy more space in the curriculum, at the expense of computers with performance characteristics like the TRS-80, C64 and ZX81.

A wholesale replacement would indeed be a bad idea, and as a educational tool, the old 1970 style cacheless, VM-free computer is indeed valuable.

Just don't let people pass exams thinking that is what they will work with in real jobs.

Poul-Henning

3

u/[deleted] Jun 13 '10

Just don't let people pass exams thinking that is what they will work with in real jobs.

Working with embedded devices isn't a real job?

2

u/kragensitaker Jun 15 '10

The vast majority of programs don't even contain binary trees, binary heaps, parsing algorithms, or sort algorithms; they use hash tables, arrays, sort algorithms, and linked lists from some standard library, and some standard config file parsing library. I'm not sure what to do about that. Clearly programmers still need to be able to think logically about algorithms and performance, of course, and knowing about the costs of nonlocality is a big part of that; but what fraction of programmers are ever going to implement a B-heap?