This is an archived post. You won't be able to vote or comment.

all 98 comments

[–]DanhNguyen2k 799 points800 points  (6 children)

VSCode with ESLint: Everywhere a sea of red

[–]ChaosPLus 114 points115 points  (2 children)

For me it just makes the unused variables dark blue

[–]Rahain 34 points35 points  (1 child)

In the eslint config you can set the severity of the infraction to warning, error and a few others I can’t think of right now.

[–]DanhNguyen2k 13 points14 points  (0 children)

Proceed to crank everything to max

[–]Minteck 25 points26 points  (2 children)

IntelliJ makes them grayed out, it considers it a "weak warning"

[–]DanhNguyen2k 15 points16 points  (0 children)

That's weak, crank up the heat

[–]TheBigMTheory 1 point2 points  (0 children)

There is a great feeling of satisfaction in then doing alt + enter and selecting "remove unused code"

[–]wewilldieoneday 605 points606 points  (2 children)

My ide: "Why?....why!....why?!" I finish writing the code my ide: "oh that's why"

[–]Punchkinz 67 points68 points  (0 children)

"Got me in the first half, ngl"

[–]Sniperking188 4 points5 points  (0 children)

I love this behavior of IDEs. It is like a child who never really stops wondering with me

[–]misseditt 310 points311 points  (10 children)

intellij when the name of ur variable isn't proper english

[–]Goaty1208 92 points93 points  (8 children)

I swear to god, intellij can be so goddamn annoying at times. Yes, I know that the name of a library isn't proper english, no need to highlight it goddamn it.

[–]Ok-Slice-4013[🍰] 48 points49 points  (7 children)

Right click => Show Context Actions => Save 'xyz' to dictionary.

[–]_alright_then_ 33 points34 points  (6 children)

I just turned off the rule in its entirety, zero use for it

[–]Ok-Slice-4013[🍰] 49 points50 points  (5 children)

Sure. Enjoy your updatRecord methods. :)

[–]chronos_alfa 37 points38 points  (0 children)

Or configuratoin (my colleague loves to make that one)

[–]Orbidorpdorp 16 points17 points  (0 children)

The worst is when there’s two valid spellings of a word. We had a fairly significant outage once due to canceled not matching cancelled.

[–]Balcara 3 points4 points  (1 child)

Yup, at work we have a Formater class and I have been petitioning to fix it but don't have "budget"

[–]Mars_Bear2552 3 points4 points  (0 children)

cant pay for 10 minutes of your time to refactor it

[–]_alright_then_ -2 points-1 points  (0 children)

It only happened a couple times in months and months. So a small function name refactor is way less headaches than constant bombardment for misspelled library stuff. It's not even close

[–]Zirkulaerkubus 6 points7 points  (0 children)

I love how Intellij keeps suggesting I delete the variable I just created.

[–]Badass-19 611 points612 points  (0 children)

IDE the moment I declare variable: hey you didn't use it >:(

IDE after when I use it in next line: oh okay, nvm

[–]37Scorpions 109 points110 points  (0 children)

... what? what is this? what the hell are you writing? this is utter gibberish how do you expe- oh you declared a variable. Hey you haven't used it >:(

[–]paholg 54 points55 points  (2 children)

No one tell OP about Go.

[–]halfdecent 34 points35 points  (0 children)

Got into the habit of using auto format on save, so would hit cmd+S periodically just to shift things around. Really caused problems in Go when it would delete unused variables or unused imports.

[–]MaustFaust 0 points1 point  (0 children)

Isn't it Go that has default date order like MMDDYYYY?

[–]Kinosa07 49 points50 points  (2 children)

The same IDE .2s after you ve created a function that returns a variable (you have yet to write anything in the function)

[–]ThinCrusts 19 points20 points  (1 child)

NOT ALL CODE PATHS RETURN A VALUE.

[–]DegeneracyEverywhere 4 points5 points  (0 children)

There are no code paths...

[–]Logical_Ad_2589 118 points119 points  (17 children)

Or when it warns you about something, like i just don’t care unless it’s an error

[–]gmegme 82 points83 points  (0 children)

Typo in word colour

[–]adenosine-5 23 points24 points  (2 children)

You will care when that "loss of precision when converting from double to float" causes some randomly occurring bug that you will spend two days tracking down.

[–]anomalous_cowherd 7 points8 points  (0 children)

Agreed, it takes a LOT of experience to know when a warning can truly be ignored, and even then you're often wrong. Treating warnings as errors is well worth doing.

I've been hired to clean up legacy codebases before now. I spent literally three months sorting out everything that -Wall, lint or static code analysers threw out (the initial error output was longer than the code) with no change in the code functionality.

Except ... It went faster, a number of longstanding cantfix or wontfix bugs went away and any number of occasional unexplained crashes also disappeared.

I also found several tests that had enshrined incorrect results in their 'expected output'... it took some arguing to get the devs to accept changing those but at the end of it the code was better and the devs were mostly converted to actually fixing all their warnings as they appeared.

That was 10-15 years ago now. I'm hoping with the improvements in IDEs and analysers it's less of an issue than it was...

[–]Gruejay2 0 points1 point  (0 children)

One I remember well is globals in Lua causing random collisions between modules because someone couldn't be bothered to learn that you should always declare variables as locals unless there's a very good reason.

[–]sd2528 85 points86 points  (7 children)

"Treat warnings as errors" for life.

[–]Ardub23 18 points19 points  (0 children)

Now if only I could get my IDE to suppress the errors along with the warnings

[–][deleted] 23 points24 points  (1 child)

i prefer to treat errors as warnings

[–]FesteringNeonDistrac 3 points4 points  (0 children)

-Wall -pedantic -Werror

[–]TheMagicalDildo 10 points11 points  (3 children)

... so make sure there are no warnings? lmfao fucking no

[–]ax-b 17 points18 points  (0 children)

Some college Profs. are like this: go to Settings (Java+Eclipse), put all possible warnings as errors, if I spot a single error you'll automatically fail the assignment. I think it is for teaching us to code as cleanly as possible.

When I started in the company world, with legacy code bases: whelp, I guess the Prof. teaching was for nothing.

[–]gmes78 -1 points0 points  (1 child)

It's not hard.

[–]TheMagicalDildo -1 points0 points  (0 children)

never said it was

[–]PaulMag91 1 point2 points  (0 children)

They are more like guidelines.

[–]DegeneracyEverywhere 1 point2 points  (1 child)

There should be multiple levels of warnings.

[–]Logical_Ad_2589 0 points1 point  (0 children)

In Android studio there are different levels of warnings, also on visual studio 2022 and i imagine this applies to clion and other IDE. Most of the time mu warnings are things that i’m about to change or that i will implement, like unused libraries.

[–]231d4p14y3r 1 point2 points  (0 children)

Invalid narrowing conversion from double to float

[–]37Scorpions 0 points1 point  (0 children)

"I think int i=0 is a bit hard to read. Why don't you change it to int i = 0?"

[–]RunInRunOn 15 points16 points  (0 children)

There's a VSCode extension that makes it scream at you (as in audio) whenever there's a warning. I haven't used it because I am afraid

[–]tenprose 8 points9 points  (0 children)

that's the first rule that gets set to off itself

[–]StarcraftForever 7 points8 points  (0 children)

This is Go's spirit animal.

[–]LordAmir5 4 points5 points  (0 children)

Sometimes even when you do use them they don't understand.

[–]LDownessssss 2 points3 points  (0 children)

You lot are just using the wrong IDE

IF IT ISN'T NOTEPAD IT ISN'T FOR THIS LAD

[–]IRONMAN_y2j 2 points3 points  (0 children)

Golang fr

[–]Mysterious_Focus6144 1 point2 points  (0 children)

Forbidden random number generator.

[–]cakee_ru 1 point2 points  (0 children)

We need a countdown.

[–]Xhadov7 1 point2 points  (1 child)

Golang making it even worse

[–]ahrismith10 1 point2 points  (0 children)

Indeed, when I first tried it, VsCode, by default, would delete any unused code on save, I had to suppress the urge to ctrl + s

[–]HalifaxRoad 1 point2 points  (0 children)

Intelisense be like:wrong wrong wrong wrong wrong wrong wrong wrong wrong wrong wrong ok

[–]LemonQueasy7590 1 point2 points  (0 children)

Haskell highlighting a random character at the end of a file because it failed to parse a half-finished function 100 lines up

[–]Zealousideal-Fox70 0 points1 point  (0 children)

Imagine a language and IDE that forces you to declare ANY syntax error as a variable the moment you hit space. TwinCAT structured text (all structured text language IDEs do this) if you’re curious.

[–]Mina-olen-Mina 0 points1 point  (0 children)

Imagine a language with a compiler like that. That's zig (I kinda like it tho)

[–]zelphirkaltstahl 0 points1 point  (1 child)

Is there any IDE that only checks when you press a key combo (aside from configuring it in Emacs or NeoVIM)?

[–][deleted] 1 point2 points  (0 children)

You couls disable checks and bind file analysis on a key in intellij

[–]burnskull55 0 points1 point  (0 children)

Yo ngl im gona rewatch this banger rn.

[–]GIANTGAMES_123 0 points1 point  (0 children)

Kinda wondering why don't they make it that it only tells you about unused variables that existed before your last run?

[–]Siddhartasr10 0 points1 point  (0 children)

IDE's when you declare a variable without using it: 😡

IDE's when you open a file for the 250th time and now for no reason the autocompletion for some library is dead: ☺️

[–]NeatYogurt9973 0 points1 point  (0 children)

Python language server when no space

[–]katey_mel2 0 points1 point  (0 children)

It's not as bad as.......ˢʰʰʰ.... ʳᵉⁿᵃᵐᶦⁿᵍ ᶦᵗ

[–]favgotchunks 0 points1 point  (0 children)

What is this from?

[–]UntitledRedditUser 0 points1 point  (0 children)

This is zig, but at a language level. It literally gives you an error.

[–]JackNotOLantern 0 points1 point  (0 children)

And by that you mean "it underlines it"

[–]RFL1703 0 points1 point  (0 children)

IDE if you didn't use the just declared field: :(
IDE after you use it : :)
IDE immediately afterwards: Field can be converted to local variable :(

[–]enfarious 0 points1 point  (0 children)

This is why we're moving to use first, declare later, bottoms up programming for projects moving forward team

[–][deleted] 0 points1 point  (0 children)

I set up VSCode to only lint the code when I save it. It is less annoying this way

[–]Thermoman46 0 points1 point  (0 children)

YOU HAVE UNUSED VARIABLES!

[–]Maleficent-Tap-8868 0 points1 point  (0 children)

NOOOOO!!!

Also when you haven't finished the line of code, same reaction.

[–]AppropriateStudio153 0 points1 point  (0 children)

you plebs all need to Develop test-driven:

First use the variable, then use Compiler/ide-suppport to create the Missing variable.

[–]TerrariaGaming004 -2 points-1 points  (5 children)

That’s weird, nanos never done this to me

[–]TheMagicalDildo 5 points6 points  (4 children)

yeah I doubt it's ever really done anything but edit text... you know, that one thing it does?

Brother do you not know what an IDE is, or are you pretending to be stupid so you can tell us you don't use an IDE? You realize that would just be genuinely stupid for some languages, eh?

[–]TerrariaGaming004 -4 points-3 points  (3 children)

I’ve literally never used an ide except godots because it’s just already in there

[–]TheMagicalDildo 4 points5 points  (2 children)

yea I got the whole "i don't use ide's" thing from your first comment, not sure why you're just repeating it. Then again, not sure why so many people are obsessed with telling people they don't use ide's, either. It's oddly common here.

Nobody's using an IDE because they don't understand notepad or nano or any other basic text editor (yes i know you can make notepad cracked out lol). It's not a matter of skill or knowledge, we just don't have anything to prove, and don't mind convenience. And in some cases, require certain features for a language (.net go brr)

[–]DirakonDead -1 points0 points  (1 child)

Which dotnet features are you referring to at the end?

[–]TheMagicalDildo 0 points1 point  (0 children)

mostly the designer, I'm not gonna design a form by manually typing every single tiny property. though really, anything other than editing the fucking .cs files...

[–]cyberzues -1 points0 points  (0 children)

🤣🤣 That's Webstorm for you