←back to thread

1371 points yett | 2 comments | | HN request time: 0.402s | 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. gmueckl ◴[] No.43776382[source]
I don't know whether Valgrind ever gained support for any of the GTA target platforms. It wasn't available on Windows for a very, very long time.
replies(1): >>43784623 #
2. zerd ◴[] No.43784623[source]
Still isn't available for windows from what I gather.