lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lars@lemmy.sdf.org to Memes@lemmy.ml · 1 年前

Has anyone notified Elon?

lemmy.sdf.org

message-square
26
fedilink
708

Has anyone notified Elon?

lemmy.sdf.org

lars@lemmy.sdf.org to Memes@lemmy.ml · 1 年前
message-square
26
fedilink
alert-triangle
You must log in or register to comment.
  • morrowind@lemmy.ml
    link
    fedilink
    arrow-up
    76
    ·
    1 年前

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

    • lobelia581@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      65
      ·
      edit-2
      1 年前

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

      return false;

      • ifGoingToCrashDont@lemmy.world
        link
        fedilink
        arrow-up
        27
        ·
        1 年前

        This looks good. PR approved.

      • ApeNo1@lemm.ee
        link
        fedilink
        English
        arrow-up
        13
        ·
        1 年前

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

      • Scubus@sh.itjust.works
        link
        fedilink
        arrow-up
        10
        ·
        1 年前

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

    • tourist@lemmy.world
      link
      fedilink
      arrow-up
      40
      ·
      1 年前
      void dont() {
          fuckenNoseDiveLmao();
      }
      
      • r00ty@kbin.life
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        1 年前

        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@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 年前

          this calls for a whiteboard

      • lars@lemmy.sdf.orgOP
        link
        fedilink
        arrow-up
        3
        ·
        1 年前

        Did a Japanese lunar probe write this?

    • AnonTwo@kbin.social
      link
      fedilink
      arrow-up
      12
      ·
      1 年前

      You leaked the code for when it’s out of warranty

      • Viking_Hippie@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 年前

        Or when your subscription to braking has lapsed.

    • YIj54yALOJxEsY20eU@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      1 年前

      Love me some clean code. Just please don’t look at the function definition or ever expect me to change my pyramid of abstractions.

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      1 年前

      That’s what interns are for.

  • iAvicenna@lemmy.world
    link
    fedilink
    arrow-up
    55
    ·
    1 年前

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

    • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
      link
      fedilink
      arrow-up
      45
      ·
      1 年前
      if (launch) {
         landOnMoon()
      }
      

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

      • IndiBrony@lemmy.world
        link
        fedilink
        English
        arrow-up
        21
        ·
        1 年前

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

        • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
          link
          fedilink
          arrow-up
          4
          ·
          1 年前

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

    • r00ty@kbin.life
      link
      fedilink
      arrow-up
      19
      ·
      1 年前

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

      • haui@lemmy.giftedmc.com
        link
        fedilink
        arrow-up
        5
        ·
        1 年前

        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@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 年前

        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.

  • majestic@sh.itjust.works
    link
    fedilink
    arrow-up
    35
    ·
    1 年前

    Lemmy Shitpost-13542426

    • bruhduh@lemmy.world
      link
      fedilink
      arrow-up
      26
      ·
      1 年前

      qpewhrxm7lec1

  • twoshoes@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    edit-2
    1 年前

    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@kbin.life
      link
      fedilink
      arrow-up
      19
      ·
      1 年前

      #pragma OccasionallyCrash false

      • xthexder@l.sw0.com
        link
        fedilink
        arrow-up
        8
        ·
        1 年前

        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@kbin.life
          link
          fedilink
          arrow-up
          6
          ·
          1 年前

          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.

Memes@lemmy.ml

memes@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 378 users / day
  • 3.7K users / week
  • 7.27K users / month
  • 22.4K users / 6 months
  • 1 local subscriber
  • 51.4K subscribers
  • 13.5K Posts
  • 276K Comments
  • Modlog
  • mods:
  • ghost_laptop@lemmy.ml
  • sexy_peach@feddit.de
  • Cyclohexane@lemmy.ml
  • Arthur Besse@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org