There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

lugal , in Uh...oh...

The difference between theory and praxis is that in theory, there is no difference, but in praxis, there is

gofsckyourself , in Uh...oh...

Theory is when you know everything but nothing works

I know it’s “just a joke” but this makes no sense.

CanadaPlus ,

We know very exactly how the baby monster group in mathematics operates. It has no practical use as far as I’m aware (it doesn’t work).

Wilzax , in Uh...oh...

The difference between theory and practice is greater in practice than in theory.

joyjoy , in Variable Declaration

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

https://i.imgflip.com/8kpid0.jpg

humorlessrepost , in Variable Declaration

I don’t understand?

Notepad likes my html, and filezilla doesn’t complain when I upload it to production. It even passes validation for 4.01 transitional

Anticorp , in Variable Declaration

It’s a no win situation, because it’ll throw a fit if you try to use it before you declare it too.

fidodo , in Variable Declaration

What is this? I’ve never seen it before! Where are you using it?

clearleaf , in Variable Declaration

In godot engine you can put an underscore at the beginning of a variable to tell the linter to calm the hell down about it. But I don’t see why it’s such a crisis in the first place.

nickwitha_k ,

I agree, if talking about the warning. If talking about the unused var, Go won me over there. Unused vars are absolutely a class of software bug that can have implications in security, resource usage, and maintainability.

cookie_sabotage ,

The underscore is actually used to indicate the variable will not be used.

baseless_discourse , (edited ) in Variable Declaration

writing code normally

ocaml-lsp: syntax error

ocaml-lsp: syntax error

ocaml-lsp: syntax error

ocaml-lsp: syntax error

ocaml-lsp: okay, probably okay

ocaml-lsp: syntax error

ocaml-lsp: syntax error

ocaml-lsp: wait, the entire function is wrong

me: WHAT, where

ocaml-lsp: like the entire thing, 20 lines of it,


<span style="color:#323232;">a -> (b -> c -> d) -> [200 other types] ->g
</span>

doesn’t match


<span style="color:#323232;">a -> (b -> c/2 -> d) -> [200 other types] ->g
</span>

, c doesn’t match c/2.

MostlyBlindGamer , in Aaargh....my eyes......my eyes......
@MostlyBlindGamer@rblind.com avatar

Self-documenting code, high contrast… Carry on.

fckreddit , in Aaargh....my eyes......my eyes......

This is getting absurd, variable names have become variable sentences.

magic_lobster_party ,

Variable essays is the future!

myxi , in Variable Declaration
@myxi@feddit.nl avatar

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.

baseless_discourse , (edited )

Many languages allow type hole like _ to indicate to the compiler/lsp that this is an expression you will fill in later.

So that lsp don’t put a squiggle on the entire program, only the type hole

myxi ,
@myxi@feddit.nl avatar

I also leave out little syntax errors and only only focus on the rough idea during my train of thoughts. And the variables, aren’t really supposed to be implied as private or unused – I do eventually meaningfully use them. If I have to prefix all my variables with a underscore to avoid the LSP, I might instead just disable the LSP. When I eventually turn the LSP back on, it tells me the actually unused variables and imports that I can now get rid of.

Because of the LSP, I used to write maybe three hundred lines of code per hour, but now I probably average at least five hundred or more.

tatterdemalion , in Aaargh....my eyes......my eyes......
@tatterdemalion@programming.dev avatar

Yea this looks productive.

Imagine how useless the LSP suggestions are.

kuneho , in Aaargh....my eyes......my eyes......
@kuneho@lemmy.world avatar

Visual Basic looks strange nowadays, huh…

zaphod , in Aaargh....my eyes......my eyes......

ThisCommentsMakeItSoThatYouHateMeForWritingLikeThisSeriouslyICanNotStopPleaseSendHelp

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

Would you like a snake to replace your camel?

F04118F ,

Careful, Pascal doesn’t like it when you call him a camel

MostlyBlindGamer , (edited )
@MostlyBlindGamer@rblind.com avatar

I decided to be wrong because the correct joke would be too convoluted. I’ll work on that implementation and then you can inject it at runtime via reflection.

F04118F ,

Thanks for preparing your comment for my dependency injection! I agree that refactorability of comments is preferable over prematurely optimizing for performance.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

First it needs to work, then it needs to work well, and finally it may or may not work quickly. Along the way, it should also be humorously weird.

zaphod ,

Best I can do instead is calling it x.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

Why not ‘i’?

serpineslair ,

Makes it even better that I’m on mobile so the text wrapped half way through a word.

JohnEdwa ,

I can read that without any issues whatsoever.

But. If. You. Put. Periods. Between. Each. Word. My brain will force a pause between every single one and I can’t override it.

Trainguyrom ,

Forever Ago I Ran A Minecraft Server And 2 Friends Joined And One Typed Everything They Said Like This and the other managed to misspell every single word with more than 2 letters in it. They misspelled the word “the!” According to Sir Capitalizes Every Single Word, its just much easier to type that way, which raised far more questions than answers…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines