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.

gerryflap , in The lengths we have to go to
@gerryflap@feddit.nl avatar

People here are taking this way too seriously lol. I love Python, and I never really had any issues with the indentation being used instead of curly braces or something. This is just a silly meme, not a personal attack

alphacyberranger OP ,
@alphacyberranger@sh.itjust.works avatar

Precisely. It’s like programmers lost their humor.

some_guy ,

Had humor? /s

Asymptote ,

Humor is hard for autists.

(Disclaimer: am autist)

DarkenLM ,

I have not known happiness for 12 years now.

Anticorp ,

Right? Especially since there are plugins for VS Code that colorize the indents.

Asymptote ,

VSCode? Is that an Emacs extension? Or is it for vi?

DarkenLM ,

It's a bash script made to be run on MS-DOS on a breadboard computer.

Asymptote ,

bash

MS-DOS

r u a wizard

DarkenLM ,

I shall henceforth take the title of wizard.

MajorHavoc ,

Sadly neither, but it’s Vi plugin is nearly perfect.

Osnapitsjoey ,

Oooh whats a good one called?

Anticorp ,

I’m not at my computer right now, but I think the one I use is called indent-rainbow.

calzone_gigante ,

I really like the identation aproach, or begin/end instead of curly braces or parenthesis. When people start to nest things too deep, it gets painful to look at.

merc , (edited )

Then you never had to share a codebase with someone who had different ideas about how things should be indented.

gerryflap ,
@gerryflap@feddit.nl avatar

Hmmm nope. That sounds like hell indeed

AllNewTypeFace , in Haskell researchers announce new discovery
@AllNewTypeFace@leminal.space avatar

IIRC, the majority of Haskell enthusiasts’ day jobs are coding in Java, and things like monad transformer stacks and applicatives are things they daydream about as a coping mechanism against the tedium. Which is probably why Scala exists.

mobyduck648 ,
@mobyduck648@beehaw.org avatar

Can confirm, I write Scala at my current workplace and spend my days over the moon about the fact I’m not writing Java.

Laticauda , in Confused AI Overlords

This would probably actually help the ai to learn the subtle differences between the dogs and the chicken.

PoorlyWrittenPapyrus , (edited )

Clearly it’s a dog if the background is green.

Otherwise, it’s fried chicken.

BeMoreCareful ,

Good bot

XTornado ,

Lettuce strikes again.

Resistentialism ,

Or we could band together and pretend the chicken is the dog. And the dog is the chicken.

This, however, could lead to some very interesting AI generated recipes.

CanadaPlus ,

I wonder if anyone prepares dog meat this way. It’s a pretty simple concept, so it has to have been tried, right?

Resistentialism ,

To be fair. Chicken fried steak tastes alright. So, by this logic, if it’d chicken fried dog. First off all, that’s amazing, where did chicken learn to cook? Secondly. It has potential.

Fuzzy_Dunlop , in Good Old Windows

I can navigate Windows well enough for my job, but I’d never choose it for personal use. I’m no Linux expert, but I haven’t yet been faced with a problem I couldn’t solve.

Slopz ,

I’m the exact opposite! Use Windows for personal use, and use Linux for my VMs/Servers/Docker.

svartkaffi ,

I was taught to use Ubuntu Linux by a middle aged engineer in another field who demanded "the brown operating system" on his computer over a decade ago, so yes, I agree, day to day Linux hasn't been hard for over a decade.

Whirlybird ,

I can navigate Windows well enough for my job, but I’d never choose it for personal use.

😂 What exactly is hard to “navigate” about windows for personal use? (or professional use for that matter)

Fuzzy_Dunlop ,

Didn’t say it was hard. To be clear…by saying “well enough,” I mean that I don’t have any major problems with it…I’m just no expert. I find that there are two many pointless “utilities” that only slow the machine down. Both of my last two (brand new) computers have had both Windows and Ubuntu installed before adding anything else. There’s actually still nothing on the Windows partitions, but whenever I switch to it, it’s like switching from a car to a bicycle. It’s ridiculous how Windows can be so, so slow “right out of the box,” while Ubuntu just works.

Whirlybird ,

Windows is blazingly fast on any decently spec’d machine these days. Boot times of like 5 seconds. Everything loaded up after you login basically instantly.

Hazzia ,

I wish I were you. I’m constantly running into problems that I either can’t solve, or end up spending way more time on than it’s probably worth. My last Geruda linux install became unbootable because I tried to change the system font to a different existant preset. The error I got, of course, only had 2 prior instances referenced on Le Google, both of which were in completely different contexts than mine such that either the recommended fix did not work, or I didn’t have the tools available to follow it.

I’m still not switching back to Windows though because fuck 'em.

mfn ,
@mfn@mfn.pub avatar

I think your problem is you are using a niche Arch derivative that has a small user base. You should definitely consider using more mainstream distros so you can easily find the help you need until you are comfortable and feel confident with using Linux.

nomadjoanne ,

I’d use a mainstream distro. I came to Linux in 2017, used Ubuntu for 4 years until I got tired of them forcing snaps down my throat, and then went to Arch. I have never distro-hopped, but I also have never had any huge issues with the mainstream distros.

The main distros really are well maintained and do tend to “just work”. Dare I say, especially Ubuntu.

yum13241 ,

Maybe try endeavorOS?

match , in Brace Style
@match@pawb.social avatar

This should be its own language. Pyava.

jwt ,

Or Jathon (pronounced like Mike Tyson would pronounce JSON)

runeko ,
@runeko@programming.dev avatar

Or we can round out the confusion and call it PythonScript

Revan343 , in Brace Style

I kinda like it, easy to see unbalanced braces

NigelFrobisher , in I meant to type "npm run dev"... What will happen now?

Npm ruined dev long before you tried this.

ClassifiedPancake , in Companies updating their websites

I thought everyone does <?php echo date(“Y”); ?>

30p87 ,

No no, we do


<span style="color:#323232;">time_t t = time(NULL);
</span><span style="color:#323232;">struct tm tm = *localtime(&t);
</span><span style="color:#323232;">tm.tm_year + 1900;
</span>

Everyone writes their web server in plain C, right?

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

The cool thing to do now is to write it in Rust, only using the standard library.

30p87 ,

And I hate it. Nice concept, but I don’t like neither, the language nor compiler.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

It’s a very different vibe. I remember my first seg fault in C - kids days are missing out!

SatouKazuma ,

It’s okay to be wrong

30p87 ,
  • The C compiler, when I parse a &(float) as (long) (it’s actually an evil floating point hack to run Quake III on an X86_64 CPU emulated in Scratch running on Spotifys Car Thing) (This would never be possible in Rust)
OmnipotentEntity , (edited )
@OmnipotentEntity@beehaw.org avatar

std::mem::transmute

30p87 ,

Yes, but

  1. it’s unsafe, therefore not really Rust I’d argue
  2. it doesn’t look as good

<span style="color:#323232;">float Q_rsqrt(float number) {
</span><span style="color:#323232;">   long i;
</span><span style="color:#323232;">   float x2, y;
</span><span style="color:#323232;">   const float threehalfs = 1.5F;
</span><span style="color:#323232;">
</span><span style="color:#323232;">   x2 = number * 0.5F;
</span><span style="color:#323232;">   y = number;
</span><span style="color:#323232;">
</span><span style="color:#323232;">   i = * ( long * ) &y;
</span><span style="color:#323232;">   i = 0x5f3759df - ( i >> 1 );
</span><span style="color:#323232;">   y = * ( float * ) &i;
</span><span style="color:#323232;">
</span><span style="color:#323232;">   y = y * ( threehalfs - ( x2 * y * y ) );
</span><span style="color:#323232;">   return y;
</span><span style="color:#323232;">} 
</span>
OmnipotentEntity ,
@OmnipotentEntity@beehaw.org avatar

Please don’t tell me you, unironically, actually use the Carmack rsqrt function in the year of our Linux Desktop 2024.

Also if you like, you can write unsafe Rust in safe Rust instead.

30p87 ,

No. But somebody may be.

Pechente ,

Well, everyone who’s coding their websites is, yeah. Seeing how almost 10% of all websites use Elementor now and are built by people without an understanding of coding concepts, there are probably plenty of websites that don’t output their copyright year dynamically.

SomethingBurger ,

Elementor has this feature, though.

tibi , in What the heck is a god dang cloud?

And I also don’t want programs to throw all their crap in the documents folder. AppData is made for that.

Ziglin ,

~/.config :>

RandomLegend , (edited )
@RandomLegend@lemmy.dbzer0.com avatar

And now show hidden files and you see the plethora of applications that dump everything in your homedir instead of .config

Irelephant ,
@Irelephant@lemm.ee avatar

Its even worse when they dont make it a hidden folder (looking at you android studio)

RandomLegend ,
@RandomLegend@lemmy.dbzer0.com avatar

yup…

.hidden file became my best friend - and a little context menu script for dolphin to easily add a file / folder to that .hidden is a thing i use way too often tbh

ikidd ,
@ikidd@lemmy.world avatar

That annoys the fuck out of me. I want the folders I put in /home, not your shit. Put it in /.local or something and fuck off.

Ziglin ,

I believe the folder you are attempting to refer to is for all users so you probably do want to have the config in ~/.config unless you want everyone to have the same. Also /home is the directory that includes all users respective ~/ directories so use ~/ when referring to your own home directory.

Edit I can’t figure out the formatting. My client is showing <sub> where ~ should be.

MonkeMischief ,

Hint for KDE folks: Ctrl + h toggles hidden visibility. Makes navigating lots easier. :D

Ziglin ,

Same in thunar (the xfce file manager)

MonkeMischief ,

Awesome! Thunar is legit. 😁

Sabata11792 ,

No matter the environment, it is important to dump shit wherever so the user does not get complacent.

Hammerheart ,

That really pisses me off.

MonkeMischief ,

SO MUCH. Now my standard procedure is to just make a “_My_Documents” folder within Documents, so I can know where the files are that I put there myself.

(Leading underscore pops it to the top of the list alphabetically)

I remember some Windows versions had a Games folder for all that, saved games, etc…but it seems very few games actually decided to use it lol.

Kolanaki , in Start ups when that VC funding kicks in
@Kolanaki@yiffit.net avatar

Foosball

Mama says foosball is the devil!

Appoxo , (edited )
@Appoxo@lemmy.dbzer0.com avatar

It’s either Football or the local equivalent to “Foot” and “Ball”.

The sport with the egg is “American Football”. And you US citizens can call our football “European Football” and not *Soccer".

Zangoose , (edited )

Wasn’t the name “soccer” originally from England?

Edit: it was, and it was used for ~100 years in England until around 1960 - …wikipedia.org/…/Names_for_association_football

Appoxo ,
@Appoxo@lemmy.dbzer0.com avatar

Well England sucks :p /s

Zangoose ,

See now we’ve got a valid argument going

smeg ,

Yeah but only poshos call it “soccer” here to distinguish it from “rugger”

chocosoldier ,

who the hell calls rugby “rugger”? that’s even worse than “soccer”.

smeg ,

Public schoolboys (i.e. the very posh), yes it’s weird

Kolanaki ,
@Kolanaki@yiffit.net avatar

Foosball is just an Americanized spelling of “Fußbal” which is German for Football.

TurtleTourParty ,

Foosball specifically refers to the tabletop game in America.

chocosoldier ,
  1. This is foosball. This is foosball.

  2. The sport with the egg is “gridiron football”, we call it “football” for short for the same reason other countries call association football “football” for short, it’s the most popular variant here.

  3. We don’t call it “American football” because that’s not what it’s called, you lot say that because of point 2. Nobody is going to say “European football” because that’s not what it’s called either.

  4. The word “soccer” was imported from the UK (seriously that word is british as hell, you really think we came up with that shit?), and we use it for reasons outlined in points 2 and 3, and also because “european football” is inaccurate, tiresome, and stupid sounding.

  5. This is the first and only time I’ve ever heard of rugby union football being referred to as “ruggers”, I never thought I’d read a dumber-sounding word than soccer but you’re just full of surprises today. For some reason i was imagining one of the replies was the same person, this was in error.

MindTraveller ,

It’s not as dangerous as stick hockey

pewgar_seemsimandroid ,

ice hockey > stick hockey

TachyonTele ,

Air hockey > sex with office dogs

FlihpFlorp ,

Tbf that right thing is a VERY low bar

Stepping on a Lego brick is more enjoyable

JasonDJ ,

Depends. Chihuahua or mini-pin, yeah, I agree. But a golden-doodle? That’s a tough call.

TachyonTele ,

Diddle a doodle a day, keeps the…

Hold on, someone’s at my door. Brb

TachyonTele ,

How do you know? You’re disgusting!

FlihpFlorp ,

Unless i forgot how words work (I am very good at forgetting) I meant litteraly anything is better than doing it with a dog

TachyonTele ,

I don’t know. You seem to know a lot about where having dog sex fits on a scale of enjoyment… Hmmm

FlihpFlorp ,

Well I love my dog but not like that

Nasty

TachyonTele ,

I’m just kidding with ya. Oh well

FlihpFlorp ,

I am too dumb to people

Just one of those days

TachyonTele ,

It was a weak (and weird) attempt on my part. You’re absolutely fine.

FlihpFlorp ,

My good sir/madam I wish you a good day and may your interactions be better than mine

TachyonTele ,

Thank you my friend. Enjoy your weekend!

raldone01 , in Hot Potato License

There are a few flaws.

There should be a clause forcing it to remain open source. Another clause should be that the license must not be changed. A warrenty and liability disclaimer would be also good. Otherwise a splendid license.

jnk ,

I would 100% use this HPL-v2 for all of my (temporary) foss projects. It’s just genius. I mean, good luck keeping track of the current owner, Nintendo lawyers.

nick , in stupidestAdvertisingEver

Fun fact: I’m the reason people have to approve being added as collaborators for repos on GitHub now.

ryannathans ,

Oh boy, go on…

gravitas_deficiency ,

I, too, am interested in the rest of the story

nick ,

news.ycombinator.com/item?id=2601342

The whole dongml thing back in 2011

gravitas_deficiency , (edited )

Reading the context of the YC post (post link is broken), this doesn’t seem like a thing I’d brag about. Sounds like you were just being kind of an asshole, as well as intolerant. There are more amusing and less trollish ways to white/greyhat platforms to encourage people to fix them.

nick ,

Yep I was trolling zed.

However, accusations of homophobia and sexism are dumb and unfounded, as I’m actually gay.

I was also 20 so… find me one person who didn’t do cringy shit as a kid and I’ll give you a million dollars.

nick ,

news.ycombinator.com/item?id=2601342

The whole dongml thing back in 2011

smeg ,
Sotuanduso , in AI Suggestions

I was surprised when I made attackPower and it suggested defensePower next. It was then that it sunk in that the autocomplete was AI.

pyre ,

i mean, “AI” is already a glorified autocomplete

Sotuanduso ,

Well, LLMs are, at least. But also, autocomplete is already AI, so really LLMs are just glorified AI. And that checks out, they are the ones that get all the glory*. Everything else is just spooky algorithms.

*Except for walking robots and stuff like that.

FaceDeer ,
@FaceDeer@fedia.io avatar

I am becoming increasingly convinced that so is the human brain.

pyre ,

then i hope it’s not swiftkey’s

Emmie ,

AI of today is a marketing slogan. Well, same as AI of yesterday. There is so much AI around us but not an ounce of intelligence.

Daxtron2 , in That Nim Flashbacks

Nah Hanoi was easy stuff, first year. Definitely more traumatizing practice problems.

Alexstarfire ,

Yea, get back to me when you get to parallel programming.

sukhmel ,

Tis’ not hard, just add some sleeps to make sure other thread reads data before it is destroyed 🌚

xmunk ,

Or even just try to understand pthreads.

intensely_human ,

You’re doing it again

FierySpectre ,

Writing kernels for parallel execution with OPENCL gives me flashbacks every time I remember them

sukhmel ,

Hanoi […] practice problems.

Like you come to the exam and there’s a 64 piece Tower of Hanoi you need to solve manually to pass the exam

JohnEdwa ,

Assuming 1 second per swap, a 64 disk tower of hanoi would take 585 billion years to solve - it has 2^64 -1 swaps.

sukhmel ,

And that makes It good enough for an exam

ICastFist ,
@ICastFist@programming.dev avatar

Calm down, satan

Pyro , in STOP DOING DEPENDENCY INJECTION

Hello inject me with beans please

not again

Klear ,

Yeah, I’d rather get injeancted with beans.

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