490
Life is hard (lemmy.world)
top 38 comments
sorted by: hot top controversial new old
[-] laserm@lemmy.world 1 points 2 days ago
[-] henfredemars@infosec.pub 49 points 2 weeks ago* (last edited 2 weeks ago)

Missing type or identifier.

A const what?

Also, I read that you have to assign a const when it is declared. Something doesn’t feel right about this statement.

[-] Kaboom@reddthat.com 55 points 2 weeks ago

Its javascript, itll just let you do that

[-] vithigar@lemmy.ca 39 points 2 weeks ago

it'll just let you do that

Pretty much sums up JavaScript's entire philosophy.

[-] jaybone@lemmy.world 3 points 2 weeks ago

Let me just coalesce these types for you.

[-] 9point6@lemmy.world 8 points 2 weeks ago
[-] S0UPernova@lemmy.world 4 points 2 weeks ago

Maybe...

const pain = Infinity
[-] hypertown@lemmy.world 8 points 2 weeks ago
[-] pipe01@programming.dev 6 points 2 weeks ago

Ackshually you don't need a type qualifier in C

[-] Static_Rocket@lemmy.world 7 points 2 weeks ago* (last edited 2 weeks ago)

Well, assuming you meant type specifier, at least not before C99. After that it is required. C23 explicitly states that a type specifier is required for all declarations.

If you actually meant type qualifier, then no. That was never required.

[-] henfredemars@infosec.pub 3 points 2 weeks ago
[-] zaphod@sopuli.xyz 4 points 2 weeks ago

Defaults to int if I'm not mistaken.

[-] jaybone@lemmy.world 1 points 2 weeks ago
[-] randompasta 32 points 2 weeks ago

Meanwhile in France: Lunch time!

[-] lockhart@lemmy.ml 9 points 2 weeks ago
[-] onion@feddit.de 11 points 2 weeks ago
[-] jaybone@lemmy.world 3 points 2 weeks ago

Baguette du fromage

[-] oce@jlai.lu 5 points 2 weeks ago

For mage in pain:

[-] jflorez@sh.itjust.works 12 points 2 weeks ago

If they move to Python they can just have pain without constant 😜

[-] lugal@sopuli.xyz 4 points 2 weeks ago

And if they learned French instead, they had bread but this is not how it works. We don't always get what we want nor what we deserve

[-] ricdeh@lemmy.world 12 points 2 weeks ago

The variable is not initialised.

[-] danhab99@programming.dev 11 points 2 weeks ago

Age or experience? Because both are funny

[-] TheReturnOfPEB@reddthat.com 1 points 2 weeks ago* (last edited 2 weeks ago)
[-] NegativeLookBehind@lemmy.world 11 points 2 weeks ago

And pain is immutable

[-] Kolanaki@yiffit.net 7 points 2 weeks ago

For (life) { suffering; }

[-] ArbitraryValue@sh.itjust.works 7 points 2 weeks ago

I spent those years in dll hell.

[-] jaybone@lemmy.world 5 points 2 weeks ago

.so please, I use arch btw.

[-] flerp@lemm.ee 5 points 2 weeks ago

bool theEnd;

[-] jaybone@lemmy.world 3 points 2 weeks ago

Is that a vaio?

[-] const_void@lemmy.ml 1 points 2 weeks ago
this post was submitted on 14 Jun 2024
490 points (95.5% liked)

Programmer Humor

18253 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