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.

lemmy.ml

EdibleFriend , (edited ) to memes in stop playing tetris!!1!1!!
@EdibleFriend@lemmy.world avatar

I played Tetris on the original game boy. Right now I’m listening to the Rocky horror picture show soundtrack.

Coincidence?

MxM111 ,

I don’t think so. You are five minute to gay.

EdibleFriend ,
@EdibleFriend@lemmy.world avatar

Is that when Henry Cavill gets here?

mossy_ ,

If so, your prognosis is bleak

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

I’d bleak his prognosis.

bloubz ,

I hated Tetris on the original Gameboy but now I’m bi. Please explain

ZILtoid1991 , to funny in orange

Pringles guy becomes uncanny

hansvonwurst , to memes in What my dad sees. What I see.
@hansvonwurst@lemmy.world avatar

Boobs!! Definitely boobs

astrsk , to linuxmemes in I'd like to interject for a moment.
@astrsk@piefed.social avatar

+1 for using LTSC with MAS activation. It’s about the only acceptable way to run windows at home, other than doing the same thing but in an isolated VM.

onlinepersona , to programmerhumor in Throwing a whole tech stack at this problem...
Ephera OP ,

This game: crawl.develz.org

It’s packaged for my distro, but I’d like to play Nightly builds.

The game is developed for fun by a community, so I don’t want to claim that this is peak documentation or build logic for a C application, but simultaneously, there’s not many programming languages where I would have the thought to launch a different operating system just to compile…

casual_turtle_stew_enjoyer , to linuxmemes in I'd like to interject for a moment.

This deserves a ban imo

Zuberi , to programmerhumor in Throwing a whole tech stack at this problem...
@Zuberi@lemmy.dbzer0.com avatar

What does this mean exactly?

Plasma ,
@Plasma@lemmy.ml avatar

Containers maybe?

joshzcold ,

The gophers are podman.io which builds and runs containers. My guess is they are building the same application in multiple distros for their one application

Like

my-app-nix my-app-fedora my-app-alpine

It’s a common practice so users can choose the distro they prefer when launching your container in their stack.

PotatoesFall ,

Pretty sure they are seals, not gophers.

YIj54yALOJxEsY20eU ,

A group of seals is a pod!

Ephera OP ,

In this case, it’s not my program, it’s an open-source project I’m trying to compile, and I actually can’t get the program to compile on any of these distros.
I tried nix-shell at first, then I tried launching containers of Debian and Fedora, which have official build instructions, and yeah, nothing has truly worked so far.

I do have a working setup on openSUSE, but it involves half-compiling it in nix-shell and then compiling the rest with whatever magical combination of openSUSE packages I have on there. This setup also happens to be on my old laptop…

PotatoesFall , to programmerhumor in Throwing a whole tech stack at this problem...

why are you using three different distros to build a single application?

MajinBlayze ,

The why is a good question, but I’d also like to know “How?”

_hovi_ ,

I’d assume virtual machines - as for why, just checking their program works on different systems I guess

PotatoesFall ,

according to the meme it’s just compiling, no other build steps… suspicious

MajinBlayze ,

Yeah, probably more boring than I assumed; podman with 1 apt based distro, one rpm based distro, and Nixos. Each doing an independent build and packaging in their respective builds systems.

I was hoping for some rube Goldberg’s machine of compilation, but that’s probably not the case.

joyjoy ,

Probably nixos to run distrobox with fedora, then using podman to run debian to compile the C application.

Ephera OP ,

Well, first I tried compiling it on my own distro (which isn’t listed in the image). Then I tried compiling it with the help of nix-shell (that’s the NixOS logo).

Then I figured, fuck it, let’s just launch a whole container for compiling, so I tried the distros listed in the official documentation (Debian and Fedora), which, you guessed it, didn’t work either.

This is a hobby project that I’m trying to compile, so this definitely won’t be the best showing of C, but still just astronomically more painful than it should be…

wildbus8979 , (edited ) to memes in Americans be like

Finally! It’s just too bad my insurance score is still too low for me to get the required homeowner’s insurance because the car company shared my driving data with insurance data brokers, and they don’t like that I park in front of bars every Friday night, they don’t know it’s because I have a third job as a busboy. It’s ok though, cause at least I’m still free to tip my landlord, and employment rates are up!

Drinvictus ,

But remember. You’re paying his mortgage and you can’t deduct that from your taxes but he can deduct his mortgage from his taxes (the same mortgage that you paid)

Asudox , to linuxmemes in I'd like to interject for a moment.

blasphemy

Tenkard , to programmerhumor in the hardest exam question
  1. You can call it “Java” to enrage other programmers
  2. You can compare numbers against strings without wasting time converting them
TrickDacy ,

If you’re living in 2002 and not using the strict equality operator, that’s on you

luciferofastora ,

But what if I don’t want strict comparison? What if my frontend contains a text field for a numeric input and I wanna manually check against each possible valid input value if (input_val == 1) {…} else if (input_val == 2) {…} else if… without having to convert it first or check that it’s actually a number or fix my frontend?

(I’m sure there are valid use cases for non-strict comparison, I just can’t think of one right now)

PrettyFlyForAFatGuy ,

why wouldn’t you just convert inline? (Number(input_val) === 2)

Converting would mean you could use a switch statement with your example rather than an if else ladder


<span style="color:#323232;">switch(Number(input_val)) {
</span><span style="color:#323232;">  case 1:
</span><span style="color:#323232;">    doTheFirstThing();
</span><span style="color:#323232;">  break;
</span><span style="color:#323232;">  case 2:
</span><span style="color:#323232;">    doTheSecondThing();
</span><span style="color:#323232;">  break;
</span><span style="color:#323232;">  case 3:
</span><span style="color:#323232;">    doTheThirdThing();
</span><span style="color:#323232;">  break;
</span><span style="color:#323232;">}
</span>
luciferofastora , (edited )

If you’re looking for good code, you missed the point of my comment 😄

If I was looking for an enumeration of valid inputs, I’d make it a selection box rather than a text field that’s supposed to contain a number and give the selections reasonable names. If I want an integral quantity, I’d use a number input field.

If I have no control over the frontend, that means I’m writing a backend in JS for a bullshit frontend, and no amount of good coding practice is going to salvage this mess.

I’m also blessedly far away from WebDev now. I work in Data Analytics and if I ever have to do any of this for a living, something has gone very wrong.

Converting texts into numbers or dates still haunts me though - fuck text inputs for numbers and dates.

neclimdul ,

Array(16).join(“wat” - 1) + " Batman!";

nxdefiant ,

JavaScript: :wide eyed and smiling: Sure why not! You’re the boss!

Python: Sighing and downing half a bottle of Advil: Sure. Why not, you’re the boss.

nxdefiant ,

The scripting language formerly known as Java.

gaael , to programmerhumor in the hardest exam question

You’ll find an npm package to help you count up to 2.

(I recently learned - maybe here - that the is-even package has over 170k weekly downloads)

Drusenija ,

What’s even wilder is if you look at the code of that package, all it does is include the is-odd package and then return !is. And the is-odd package isn’t much better, it does some basic checks on the input and then returns n % 2 === 1.

NotAViciousCyborg ,

I thought I was missing something. JS is one of my main languages and I always just write the is-odd function myself since it’s like 10 characters. It boggles the mind that is-even has 176k weekly downloads

Aqarius ,

If youre lazy/busy enough, doing basic checks on the input is enough boilerplate to package out.

gaael ,

Also there are 40-something packages depending on it, so I guess it gets pulled automatically when they are used.

kevincox ,
@kevincox@lemmy.ml avatar

To be fair having a name can make things easier to read. I get that i % 2 == 0 is a common pattern and most programmers will quickly recognize what is happening. But isEven(i) is just that much easier to grok and leaves that brainpower to work on something else.

But I would never import a package for it. I would just create a local helper for something this trivial.

NotAViciousCyborg ,

Exactly what I would do if I had to reuse it, especially now since I know that adding a package would actually add 2. It all just seems so…inefficient

kevincox ,
@kevincox@lemmy.ml avatar

Even if the code isn’t reused adding names to sub-expressions can be very valuable. Often times I introduce new functions or variables even if they are only used once so that I can give them a descriptive name which helps the reader more quickly understand what is happening.

NotAViciousCyborg ,

Yeah, I do that with pretty much every separate operation in c# since our solutions are pretty big. Most of my JS scripts are just done in ServiceNow which are separated and named appropriately.

gravitas_deficiency ,

I’ve always looked at stuff like that as much more along the lines of performance art than anything else.

hemko ,

Is-even continues to be the best joke in the industry

kamen ,

This must be a “hold my beer” kind of joke and someone wanting to see how far they can take it.

PrettyFlyForAFatGuy ,
MintyAnt , to memes in shrooms?

Shout out to that particular sub losing any and all meaning to what it’s purpose was over the years

Sibbo , to programmerhumor in just make

Trump is too unironically placed next to two important persons from US history here. Ethically questionable.

festnt ,

i have no idea whats going on in us’ politics, could you explain what trump did?

WeirdGoesPro ,
@WeirdGoesPro@lemmy.dbzer0.com avatar

He systematically used the power and influence of the presidency to project falsehoods, encourage division and violence, and potentially feed classified information illegally to foreign governments for his own personal gain.

He is currently on trial for bribing people to stay silent about his affairs during the 2016 election. He was previously found to have illegally taken classified documents back to his home in Florida and kept them after he was president, potentially to sell information. His son in law was given a career in the White House with no prior experience, and there is a huge paper trail to suggest that he got paid 2 billion by foreign governments for representing their interests during that time.

He’s like a corruption buffet, and he has openly stated he will retaliate against everyone he considers an enemy if he wins again.

Telorand ,

Somebody literally set themself on fire outside the courthouse while his criminal trial was going on, for reasons that appear to be in support of the conspiracy theories Trump and the entire Conservative Griftosphere peddles.

He’s a danger to humanity.

festnt ,

i knew he was bad but damn thats a lot of stuff. i hope he gets what he deserves.

WeirdGoesPro ,
@WeirdGoesPro@lemmy.dbzer0.com avatar

That’s only a brief list too. We probably don’t know the full extent of his crimes, and more keeps getting revealed. 10 minutes of googling the news about him is going to blow your mind.

xor ,

Two important persons from US history, a deity and a little penguin

It’s just a shitpost, not a declaration that Trump was some great American historical figure, chill

ulkesh ,
@ulkesh@beehaw.org avatar

You’re right! It is a post with some shit on it, namely Trump and this so-called deity. ;)

OldWoodFrame ,
danc4498 ,

Damn. Making America great again would require undoing everything those two assholes did.

TrickDacy , to programmerhumor in the hardest exam question

God people it’s getting old

MashedTech ,

Bro, I’d prefer C# or go for the http sever

TrickDacy ,

Web assembly!!!1

MashedTech ,

!!!111!1!1!1111!!!

tiefling , (edited )

How many people are out here raw dogging JS without strict TS or even unit tests

TrickDacy ,

They’re not I’m sure, they just wanna bitch about a language without caring about why it is how it is.

PrettyFlyForAFatGuy ,

I use JS if i’m doing something on my own

TS if i have to work with other people

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines