programming.dev

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

I disagree. Without explicit direction on OOO we have to follow the operators in order.

The parentheses go first. 1+2=3

Then we have 6 ÷2 ×3

Without parentheses around (2×3) we can’t do that first. So OOO would be left to right. 9.

In other words, as an engineer with half a PhD, I don’t buy strong juxtaposition. That sounds more like laziness than math.

wlsnt,

as a half PhD Go read the article, it’s about you

flying_sheep,
@flying_sheep@lemmy.ml avatar

How are people upvoting you for refusing to read the article?

Pulptastic,

I did read the article. I am commenting that I have never encountered strong juxtaposition and sharing why I think it is a poor choice.

flying_sheep, (edited )
@flying_sheep@lemmy.ml avatar

You probably missed the part where the article talks about university level math, and that strong juxtaposition is common there.

I also think that many conventions are bad, but once they exist, their badness doesn’t make them stop being used and relied on by a lot of people.

I don’t have any skin in the game as I never ran into ambiguity. My university professors simply always used fractions, therefore completely getting rid of any possible ambiguity.

fallingcats, (edited )

Yeah, but implicit multiplication without a sign is often treated with higher priority.

Pulptastic,

Is it though? I’ve only ever seen it treated as standard multiplication.

fallingcats,

Read TFA

The_Vampire,

Sure. That doesn’t mean it’s right to do.

fallingcats,

Please read the article, that’s exactly what it’s about. There is no right answer.

Fedizen,

Let them fight.

nissenice, to programmer_humor in :q! to quit the Force

False! A proper Vim user would never put their hand on the arrow keys.

hakunawazo, (edited )

Always on hjkl to move, and always ready to insert (i), append (a) or insert before (O) or after (o) line and fast escape with esc.
For search and rescue missions usually use the /.
They need a vim drill before combat.

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

I’m sure that commit will be fixed in sort order and not remain that way until it becomes a “we don’t know why, but just do this bit.”

hakunawazo, (edited )

Just comment out the window until it is fixed. Either way it isn’t dangerous as long as you surround it with try/catch.
But I don’t know exactly about that catch part if something happens a few miles above.

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 ?

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

Just use What The Commit.

You can also create a git alias:

git config --global alias.yolo ‘!git add -A && git commit -m “$(curl --silent --fail whatthecommit.com/index.txt)”’

Now you can just type ‘git yolo’ to create a commit!

MajorHavoc,

Well that’s about half my commit messages that are going to be nonsense on weekends projects, now. Thank you!

ikidd,
@ikidd@lemmy.world avatar

Full send.

Olgratin_Magmatoe,

“Make Sure You Are Square With Your God Before Trying To Merge This”

jungle, (edited )

Thanks for that, I’ve been laughing like a little kid:

“hoo boy”

“lol”

“Become a programmer, they said. It’ll be fun, they said.”

I can feel those so well! :')

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

Well such an informative reply! Thanks mate 👍

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

The ambiguous ones at least have some discussion around it. The ones I’ve seen thenxouple times I had the misfortune of seeing them on Facebook were just straight up basic order of operations questions. They weren’t ambiguous, they were about a 4th grade math level, and all thenpeople from my high-school that complain that school never taught them anything were completely failing to get it.

I’m talking like 4+1x2 and a bunch of people were saying it was 10.

hamburglar26,
@hamburglar26@wilbo.tech avatar

Oof, even my smooth brain can get that one right.

Brak,
@Brak@hexbear.net avatar

I’m talking like 4+1x2 and a bunch of people were saying it was 10.

agony-shivering

the answer is 6 though, right?

fallingcats,

No, the aswer clearly is 2x+4.

Brak,
@Brak@hexbear.net avatar

my brain hurts again

fallingcats,

I refuse to accept x as a multiplication sign. Multiplication ist either or maybe * but never x and certainly not ×, because that’s a cross product

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

Don’t forget math with fruits! imgur.com/JOuRhQ3

wischi, (edited )

Just saw the image you posted and it’s awesome :-) I’m part of the group that can’t solve it, because I don’t know the 🌭 function from the top of my head. I also found the choice of symbols interesting that 🌭 is analytical continuation of 🍔 and not the other way round 🤣

MangoPenguin, to programmer_humor in GitHub Desktop or Git CLI?
@MangoPenguin@lemmy.blahaj.zone avatar

I really like Sourcetree, been using that for a long time.

ohlaph,

Same here. Use it regularly at work. For personal projects, I tend to just use the IDE.

pimeys, to programmer_humor in GitHub Desktop or Git CLI?

Magit

akkajdh999,

fugitive

RePierre,

I was looking for someone to mention Magit. It just rocks!

h_a_r_u_k_i,
@h_a_r_u_k_i@programming.dev avatar

This + org-mode are enough for me to switch to Emacs.

alphabetsheep, to programmer_humor in GitHub Desktop or Git CLI?

Ohmyzsh with the git plugin is my fave - gaa & gcmsg “a commit” feels like the right level of verbosity for me.

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

Wow what’s the plugin name I wanna try it out.

alphabetsheep,

The plugin is just called “git” it comes with ohmyzsh out of the box. You just have to enable it in your zshrc.

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

Thanks 👍

KairuByte, to programmer_humor in 1 follower on GitHub = 1000 followers on other platforms 😅
@KairuByte@lemmy.dbzer0.com avatar

Who follows users on GitHub? Repos, branches, issues, PRs, sure. But users?

Daxtron2,

I follow TodePond because they have funny repos and star weird stuff.

jasory,

Some people (like myself and other scientists/mathematicians), write software for specific fields so if you follow them you find it out what work they are putting out, and issues they find in other software etc.

firelizzard,
@firelizzard@programming.dev avatar

I have 13 followers on GitHub. A few are friends from college, the rest I have absolutely no clue why.

Lucien, to programmer_humor in Twitter/GitHubProjects has no chill 😅
@Lucien@hexbear.net avatar

Man fuck that, if I’m in a coma work can suck my dick

Nakoichi,
@Nakoichi@hexbear.net avatar

probably having some sick ass dreams and not having to work

QuazarOmega,

…dreaming of all tests passing

erayerdin,

This is the guy who has 10 years experience on a 1 year old framework.

savvywolf, to programmer_humor in Twitter/GitHubProjects has no chill 😅
@savvywolf@pawb.social avatar

Anyone else getting that corporate “forced meme” vibe from this?

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

I didn’t, but now I do 🙌

pomodoro_longbreak, to memes in 6÷2(1+2)
@pomodoro_longbreak@sh.itjust.works avatar

Meanwhile programmers will be like, fools, clearly 2(n) is a function 😏

fallingcats,

I don’t know a single language that lets you use a name starting with a number for anything off the top of my head

deadbeef79000,

Probably Haskell.

Lilac,

Kinda. You can’t define a name, but you can get the compiler to interpret literals as a function. If you have a Num instance for (Integer -> Integer) where,

fromInteger i = x -> x * i

the compiler can interpret integer literals as functions like so

x = 2(5) :: Integer

Deiv, to programmer_humor in When you forget to set a boundary conditions in your logic

You’re special, #6,211,583

🤣

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