this post was submitted on 27 Mar 2024
560 points (100.0% liked)

Programmer Humor

421 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 10 comments
sorted by: hot top controversial new old
[–] smeg@feddit.uk 49 points 7 months ago (1 children)

Compiler: you're skating on thin ice there you fucking maverick

[–] GBU_28@lemm.ee 12 points 7 months ago

Hot doggin and grab assin. Not in my house.

Fuckit, red squiggly.

[–] joyjoy@lemm.ee 24 points 7 months ago

Meanwhile rust when you try to use a variable before saving.

[–] Venator@lemmy.nz 13 points 7 months ago* (last edited 7 months ago)

Sometimes I think it could be easier to just use the variable before its declared and then let the IDE auto fix create it, but I never remember to try it 😂

[–] myxi@feddit.nl 6 points 7 months ago* (last edited 7 months ago) (2 children)

I turn off LSPs during my train of thoughts. I don't want all red and yellow underline bullshit to disrupt my thoughts. Like, calm the fuck down. I WILL write the correct code eventually; just give me some fucking time.

Well, I use Neovim, so turning off the LSPs or restarting them is sufficiently simple.

When I work on a new project, or on a new feature, I temporarily turn off the LSP, and rely on the compiler to figure out where the code errors. Plain white text gives me the freedom to write whatever the fuck I want without any disruption. Of course, I eventually turn on the LSP again to fix the little issues.

load more comments (2 replies)
[–] RonSijm@programming.dev 6 points 7 months ago

On the other hand, when my IDE doesn't tell me:

Build Server: "BUILD FAILED! SonarQube says that Roslyn says that you're not using one of your variables!"

Yea okay calm down, and why are you snitching now, Roslyn? Should have told me directly 🙃

[–] aliyss@programming.dev 2 points 7 months ago

Just type faster than the LSP needs to check. I don't see an issue.

[–] CrypticCoffee@lemmy.ml 2 points 7 months ago (1 children)
[–] Luvon 10 points 7 months ago

It’s more language dependent than ide. Go for instance makes unused variables a compiler error (I believe) which means ides mark it as red immediately.

Ts/js can have eslint rules against unused variables but they will still usually compile or just run directly anyway.

Java doesnt error but can be set to warn you on them.

Abap doesn’t care and won’t tell you.

Your mileage will vary.