majestic,
bruhduh,
@bruhduh@lemmy.world avatar
twoshoes, (edited )

I work in IT. My boss is by all accounts very competent in both programming and administration, yet all his documentation basically says “remember to set DoTheRightThing=True”

Edit: I just looked up the documentation for an internal service and under “Error recovery” it just says “The output of command xy should make sense”. fml

r00ty,
@r00ty@kbin.life avatar

#pragma OccasionallyCrash false

xthexder,
@xthexder@l.sw0.com avatar

Damn, I must’ve been missing this in my code the whole time.

Not even joking, I’ve got a project that crashes the MSVC linker with “Internal compiler error occurred” like 1 out of every 5 builds.

r00ty,
@r00ty@kbin.life avatar

Back in the olde days of programming (I'm talking about compilers from the 80s) the coding connoisseur knew that getting a certain error that seemed like nonsense could easily be solved by adding an extra, or removing a remark line from the top of the code and recompiling.

iAvicenna,
@iAvicenna@lemmy.world avatar

for the person who wrote that “coding and algorithms” is the same as “magic and alchemy”

sxan,
@sxan@midwest.social avatar

<span style="color:#323232;">if (launch) {
</span><span style="color:#323232;">   landOnMoon()
</span><span style="color:#323232;">}
</span>

What’s so hard, Japan?!? Sheesh.

IndiBrony,
@IndiBrony@lemmy.world avatar

Hey, the code was executed perfectly. The orientation wasn’t defined!

sxan,
@sxan@midwest.social avatar

You could even say it self-optimized and saved fuel by not decelerating!

r00ty,
@r00ty@kbin.life avatar

I think they call algorithms AI these days. At least I caught one of our VPs saying that a few months ago.

haui_lemmy,

I think the vast majority of people has no idea how coding works, doesnt know what an algorithm does and is oblivious to the fact that AI isnt everything its hyped to be.

ChickenLadyLovesLife,

I had a manager 10 years ago tell me we should start using these “API” things he had just read about. A conspicuously non-technical manager, obviously.

morrowind,
@morrowind@lemmy.ml avatar

It’s all fun and games until you have to implement goingToCrashIntoEachOther()

tourist,
@tourist@lemmy.world avatar

<span style="color:#323232;">void dont() {
</span><span style="color:#323232;">    fuckenNoseDiveLmao();
</span><span style="color:#323232;">}
</span>
lars,

Did a Japanese lunar probe write this?

r00ty, (edited )
@r00ty@kbin.life avatar

Well I think goingToCrashIntoEachOther needs to return another drone object. Then don't can take that object. Based on self.serialNo and other.serialNo a mutually beneficial avoiding manoeuvre could be executed.

If you're about to crash into more than one other drone.. Good luck the function specifies "EachOther" meaning just one other drone!

tourist,
@tourist@lemmy.world avatar

this calls for a whiteboard

AnUnusualRelic,
@AnUnusualRelic@lemmy.world avatar

That’s what interns are for.

lobelia581, (edited )

// TODO: needs improvements but works 99% of the time

return false;

ifGoingToCrashDont,

This looks good. PR approved.

ApeNo1,

return (staticCrashCounter++ % 100 == 0 ? true : false);

Scubus,

To improve that, you could get rid of the comment to save space.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • memes@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #