There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

WhyIDie , in I know 69 languages

and Nice isn’t one of them

WhyIDie , in Int and bool walk into a bar

why yes, I feel like I want temperature this time

WhyIDie , in Recursion

I wouldn’t decide until I find out what the other person in front of me’s already decided, and I’d trust they’d do the same.

ImpossibleRubiksCube , in YOLO-Driven Development Manifesto

“Reorganization is a great way to look busy, without actually accomplishing anything.” --Roman Commander Gaius

ImpossibleRubiksCube , in YOLO-Driven Development Manifesto

When most companies say “Agile”, this is what they actually mean…

lorty ,
@lorty@lemmygrad.ml avatar

At least it’s not SAFe…

ImpossibleRubiksCube ,

Or as I like to refer to it, frAGILE.

danhab99 , in Bleeding edge tech
@danhab99@programming.dev avatar

I hope I’m not being stupid right now, but is that the actual algorithm for counting cards in blackjack?

rho_ ,

Half of it. This gives you the running count. You need to also keep track of “number of decks in shoe” -“number of cards dealt since last shuffle”/52 to tell you how many decks are left in the shoe, then divide the running count by the number of decks left to give you a true count.

True count higher than 1? Start increasing your bet accordingly.

QueenOfSquiggles , in CoPilot is muslim
@QueenOfSquiggles@lemmy.blahaj.zone avatar

I feel so accomplished in my studies that I can recognize a React component now! (Here’s to hoping I can finish my full stack certification soon lol)

marcos , in Would you agree?

Is that image supposed to represent an utopia?

Nioxic ,

Its urban hell, but a few more trees

boeman ,

Ahh… It’s Gentoo

MxGonnaGiveItToYa , in Would you agree?
@MxGonnaGiveItToYa@lemmygrad.ml avatar

Linus really fell from grace given the recent controversy and now probably isn’t a right time to promote his work.

ShrimpsIsBugs ,

Wait, what happened?

late-list ,

I think the saddest part of the whole LTT debacle is realizing how many people confuse Linus Torvalds, the creator and maintainer of the Linux kernel, with some click-bait creating YouTuber who can barely operate a Linux desktop.

stilgar ,
@stilgar@infosec.pub avatar

Are you confused because there’s more than one person in the world called Linus??

Agent641 ,

Dont forget the blanket kid from Snoopy comics.

Rolando ,
  • Linus Pauling, “one of the 20 greatest scientists of all time”
Coreidan , in Pick a side Javascript

If you have that much difficulty with JavaScript then it’s likely you’ll suffer with any language.

MakeAvoy ,

Except strict equality, that’s a JavaScript only problem. Imagine thinking “0” should be falsy in comparison due to string literal evaluation, but truthy with logical not applied based on non-empty string. Thus !“0”==“0” is true. They couldn’t just throw away == and start over nooooo let’s add === . Utter madness

soloner ,

Browser compatibility. Design flaws can’t easily be fixed like how other languages can just switch to a new major version and introduce breaking changes. ES must keep backwards compatibility so has had to do more additive changes than replacing behavior altogether so that older web pages pages don’t break.

MyNameIsIgglePiggle ,

Meanwhile google is about to break the internet with html drm

JonEFive ,

Strict vs loose equality has gotten me so many times, but I can sort of see why they did it. The problem you mention with integers 0 & 1 is a major annoyance though. Like it is fairly common to check whether a variable is populated by using if (variable) {} - if the variable happens to be an integer, and that integer happens to be 0, loose quality will reflect that as false.

But on the other side, there have been plenty of occasions where I’m expecting a boolean to come from somewhere and instead the data is passed as a text string. “true” == true but “true” !== true

MakeAvoy ,

Lua does intrinsic evaluation of strings that i’d argue is not nearly as crazy. I get the value of it since half of interpreted languages it just churning through strings. But I also don’t recommend any large codebase ever use JS’s == or string coercion because it can go against expectations. This graph argues in JS’s favor but comparison is a little more crazy algassert.com/…/Better-JS-Equality-Table.html

nyan , in Recursion

Half-pull the lever so that the points get stuck midway between the two tracks. That should derail the trolley. Someone could conceivably still get hurt, but it improves everyone’s chances.

(What? You mean it isn’t a literal trolley that has to obey the laws of physics? Damn.)

cicadagen ,

News next day, 10 dead in derailment.

EmoDuck ,

Ten baby puppies to be exact

explodicle ,

Philosophy problems vs all real world problems

CrabAndBroom , in Recursion

If we all collectively agree to just pass it on, then either:

  • It’s infinite, and it just passes on forever, or…
  • It’s not infinite and somebody at the end has no choice, in which case nobody in charge of a lever has killed anyone

So yeah, I say pass it on.

FaceDeer ,
@FaceDeer@kbin.social avatar

Except that somewhere down that chain someone is almost certainly going to choose to kill people, so by passing the trolley on down to them you're responsible for killing a lot more than if you ended it right now.

And since every rational person down the line is going to think that, they'll all be itching to pull the "kill" lever first chance they get. So you know that you need to pull the kill lever immediately to minimize the number of deaths.

Droechai ,

Only the person pulling the lever is responsible for his/her action though. There is a difference between passively passing on and actively murder someone

FaceDeer ,
@FaceDeer@kbin.social avatar

If I hand a machete to Jason Voorhees I think I'm at least partly responsible for the people he hits with it. I know what he's going to do with that thing.

Droechai ,

In this case you don’t hand him a machete, instead you murder someone innocent to prevent possible murders in the future by a third party

2d ,
@2d@kbin.social avatar

I guess it comes down to the weight you give the word "possible" in your sentence. If possible means extremely likely (and there are logical reasons to believe so) then taking responsibility makes sense.

CileTheSane ,
@CileTheSane@kbin.social avatar

Except you're not passing a machete to Jason Voorhees. That would be "double it and pass it to the next person who you know is going to pull the lever."

You're passing a machete to the next person in line. You don't know who that is. They may or may not pass the machete down the line. Considering I would not expect a person chosen at random to kill someone when handed a machete, it seems unethical for me to kill someone with a machete just to prevent handing it to someone else.

FaceDeer ,
@FaceDeer@kbin.social avatar

I know Jason is somewhere down that line I'm handing the machete off to. And the farther down the line he is the more people he's going to kill.

simplecyphers ,

There are only 33 people in the line though.

Either you get to 33 and there are no more and the track just ends or it’s “nuke the planet” or dont for everyone else above 33.

aebrer ,
@aebrer@kbin.social avatar

Or it keeps doubling even well after its surpassed the human population, and we all have to keep hitting "pass" in turns forever, and if even a single person gives up then boom.

CrabAndBroom ,

That’s only if he’s next in line though. If you pass a machete to someone who might one day eventually pass it onto him, is that as bad? I suppose at some point there’s an ethical cutoff lol

FaceDeer ,
@FaceDeer@kbin.social avatar

The farther away he is the worse it is because the more people he gets to kill. If for some reason I absolutely had to pass the machete down the line then the best case is for the very next person I hand it to to be Jason. But even better if it's me.

roguetrick ,

Dentological ethics: you have a duty to not murder people, so you don't pull the lever

Utilitarian ethics: pulling the lever will kill less people

Droechai ,

In this case it isn’t even a guarantee that anyone has to die as the problem is presented, the tram can just continue to be passed along. The default setting for the lever is “go to next” so to not pull the lever is easier both physically and morally.

The individual that pulls the lever is the same individual that would take action to harm others for no benefit, and even in real life I can’t morally take responsibility for a person who runs over a child by purpose after I let his/her car merge in front of me just before a school crossing

superkret ,

Yeah, but you have to factor in what sort of person would choose to man the 32nd lever with the power to kill half the people on earth.

CrabAndBroom ,

I guess then the issue would be: do you ever find out the result of your actions? If no, then I guess it’s sort of a “glass half empty/full” kind of thing, because you could just pass it on and assume the best and just go live your life quite happily.

Although if you did find out the result, imagine being first, pulling the lever and then finding out nobody else would have.

Squirrel ,
@Squirrel@thelemmy.club avatar

If it’s infinite (up to the current human population), we’re all tied up on the tracks. Unless we’re leaving out the exact number of people that would bring it to approximately the full population, I guess.

As long as I’m not on the tracks, I’ll take the hit and kill one instead of risking a potential genocide.

midorale ,

If it’s infinite, you’d basically be gambling that no evil person exists.

mtchristo , in Would you agree?

No esthetics wise it would be worse than the USSR

argv_minus_one ,

No way. Plasma is beautiful.

lambalicious , in Recursion

I don’t have to be a soldier on anyone’s ethical recursion war, so since the default position is set to kill 1 person, that gets done by the problem itself and the whole thing is solved without me having to do anything.

As a further bonus, now the lever people on the next branches are free to get out of the levels and go release the other prisoners.

deft , in Would you agree?

how easy is linux? i see so many memes now and i wanna switch but I’m not confident in it

LucyLastic ,

Linux Mint is easier to use than Windows

frippa ,
@frippa@lemmy.ml avatar

Seconding that, made the switch and nothing broke since(almost 2 months now, ^o^) . Can’t say that for windows tho, where not only auto updates meant I had to wait half an hour to use my PC half of the time or disable them and not be up to date with security, but the OS itself was riddled with problems, sometimes just opening Firefox with a few tabs (like 4 or so) would bsod (and I have 16 gigs of ddr4 ram, so it wasn’t a ram problem) not to mention now that I’m on Mint everything is faster, I didn’t have to pay a license key and I know my OS isn’t trying to fight me for my data.

TechCodecPawx OP ,

Start by exploring Linux Mint or ZorinOS… Both are optimized to feel like Windows… You can watch YouTube videos about them to understand what I mean

MrSlicer ,

You can easily try it out by booting from usb.

F04118F ,

At the risk of analysis paralysing you… But if you have an Nvidia video card, I would start with Pop!_OS

MJBrune ,

I recently tried pop os but gnome did not seem reasonable for me on multiple monitors.

F04118F ,

Thanks for your addition! It is working fine for me, but I may have changed the config a bit from the default, don’t remember everything. I have default tiling now and that works really well.

MJBrune ,

One of the things that is a must for me is 1 panel that shows the windows and apps per monitor. I can’t work any other way, I’m not looking to drastically change my workflow more so than Linux alone already is. My quick Google search said that it wasn’t possible on Gnome 44 and I gave up.

That said, KDE is laggy and unresponsive. It’s also fairly unusable. Everything else besides those 2 is like going back 20 years to desktop environments of the olden days. I just want something modern that works with my workflow.

argv_minus_one ,

If you have an NVIDIA video card, I would start with buying AMD or Intel instead. Attempting to use NVIDIA with Linux will result in misery.

sharkfucker420 ,

It’s pretty easy imo if you start with a Debian distro

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines