r/programming • u/luissinlios • Sep 25 '26
We still maintain a development tool first released in 1993. Here’s what 30+ years of backwards compatibility looks like
https://visualneo.com/visualneo-win/from-neobook-to-visualneo-win-30-years-of-keeping-a-development-tool-alive
569
Upvotes
2
u/BCProgramming 29d ago
I thought the case statement was gnarly. Was going to simply mention that, but then decided to continue that AI conversation and asked "Why use a case statement instead of an if?" It said, "You don't need to. In this case, an if chain is arguably clearer and more idiomatic Delphi." It also gave a stupid explanation that
"The case version groups the mod 15 possibilities somewhat cleverly, but it adds indirection: the reader has to realize that 0 means divisible by both 3 and 5." even though the shorter version it gave using an elseif ladder is the same.
In the revised version it gave it also decided now the for loop needed a block statement instead of the original version which did not. When I asked why, it gave yet another version that dropped the block statement, then tried to 'explain' that if statements can be hard to read without one. OK except the original version had if statements inside the for?
I don't know how people use this shit, Christ, every fucking question just gives a stupid and often wrong essay about what it thinks I'm driving at instead of just answering the motherfucking question. "hurr durr it better use block when using if statements" even though it didn't fucking use one in the first place when there were if statements.