this post was submitted on 28 Oct 2024
4 points (100.0% liked)

Programming Humor

3315 readers
1 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 2 years ago
MODERATORS
 
top 7 comments
sorted by: hot top controversial new old
[–] becausechemistry@lemm.ee 1 points 1 year ago

Management: Gee whiz, we really have no idea how to gauge productivity to decide who gets promoted. We could manage. Or, better, we could just have someone write a script that pulls info from git on how many lines of code each person has written.

Programmers:

[–] DmMacniel@feddit.org 1 points 1 year ago

But how do you test for FILE_NOT_FOUND?

[–] Acters@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Those are rookie lines of code numbers right there.
I would have done it without the ==

internal static bool AreBooleansEqual(bool orig, bool val)
{
    if(orig) 
    {
        if(val)
            return false
        return true
    }
    if(val)
        return true 
    return false
}

Don't know why their code returns false when they are equal but I'm not going to dig through old code to refactor to use true instead of false.

[–] bleistift2@sopuli.xyz 0 points 1 year ago (1 children)

Don’t forget the invocation

if (CompareBooleans(a, b) == true)
[–] magic_lobster_party@fedia.io 1 points 1 year ago (1 children)

if (CompareBooleans(CompareBooleans(a, b), true))

[–] TriflingToad@lemmy.world 1 points 1 year ago (1 children)

I don't like this thread anymore :(

[–] davidagain@lemmy.world 1 points 1 year ago

No, no, this is actually the only correct code in the thread.