r/ProgrammerHumor • • Jul 08 '20

Meme Your IDE when you declare a new method

24.7k Upvotes

365 comments sorted by

View all comments

Show parent comments

22

u/TennesseeTon Jul 09 '20

Anyone who pushes code that doesn't work should be thrown in a pit. That's not a language support issue. Language support doesn't tell you anything about your logic being correct.

5

u/driveslow227 Jul 09 '20

So your saying that an IDE inserting red squiggles under int asdf = {} is a bad thing, correct?

13

u/TennesseeTon Jul 09 '20

That's not at all what I said. I was just pointing out that language support doesn't prevent the problem you were complaining about.

You mentioned people pushing broken code. If you have someone pushing code without compiling or testing then you have some big time problems. Since language support doesn't check logic (because it's impossible to predict what you actually want your program to do) your code must be tested regardless of language support. To test your code it needs to compile, and to pass test your logic must be flawless.

Sure the red underline will tell you that you're missing a semicolon, but so will the compiler. I don't know how you're building your code but mine is highly separated, so it takes less than a second to compile and spit the error, thus red lines save no time at all in my case.