programming.dev

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

That’s cool and Imma let you finish but I’m not a mathematician and the answer is 9.

wischi,

That’s the correct answer if you follow one of the conventions. There are actually two conflicting but equally valid conventions. The blog explains the full story but this math problem is really ambiguous.

baggins, (edited )

I read it. And I’m not a mathematician, so the answer is 9.

E: The salty mathematicians down-voting this can get fucked lmfao

wischi, (edited )

Ooh now I get you, sry. True. But sadly you now know the truth and you have to be careful with the implicit multiplications on your tax forms from now on ;-)

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

I read the whole article. I don’t agree with the notation of the American Physical Society, but who am I to argue that? 😄

I started out thinking I knew how the order of operations worked and ended up with a broader view of the subject. Thank you for opening my mind a bit today. I will be more explicit in my notations from now on.

wischi, (edited )

Thank you so much for taking the time. I’m also not convinced that APS’s notation is a very good choice but I’m neither american nor a physisist 🤣

I’d love to see how the exceptions work that the APS added, like allowing explicit multiplications on line-breaks, if they still would do the multiplication first, but I couldn’t find a single instance where somebody following the APS notation had line-break inside an expression.

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

I really hate the social media discussion about this. And the comments in the past teached me, there are two different ways of learning math in the world.

wischi, (edited )

True, and it’s not only about learning math but that there is actually no consensus even amongst experts, about the priority of implicit multiplications (without explicit multiplication sign). In the blog post there are a lot of things that try to show why and how that’s the case.

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

Don’t worry, the outside window is definitely still intact.

otter,

Maybe there’s an inappropriate doodle on the window or something?

HubertManne,
@HubertManne@kbin.social avatar

that would make me feel better. I might walk off a plane seeing that.

Knusper, (edited ) to programmer_humor in Me and my new GitHub repository

I have my repos on Codeberg and one of the ‘disadvantages’ is that, well, it’s a non-profit, so I genuinely don’t want to waste their resources.
They ask you to only host open-source repos there, meaning that using it for backups of shitty personal projects, even if I would throw in an open-source license, is just out of the question for me.

And that has weirdly been a blessing in disguise. Like, if it’s not useful for humanity to see, do I really care to keep it around forever?

And I’ve had three projects now where I felt an obligation to push them over the finish line of actually making them a useful open-source project. Which had me iron out some of the usability shortcuts I took, made me learn a good amount of code quality stuff and of course, just feels good to complete.

rufus, (edited )

Well, Codeberg is a non-profit. I would say if it’s just a few kilobytes/megabytes of code, upload it and donate $10. That should be enough to store that for decades.

I sometimes look for small stuff. Boilerplate code, how other people configure stuff that isn’t well documented, niche interest stuff even if it’s not finished. Sometimes stuff like that is useful.

araozu,

That’s why I host all my shitty unfinished projects in a Gitea instance in my VPS. Now they actively cost me money and I feel (a tiny bit) more incentivized to do so something with them!

cynber, (edited ) to programmer_humor in Me and my new GitHub repository
@cynber@lemmy.ca avatar

I was chatting with a friend, and she mentioned how she tries to at least set up a README, which includes her vision for the project and her plan for the implementation, design, and goals.

Best case scenario is that the planning helps her complete the project herself. Worst case scenario, someone else can pick up where she left off and use her considerations for the project.

I’m thinking of doing that for future projects too

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

ReadMe is always underestimated while project is building, but it can become a cornerstone if it’s setup from very beginning. Your friend is smart 👍

d_k_bo,

A Free Software License is even more important. There are many great projects out there which you can’t modify etc. because the project isn’t distributed with a license (which means “all rights reserved” in most jurisdictions).

QuazarOmega, to programmer_humor in Me and my new GitHub repository

Better to have tried and stopped than never to have started at all

hypnotic_nerd,
@hypnotic_nerd@programming.dev avatar

Exactly 💯

QuazarOmega,

Heck yeah, you always learn something after all!

tacosplease, to programmer_humor in The Holy Trinity of JavaScript

As a person who is coding adjacent (I work with basic SQL and VBA, once learned but never used HTML & CSS, learned some C+, some JavaScript…) I don’t fully understand most of the memes here, but it feels like I’m learning a bit through immersion like being a non-native speaker in a foreign land. It’s a fun ride.

uid0gid0, to programmer_humor in The Holy Trinity of JavaScript

Violating the transitive property? Go home JavaScript, you’re drunk.

Thcdenton, to programmer_humor in The Holy Trinity of JavaScript

Fuck this language with a pineapple

mindbleach, to programmer_humor in The Holy Trinity of JavaScript

“The trinity makes as much sense as Javascript” is a vulgar condemnation of Christian dogma.

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

Gonna show this to my Discrete math professor

tiny_electron, to programmer_humor in The Holy Trinity of JavaScript

This never gets old lmao

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

This is how I played guitar hero III on PC but upside down. I wasn’t allowed to play it back at my house so I pirated it and improvised

turbodrooler,

“No son of mine is going to play a fake guitar!” - Your dad, Robert Fripp or somebody

DoucheBagMcSwag,

No it was more of rock music being the devil or something like that. N

reinar, to linux in Microsoft published a guide on how to install Linux.
@reinar@distress.digital avatar

why not? it’s not like there is any competition.
Microsoft is making more money off Linux with Azure than several red hats combined.

stepanzak,

Yes, but people find this interesting because historically, Microsoft was actively trying to destroy Linux (look up Halloween documents) and even said that Linux is cancer.

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