←back to thread

1371 points yett | 1 comments | | HN request time: 3.256s | source
Show context
gigatexal ◴[] No.43775701[source]
Use a debugger folks. A 10x dev cited this story to me about the ills of not using one.
replies(5): >>43775777 #>>43776985 #>>43777338 #>>43777651 #>>43778686 #
ajross ◴[] No.43775777[source]
Tools like valgrind/asan/msan would have flagged this instantly too. Just a unit test of that vehicle loader would have seen it.

Really this is more a story about poor development practice than it is an interesting bug.

replies(2): >>43775857 #>>43775868 #
Thaxll ◴[] No.43775857[source]
As if tools in early 2000's were any good...
replies(1): >>43776033 #
ajross ◴[] No.43776033[source]
Valgrind was released in 2002 to immediate celebration. It was available and surely known to the team. All they needed to do was write a unit test that loaded and instantiated those vehicle files and run it with "valgrind" in front of the command line.
replies(4): >>43776382 #>>43779309 #>>43779557 #>>43792844 #
1. db48x ◴[] No.43779309[source]
It was available and widely celebrated, but there was no guarantee that these Windows and console developers had heard of it yet or that they could have used it if they had.