programming.dev

zqwzzle, (edited ) to programmer_humor in The Holy Trinity of JavaScript

=== is just == with extra steps

kamenlady,
@kamenlady@lemmy.world avatar

It’s to be REALLY sure

thanks_shakey_snake,

It’s actually the other way around. == has to perform type coercions as part of its equality algorithm, whereas === does not, so == has more steps.

lseif, (edited ) to programmer_humor in GitHub Desktop or Git CLI?

using LazyGit in tmux has changed my workflow.

instead of: git add . git commit -m ‘foo’ fg

i just: g ac foo q

and it displays everything neatly

Edit: apparently greater/less than symbols dont render properly on lemmy. so imagine a few (CR)'s and (C-b)'s sprinkled in

alphabetsheep,

Are you able to fall back to normal git commands if you don’t know the shortcuts? This sounds awesome until I can’t remember the syntax to do something I don’t do everyday.

lseif,

you can run shell commands with :, and there may be a nicer way for git-specific commands which i dont know about.

each ‘pane’ (such as ‘changed/staged files’, ‘commit log’, etc) has its own keybinds, which you can see with ?

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

My only complaint is the suggestion that engineers like to be clear. My undergrad classes included far too many things like 2 cos 2 x sin y

fallingcats,

I’d say engineers like to be exact, but they like being lazy even more

CarbonScored, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@CarbonScored@hexbear.net avatar

Forward three hours, me using thesaurus.com to try fit the whole gist of my change into the first line.

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

You guys are doing it all wrong: ask chatgpt for the correct answer and paste it here. Done.

Who needs to learn or know anything really?

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

ChatGPT’s Answer:

The expression 6/2(1+2) involves both multiplication and division. According to the order of operations (PEMDAS/BODMAS), you should perform operations inside parentheses first, then any multiplication or division from left to right.

Let’s break down the expression step by step:

Inside the parentheses: 1 + 2 = 3

Now the expression becomes 6/2 * 3

Division: 6/2 = 3

Multiplication: 3 * 3 = 9

So, 6/2(1+2) is equal to 9.

wischi,

Chat GPT’s answer for me:

Certainly! The expression 6/2(1+2) is ambiguous due to the implicit multiplication. Let’s solve it in both ways:

  1. Implicit multiplication with higher priority:

[ \frac{6}{2}(1+2) ]

First, solve the parentheses:

[ \frac{6}{2}(3) ]

Now, perform the division:

[ 3 \times 3 = 9 ]

  1. Implicit multiplication with the same priority as division:

[ \frac{6}{2(1+2)} ]

Again, solve the parentheses:

[ \frac{6}{2(3)} ]

Now, perform the multiplication first:

[ \frac{6}{6} = 1 ]

So, depending on the interpretation of implicit multiplication, you can get different results: 9 or 1.

I think it’s funny that ChatGPT figured out 1 and 9 but has the steps completely backwards. First it points out what has high priority and then does the exact opposite, both times 🤣

crackajack, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?

That’s in any bloody workplace! Especially if there is o synergy between different teams.

syd, to programmer_humor in Manager: This task only takes 30 minutes. Why did it take you the whole day?
@syd@lemy.lol avatar

I’m using Copilot for it right now. It works on half of the cases.

mdurell,

That’s about 300% better than my average!

amio, (edited ) to memes in 6÷2(1+2)

Forgot the algebra using fruit emoji or whatever the fuck.

Bonus points for the stuff where suddenly one of the symbols has changed and it's "supposedly" 1/2 or 2/3 etc. of a banana now, without that symbol having been defined.

wischi, (edited )

This meme is specifically about the implicit multiplication because the article it links to is about that too.

But you are right there are a lot more “viral math” things than just the implicit multiplication problems 🤣

fl42v, to programmer_humor in git commit -m "hotfix"

Yeah, I believe that won’t work. The tape is supposed to be blue

PlasterAnalyst, to memes in Because customers don't need to easily filter away some stuff from their searches

Still works on eBay for now, the one thing they haven't broken.

jasondj,

eBay really has one of the best search engines around, IMO.

Once you know how to use parenthesis, quotes, and minus, you can build very precise queries.

I_am_10_squirrels,

Boolean search is better than natural language search, once you know how to use it

jimmydoreisalefty, to memes in any low hanging fruit?
Aurenkin,

Oh yeah? Prove it then!

jimmydoreisalefty,

Let me check if I can prove it with the maths!

https://lemmus.org/pictrs/image/bc6ed33c-403c-4f87-a145-ae30355d26df.webp

Luisp,

Can’t do math I ran out of spice

jimmydoreisalefty,

noooo!

Uprise42, to mildlyinteresting in Brick

Almost looks like water damage but that is either a lot of water pressure or a long amount of exposure…

IndustryStandard, to programmer_humor in Infinite Loop

Some intern writing spaghetti which a company is going to be based off

ICastFist, to programmer_humor in Programming: The Horror Game
@ICastFist@programming.dev avatar

The real horror is when you discover the monster behind all those errors haunting your sleepless nights… Was you all long

alcoholicorn, to programmer_humor in Infinite Loop

Meanwhile, Dev of company C driving off a bridge, getting laid off after modernizing the 90s era codebase.

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