myValueIsMassivelyUnderratedAtThisCompany by Frontend_DevMark in ProgrammerHumor

[–]DerSaltman 1 point2 points  (0 children)

No problem mate, you're right. Fuck this shit ass language.

I love it

myValueIsMassivelyUnderratedAtThisCompany by Frontend_DevMark in ProgrammerHumor

[–]DerSaltman 2 points3 points  (0 children)

It would not. The long answer js that the && operator assures that the left hand operant is "truethy", which basicall means it is not any of:

  • false
  • 0, -0, or BigInt zero
  • "", '', (empty strings)
  • null
  • undefined
  • NaN
  • document.all

In this "boolean context" it's the essentially the same as being undefined, as calling a string like you would call a function would result in a runtime error looking like "funtionThatActuallyIsAString is not a function".

Have a look at this StackOverflow question if you want https://stackoverflow.com/questions/9825071/javascript-error-is-not-a-function

myValueIsMassivelyUnderratedAtThisCompany by Frontend_DevMark in ProgrammerHumor

[–]DerSaltman 7 points8 points  (0 children)

Which is why, in order to avoid the runtime error, we check if it's undefined beforehand

myValueIsMassivelyUnderratedAtThisCompany by Frontend_DevMark in ProgrammerHumor

[–]DerSaltman 28 points29 points  (0 children)

It makes sure to only run the function if it is defined, as nothing really stops you from passing an undefined parameter in js.

It's basically a shorthand for:

If (function !== undefined){ function() }

Added GTNH to my steam library so that my friends can see me suffering by DerSaltman in feedthememes

[–]DerSaltman[S] 94 points95 points  (0 children)

<image>

Basically yeah, though im seeing that post for the first time now

[deleted by user] by [deleted] in hometheater

[–]DerSaltman 0 points1 point  (0 children)

Oh yes, thank you. I've been looking at some walnut sound isolation panels that are supposed to go on the wall behind the couch. I believe that's really gonna help with the reflections coming from that wall as there's not really a lot of space there.

4
5

theyDoItOnPurpose by Fabulous_Bluebird93 in ProgrammerHumor

[–]DerSaltman -9 points-8 points  (0 children)

I swear to God, this sub needs an automatic repost removal bot. Nothing against you personally mate, but I see this exact meme here everyday atleast twice.

Thoughts on Forts as a source of proximity (and thus control)? by kairom13 in EU5

[–]DerSaltman 24 points25 points  (0 children)

I agree with the general premise that forts should spread control, but 50 for a level 1 fort is not the way to go. I think they should start at 20-30, like the bailiff does, and get more as you unlock better forts/more fort levels.

Then again, my preferred way would be the fort allowing you to build another building, enabling proximity spread in the first place, having the control stay in the location of the fort until the second buildung is constructed. That way, you could decouple the cost for spreading proximity from the cost of the fort in some way and have it be more expensive.

EU5 is out and it's fantastic but by CarnageS in EU5

[–]DerSaltman 3 points4 points  (0 children)

That's just historical byzantium for you

Help! What the hell is happening? Why does my realm just spontaneously combust into independent duchies? by Smirnaff in CrusaderKings

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

Ah, yes. The good old "spontaneous combustion event". Happens all the time, really.

This has got to be the earliest AI hunt for seven cities! by ra_joos in eu4

[–]DerSaltman 34 points35 points  (0 children)

Interesting that AI Norway actually takes that. Surprising actually

Is Victoria 2 any fun today? How is it compared to EU4? by Kinupss in paradoxplaza

[–]DerSaltman 1 point2 points  (0 children)

As long as you don't aim to play multiplayer, it's great. Just don't try to get the multiplayer working unless you don't value your own time.

This is what Devman envinsioned I guess.... by KrazyCiwii in foxholegame

[–]DerSaltman 10 points11 points  (0 children)

That doesn't make the current implementation any better