3 ms·
"Programmers spend a lot of time thinking about how to code, and many coding methods have been proposed: test-driven development, agile programming, and so on.
by fsloth 12y ago
"Programmers spend a lot of time thinking about how to code, and many coding methods have been proposed: test-driven development, agile programming, and so on. But if the only sorting algorithm a programmer knows is bubble sort, no such method will produce code that sorts in O(n log n) time. Nor will it turn an overly complex conception of how a program should work into simple, easy to maintain code."
This.
- collyw 12y agoI wouldn't know a bubble sort off the top of my head (I haven't had to implement anything like that since university). I would know to read up on different algorithms and choose an appropriate library based on what I was sorting. (It will probably be better tested than what I would come up with first time).