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.

TheV2 , in StackGPT

#1 finds ways to not give you a solution despite having one. #2 finds ways to give you a solution despite not having any.

ICastFist , in Any Volunteers
@ICastFist@programming.dev avatar

Great idea, how about you describe it in so much minute details it bores your goddamn mind? Can’t do it? Sorry, then you’re not cut for being the idea guy, you’re fired.

If the fucker can’t do the above, he’s what programmers call a client: an asshole who thinks too highly of himself and his ideas and will annoy everyone every time he changes the goals.

Swedneck , in Any Volunteers
@Swedneck@discuss.tchncs.de avatar

i mean, provided you actually want to put in effort that’s called “being a game designer”, it’s perfectly valid to not write code or create assets.

ulkesh ,
@ulkesh@beehaw.org avatar

Asking for and/or expecting unpaid volunteers is most definitely not valid.

If he wants to pay them properly, then I would agree.

FreshLight , in Added Bugs to Keep my job

“I’m sorry, guys.”

Sylvartas , (edited ) in Added Bugs to Keep my job

“;”

Previous commit was some stupid easy fix I didn’t even bother compiling. Well, I should have, because it was the first time in recent memory I committed some code with a missing semicolon…

Before anyone asks : no, we don’t do reviews ¯_(ツ)_/¯

UFODivebomb ,

Join me and use ~ to mean “shit changed just check the diff”

Hexarei ,
@Hexarei@programming.dev avatar

For those I just commit with the message “ngl there’s a lot of changes in here”

towerful ,

Tweaked some things

+2543; -5642;

Strykker ,

“Moved code base from 2 spaces to 4.”

Ragdoll_X , in Like getting 9 women pregnant and expecting a baby in 1 month
@Ragdoll_X@lemmy.world avatar

update it faster

cries in Deltarune fan

brown567 , in Chuckles, I'm in Danger

Ooh, I am bad programmers 😬

Holzkohlen ,

How many exactly? I’d say less is better here.

iflyspaceships , in Added Bugs to Keep my job

Hrfg7ygfrvvby

Mikufan , in Added Bugs to Keep my job

/* due to customer repeatedly deleting code and backups because they where “unnecessary” we refuse to work with said customer from now on. Whoever is in charge after us, be warned.*/

Tar_alcaran ,

Oof

davidgro , in STOP DOING DEPENDENCY INJECTION

I think this might be the first of these I’ve seen where pretty much all the comments are just agreement.

victorz , in 93% of Paint Splatters are Valid Perl Programs | Colin McMillen

I thought I was reading The Onion for a second.

xmunk , in 93% of Paint Splatters are Valid Perl Programs

Aka our OCR software is insanely inaccurate.

It’s interesting that mapping random noise to characters via OCR generally produces valid perl… but I always hated how they phrased the title of this experiment since it’s obviously bullshit. Essentially, a good interesting experiment made less interesting by a sensationalist title.

SpaceNoodle ,

It’s whimsical, Leland.

xmunk ,

Whimsical is awesome - but be upfront about what’s going on. It’s interesting enough without an overly sensational title.

mox OP ,

I think it’s okay to relax a little when we’re just having a bit of fun.

BatmanAoD ,

Perl programs are, by definition, text. So “paint splatters are valid Perl” implies that there’s a mapping from paint splatters to text.

Do you have a suggested mapping of paint splatters to text that would be more “accurate” than OCR? And do you really think it would result in fewer valid Perl programs?

firelizzard ,
@firelizzard@programming.dev avatar

“Feeding garbage to OCR” is a really boring way of generating text. I was assuming it would be something more interesting, like creating a symbolic representation of the splatters and generating text from that. Using OCR is basically piping /dev/urandom to perl and seeing what happens. The fact that they’re valid perl programs is worth a laugh but the generation method is totally uninteresting.

BatmanAoD ,

I agree that a symbolic representation of the splatters would probably be more interesting. The whole point is that random character sequences are often valid Perl, though, so changing the generation method wouldn’t change that aspect.

firelizzard ,
@firelizzard@programming.dev avatar

The whole point is that random character sequences are often valid Perl

When I read the headline I also assumed “valid Perl program” meant it did something interesting. I was expecting to read an article about an interesting image to text conversion process that produced non-trivial Perl programs.

cm0002 , in Who is this JSON guy?

I dunno who the JSON guy is but I hear he’s a friggin weirdo

sus , (edited ) in [Request] Looking for resources on terrible algorithms, architecture, and design

slow inverse square root:


<span style="color:#323232;">float slowinvsqrt(float x)
</span><span style="color:#323232;">{
</span><span style="color:#323232;">    const long accuracy = 100000000;    // larger number = better accuracy
</span><span style="color:#323232;">    if (x <= 0.0f) {
</span><span style="color:#323232;">        return NAN;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">    if (x == 1.0f) {
</span><span style="color:#323232;">        return 1.0f;
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">    if (x < 1.0f) {
</span><span style="color:#323232;">        return 1.0f / slowinvsqrt(1.0f/x);
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">
</span><span style="color:#323232;">    int max_power = log(accuracy) / log(x);
</span><span style="color:#323232;">    long pow1 = pow(x, max_power - 1);
</span><span style="color:#323232;">    long pow2 = pow(x, max_power);
</span><span style="color:#323232;">    double current = 1.0;
</span><span style="color:#323232;">    double previous = 1.0;
</span><span style="color:#323232;">
</span><span style="color:#323232;">    for (long i = 0; i<10*accuracy; i++) {
</span><span style="color:#323232;">        current = sin(current);
</span><span style="color:#323232;">        if (i == pow1) {
</span><span style="color:#323232;">            previous = current;
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">        if (i == pow2) {
</span><span style="color:#323232;">            return current / previous;
</span><span style="color:#323232;">        }
</span><span style="color:#323232;">    }
</span><span style="color:#323232;">}
</span>
SouthFresh , in I feel proud of myself to recognize that this iconic dude is not at a 'computer', rather, a [dumb] terminal! ]Or...?]
@SouthFresh@lemmy.ml avatar

I see 3 boxes of 3M 5.25" floppy disks, and to my knowledge a terminal wouldn’t have reason for those.

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