programming.dev

lurch, to programmer_humor in The Perfect Solution

“… yes or no…”

SzethFriendOfNimi, (edited )
@SzethFriendOfNimi@lemmy.world avatar

Lexicon origin of Seven of Nine identified

TrickDacy, to programmer_humor in The Holy Trinity of JavaScript
@TrickDacy@lemmy.world avatar

Are people really not using the strict equality operator?

BatmanAoD,

It’s still pretty bad that the normal equality operator is as bad as it is.

TrickDacy,
@TrickDacy@lemmy.world avatar

If you’re provided a tool that solves a problem, I don’t really get ignoring that and continuing to focus on that solved problem as if it weren’t solved because you think all the tools should solve it on principle

bitcrafter,

That’s a little bit like saying, “I don’t understand why people continue to complain about the landmine sitting right there on the ground. We’ve painted it red so you can easily walk around it, so how has the problem not been solved?”

TrickDacy,
@TrickDacy@lemmy.world avatar

Linters are standard practice in any decent shop. You want to change the language to destroy backward compatibility for one already-solved issue

bitcrafter,

Land mines are painted red in my shop. You want to change the language to remove a land mine that everyone competent already knows enough to step around. The problem has already been solved, so why are you continuing to complain about it?

Just to be clear, I’m not actually calling for JavaScript to change, I’m just pointing out that people are right to point out this as being a problem. Having said that, if everyone competent uses linters now so that this feature isn’t used in practice anymore, then getting rid of it shouldn’t even break anything, and arguably code which would break is already broken because it uses an operator that no one should be using, so you shouldn’t be using this code anyway.

TrickDacy,
@TrickDacy@lemmy.world avatar

I can sort of get down with what you’re saying, but on the other hand, we all have design constraints, inside and outside of programming, I think this is a very minor one

bitcrafter,

Sure, but it is also a very gratuitous and pointless design constraint.

masterspace, (edited )

Using linters in a professional setting is more like moving all your actual employees into a different office and letting them use robot avatars in the original office who can never step on that landmine.

The benefit of this is that millions of other robots continue to depend on the original office being exactly as it is and many of them will never change or update, nor is their any need for them to.

Breaking backwards compatibility on the web needs much better reasoning than ‘I don’t want to use a linter’.

riodoro1,

I think nobody said anything about wanting to fix this. We’re just making fun of how absolutely dumb this is.

vithigar, to memes in 6÷2(1+2)

What’s especially wild to me is that even the position of “it’s ambiguous” gets almost as much pushback as trying to argue that one of them is universally correct.

Last time this came up it was my position that it was ambiguous and needed clarification and had someone accuse me of taking a prescriptive stance and imposing rules contrary to how things were actually being done. How asking a person what they mean or seeking clarification could possibly be prescriptive is beyond me.

Bonus points, the guy telling me I was being prescriptive was arguing vehemently that implicit multiplication having precedence was correct and to do otherwise was wrong, full stop.

Socsa,

Without any additional parentheses, the division sign is assumed to separate numerators and denominators within a complete expression, in which case you would reduce each separately. It’s very, very marginally ambiguous at best.

wischi, (edited )

👍 That was actually one of the reasons why I wrote this blog post. I wanted to compile a list of points that show as clear as humanity possible that there is no consensus here, even amongst experts.

That probably won’t convince everybody but if that won’t probably nothing will.

ook_the_librarian,
@ook_the_librarian@lemmy.world avatar

When I went to college, I was given a reverse Polish notation calculator. I think there is some (albeit small) advantage of becoming fluent in both PEMDAS and RPN to see the arbitrariness. This kind of arguement is like trying to argue linguistics in a single language.

Btw, I’m not claiming that RPN has any bearing on the meme at hand. Just that there are different standards.

This comment is left by the HP50g crew.

ryathal,

It would be better if we just taught math with prefix or postfix notation, as it removes the ambiguity.

ook_the_librarian, (edited )
@ook_the_librarian@lemmy.world avatar

Ambiguity is fine. It would tedious to the point of distraction to enforce writing math without ambiguity. You make note of conventions and you are meant to realize that is just a convention. I’m amazed at the people who are planting their feet to fight for something that what they were taught in third grade as if the world stopped there.

You’re right though. We should definitely teach different conventions. But then what would facebook do for engagement?

MossyFeathers, to memes in People who do know

Oops, all incest!

GrammatonCleric, to memes in Poor kid; I bet she didn't like the hair clip either
@GrammatonCleric@lemmy.world avatar

How does one write on a crayon?

Rentlar,

The crayon company employs child labour and this girl is drawing crayon wrappers.

janabuggs, to programmer_humor in ifn't

I’m struggling to understand if this is true or ifn’t true

csm10495, to programmer_humor in ifn't
@csm10495@sh.itjust.works avatar

Imagine the regex needed to highlight code with that extra single quote.

Xeroxchasechase, to newcommunities in Notepad++ - A community for the notepad++ text editor!

It’s just amazing this project still exist!

Flax_vert,

Favourite text editor. Wouldn’t change it for the world.

walter_wiggles, to memes in not this again

Take Jesus away from the wheel!

Harry_h0udini, to piracy in aaron swartz day
@Harry_h0udini@lemmy.dbzer0.com avatar
devilish666, to piracy in Special Ubisoft announcement
docAvid, to programmer_humor in TypeScript is Quantum Ready

Weird. Booleanish isn’t a built-in, I’m pretty sure. I’d like to see the definition.

Darken,
@Darken@reddthat.com avatar

<span style="color:#323232;">type Booleanish = true & false
</span>

?

madkarlsson,

This looks like javascript so let me guess the typescript definition

any|unknown

this is a joke, please chill

scrubbles, to lotrmemes in Apology
@scrubbles@poptalk.scrubbles.tech avatar

I think there’s a difference from the doom and gloom of your post and the actual problem. Quick generated-spam content is really what you’re arguing against.

I can see the use of well crafted jokes in the form of AI art being acceptable. I do not like low-quality spam content though.

I think it’s too rash to just say “ban AI content” and instead reinforce rules like “Ban low effort posts/comments”. The AI stuff that’s low quality farming has been pretty obvious.

juli, (edited )

Thx for the input. I’ll think about it further

SeeMinusMinus, to memes in Shout-out-to-mods-posting
@SeeMinusMinus@lemmy.world avatar

This is basically everything my stupid ass family been trying to push up my brain

Naveen000can,

Don’t you want to be happy?

SeeMinusMinus,
@SeeMinusMinus@lemmy.world avatar

IF THIS IS WHAT IT MEANS TO BE HAPPY I WANT TO BE THE SADDEST PERSON TO EVER EXIST!!!

omnissiah,
@omnissiah@iusearchlinux.fyi avatar

Pfff normie

Naveen000can,

Good luck on that

spread, to memes in Minionposting

I’m spreading misinformation online

Certainly_No_Brit,
db2,

Facebook will take it as fact.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #