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.

nothacking , in Bleeding edge tech

Is this part of a Hi-Lo implementation for blackjack? (Also, ewww mixed types)

obosob ,
@obosob@feddit.uk avatar

Yeah, just use a char for card and test


<span style="color:#323232;">if(card &lt; '7') count++;
</span><span style="color:#323232;">else count--;
</span>

Or something, don’t mix types.

Hexarei ,
@Hexarei@programming.dev avatar

The cards should just be numbers, and an enum should be used for display names

obosob ,
@obosob@feddit.uk avatar

Chars are just numbers, but yeah, an enum would work fine too, sure. The only advantage with using a char for it is that there’s no conversion needed for outputting them into strings so it’s a little easier. Less code, very readable, etc. Though yeah, thinking about it JQKA wouldn’t be numerically in the right order which could cause issues if the program did more than just implement HiLo

nothacking ,

Well that won’t work for 7, 8 or 9.

obosob ,
@obosob@feddit.uk avatar

I didn’t notice that 7,8,9 had no effect on the count. My bad.

pewpew , in Bleeding edge tech
@pewpew@feddit.it avatar

but the I in AI it’s actually a lowrcase L, so it’s short for Algorithm

ShortFuse ,

It kinda annoys me that the lowercase L glyph is taller than capital A. I don’t mind there being a difference, but cap-height should be taller than lowercase letters.

Illuminati

superkret , in Recursion

Depends on what I know about the other lever pullers. This is basically limit poker when you’re the big blind.

halvar , in Would you agree?

Until the moment someone finds a privilage escalation bug.

Yuki ,

:D

linearchaos ,
@linearchaos@lemmy.world avatar

Come to think of it that’s kind of how society works no?

halvar ,

Well not completly, but yes most of the servers run linux

MrMamiya , in Would you agree?

If Linux was dominant it wouldn’t be Linux. There would be more pressure to monetize and there would always be someone willing to sell out for that money. You can see this even in the Linux community today. I’m sorry I had to be so negative about it though, it sounds nice.

Frog-Brawler ,
@Frog-Brawler@kbin.social avatar

Maybe it should say, “If the world went open source, and capitalism went away.”

RogueBanana ,

Even fantasy should have some limits folks c’mon now

jamieWxyzt ,
@jamieWxyzt@kulupu.duckdns.org avatar

Which is more fantastical? Unlimited profits and line going up forever in a finite world? Or capitalism actually ending so all lives can live free from subjugation?

vettnerk ,

If windows didn’t exist, linux would dominate with the problems you describe, and we’d still see this meme, but advocating for FreeBSD instead.

That being said, I like them both. It’s been a while since I last used bsd, so I think it’s about time I give it another spin.

itsJoelle ,

I’m unsure. I switch between MacOS and Linux regularly.

I’d reckon Apple’s OS would dominate the “user friendly” space(not saying Linux is bad, just what everyone memes).

IcedCoffeeBitch ,

At least it would be GPL tho.

argv_minus_one , (edited )

Linux is already dominant on just about everything except the desktop, and it has yet to suffer significant enshittification.

Edit: Well, a bunch of Linux distributions have suffered enshittification, if that counts.

Redkey ,

Does this also apply to Android?

argv_minus_one ,

I’m not sure. I’ve only ever used the stock operating system on my phones.

tool ,
@tool@lemmy.world avatar

If Linux was dominant it wouldn’t be Linux. There would be more pressure to monetize and there would always be someone willing to sell out for that money. You can see this even in the Linux community today. I’m sorry I had to be so negative about it though, it sounds nice.

This is a very Desktop/workstation-centric view of the situation and you’re completely neglecting 3/4ths of the story. Linux is already hilariously dominant on the on-prem server and Cloud side of things. Like, it’s not even close. Pretty much any website you visit, the odds are overwhelming that it’s running Linux. Even Microsoft runs most of the underlying infrastructure for Azure and Github on Linux. Android is the #1 mobile phone platform in the world, which runs on, you guessed it, Linux.

And it’s already monetized to the gills. Red Hat has multi-billion earnings per quarter, every quarter, and Canonical is almost certainly going to IPO this year.

It’s already dominant in pretty much every space it touches and it has been for a very long time. Desktop/workstation is pretty much the singular exception to that.

MrMamiya ,

Yeah man it’s more of what you might call an allegory for how capitalism works. Language is my thing, looks like Linux is yours. I’m sure this information will be very helpful for anyone who might read my post and mistake me for an expert. Thanks for your service.

docAvid ,

Who, exactly, do you think would “sell out for money”, and why would they have the power to do so? Linux is huge, and the pressure to monetize is there now. Plenty of people have been trying to monetize Linux - and in many cases, succeeding - for decades now. Why do you think being dominant would change that?

IWantToFuckSpez , in Would you agree?

Aren’t the majority of computers already on Linux? Unless you mean desktops

GammaScorpii ,

Most computers in the world are not desktops

Unforeseen ,

deleted_by_author

  • Loading...
  • Asudox ,

    Windows Server for usage in actual servers? Those companies must be retarded to the core.

    alcasa ,

    Windows Server is rather common in large enterprise software. All the stuff you pray you never have to interface with

    Asudox ,

    It sure is convenient. You get a user friendly GUI. But the stability, the resource intensity and the spyware. It’s really a retarded decision to build your servers on Windows Server.

    msage ,

    Yes, but some software, and it’s usually a financial application, requires a Windows Server.

    I’ve seen it more than once, as I had to set up the machine, I was dying inside, but there was just no alternative that the accounting could use.

    LinuxSBC ,

    It’s really common. The IT people know how to use Windows, and they need Active Directory to manage their Windows devices, so they just use Windows Server.

    CookieOfFortune ,

    There’s probably one computer at most per employee, but each employee already has a non Windows cell phone. Most servers run Linux. Then there’s Linux in a bunch of small devices as well. Windows is a small part of that pie and only getting smaller.

    linearchaos ,
    @linearchaos@lemmy.world avatar

    Majority… yeah, Android smartphone and servers would be a really really big number.

    donut4ever , in e = error in syntax

    styleshit is even better

    Tschuuuls , in Recursion

    This is a screenshot from here neal.fun/absurd-trolley-problems/

    lugal ,

    I did it and it was fun but the one in the post wasn’t there and neither does the font and layout fit.

    jack , in Would you agree?

    Linux itself does nothing for desktop computing, you also need GNU and the rest of the free software suit to better the world

    Norgur , in Would you agree?

    It was all fun and games until the wifi driver didn't compile...

    Rakust , in Would you agree?

    No, because everyone would be sitting around jacking each other off about using linux, if current trends are to be believed.

    CanadaPlus ,

    There’s a weird secretive compound on the edge of town. If you go up to the gate and try to talk to them they just reply “I use Arch BTW”.

    mustardman , in Would you agree?

    > every building by zaha hadid

    > still not a walkable City

    I would not agree

    Unforeseen , in Would you agree?

    Competition and choice is good, it keeps the ecosystem healthy and resilient.

    original_ish_name , in Would you agree?

    No, firewalls should use openBSD

    towerful ,

    Why?
    I’ve tried to Google this, but it’s such a general statement I can’t find anything about it.
    Is it more mature in that regard? Sane/sensible/safe defaults for networking? More tools as part of the distribution for networking?
    Did FreeBSD (or it’s predecessor/upstream/whatever) define the standards, so the implementation is more correct?

    Or is it just that so many firewall applications run on top of FreeBSD (or a BSD flavour) eg opnSense, pfSense, openWRT (is openWRT actually BSD, idk)?
    So, kinda a historical/momentum thing. With the benefits of wide spread specific use

    LinuxSBC ,

    OpenBSD is focused on being incredibly secure, and they generally succeed. Firewalls need good security.

    argv_minus_one ,

    Everything needs good security. Firewall devices only cover a specific, limited portion of the attack surface of machines behind them. One successful browser exploit or attack on an exposed port, and the firewall may as well be a paperweight.

    LinuxSBC ,

    True, but it’s hard to get end users to use OpenBSD. It’s really easy to make a firewall based on OpenBSD.

    Rolando ,

    I personally don’t have a lot of experience with this, but here’s a writeup about OpenBSD: nxdomain.no/…/what_every_it_person_needs_to_know_…

    linearchaos ,
    @linearchaos@lemmy.world avatar

    FreeBSD this focused on making a general use operating system

    Open BSD is focusing on security the developer insists on regular audits.

    Under most circumstances I wouldn’t really care, we’re getting a long well enough on Microsoft and Android with security updates all the time. That firewall man, it’s sitting out there with its ass hanging in the wind, The only thing between you and a billion hastily written scripts.

    Mubelotix , in Would you agree?
    @Mubelotix@jlai.lu avatar

    If everyone used Linux I would use BSD

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