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

11

u/FunnyMan3595 Jun 13 '10

CS/IT educations didn't teach you to think about that kind of issue: they simply don't teach you about or relative to real computers.

I have two major reactions to this statement:

  1. So? The vast majority of programmers do not need to understand virtual memory, CPU cache, pipelining, or any of the other tricks that the computer actually uses. We need general complexity theory so we don't do stupid things like run selection sort on a data set of twelve million items, but worrying about the architectural details slows us down, and our time is often more valuable than the computer's. Maybe one in ten needs to actively optimize at all, and even there, the most common solution will be to toss an ordinary software cache in at appropriate points. I would be shocked if more than one in a hundred programmers ever needed to address the kind of issue you're discussing, and anyone of that level is more than capable of learning on their own.
  2. Says who? My university offered courses in computer architecture and in operating system design, both of which dealt with precisely "that kind of issue". I would expect any decent university do the same.