danhab99 ,
@danhab99@programming.dev avatar

Age or experience? Because both are funny

ricdeh ,
@ricdeh@lemmy.world avatar

The variable is not initialised.

jaybone ,

Is that a vaio?

Kolanaki ,
@Kolanaki@yiffit.net avatar

For (life) { suffering; }

flerp ,

bool theEnd;

const_void ,

Lol

ArbitraryValue ,

I spent those years in dll hell.

jaybone ,

.so please, I use arch btw.

randompasta ,

Meanwhile in France: Lunch time!

lockhart ,

can't stop eating though

onion ,

Can't stop eating dough

jaybone ,

Baguette du fromage

oce ,
@oce@jlai.lu avatar

For mage in pain:

NegativeLookBehind ,
@NegativeLookBehind@lemmy.world avatar

And pain is immutable

henfredemars , (edited )

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.

hypertown OP ,

:any

Kaboom ,

Its javascript, itll just let you do that

vithigar ,

it'll just let you do that

Pretty much sums up JavaScript's entire philosophy.

Kaboom ,

Imo, its better for it. A tool shouldnt tell the user what to do

Ephera , (edited )

I think, most of us consider it part of the job of a good tool, that it prevents us from using it wrongly. Allows us to use it much more recklessly.

Ziglin ,

But the CPU would be thoroughly confused in many cases. Like if you added a number with a string. This means low level tools have too and therefore people who do low level programming are confused and the generally carefree has rules can make it difficult to debug js.

Also I think rust making you write "safe" code unless you explicitly tell it otherwise is a great thing.

So I think that tools telling the user that they're doing something wrong is great, tools telling the user to stick with physical limitations for better performance are completely valid but what js does seem really weird with having constants be reassignable, making them nothing but labels combined with HTML I find it even more annoying.

Justas ,
@Justas@sh.itjust.works avatar

['a'] + ['b'] = 'ab'

Gets me every time.

Ziglin ,

I'm always more confused by adding integers to strings or something being an empty object because something else was undefined and the console didn't bother to tell me.

skulbuny , (edited )
@skulbuny@sh.itjust.works avatar

You're downvoted, but you're 100% right. The web is designed to not break. Engineers who can't accept that don't get to complain

jaybone ,

Let me just coalesce these types for you.

9point6 ,

void

S0UPernova ,

Maybe...

const pain = Infinity
TurtleTourParty ,

const long pain = 1;

jaybone ,

1L

jflorez ,

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

lugal ,

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • kbinchat
  • All magazines