Lemmy Coupou.fr
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lars@lemmy.sdf.org to Memes@lemmy.ml · 1 year ago

Has anyone notified Elon?

lemmy.sdf.org

message-square
26
link
fedilink
710

Has anyone notified Elon?

lemmy.sdf.org

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

    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 year ago

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

      return false;

      • ifGoingToCrashDont@lemmy.world
        link
        fedilink
        arrow-up
        27
        ·
        1 year ago

        This looks good. PR approved.

      • ApeNo1@lemm.ee
        link
        fedilink
        English
        arrow-up
        13
        ·
        1 year ago

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

      • Scubus@sh.itjust.works
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

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

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

        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 year ago

          this calls for a whiteboard

      • lars@lemmy.sdf.orgOP
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Did a Japanese lunar probe write this?

    • AnonTwo@kbin.social
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

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

      • Viking_Hippie@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Or when your subscription to braking has lapsed.

    • YIj54yALOJxEsY20eU@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      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 year ago

      That’s what interns are for.

  • iAvicenna@lemmy.world
    link
    fedilink
    arrow-up
    56
    ·
    1 year ago

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

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

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

      • IndiBrony@lemmy.world
        link
        fedilink
        English
        arrow-up
        21
        ·
        1 year ago

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

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

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

    • r00ty@kbin.life
      link
      fedilink
      arrow-up
      19
      ·
      1 year ago

      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 year ago

        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 year ago

        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 year ago

    Lemmy Shitpost-13542426

    • bruhduh@lemmy.world
      link
      fedilink
      arrow-up
      26
      ·
      1 year ago

      qpewhrxm7lec1

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

    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 year ago

      #pragma OccasionallyCrash false

      • xthexder@l.sw0.com
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        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 year ago

          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: !memes@lemmy.ml

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.

  • 2.07K users / day
  • 4.03K users / week
  • 9.56K users / month
  • 23.2K users / 6 months
  • 1 local subscriber
  • 49.5K subscribers
  • 15.2K Posts
  • 314K Comments
  • Modlog
  • mods:
  • ghost_laptop@lemmy.ml
  • sexy_peach@feddit.de
  • Cyclohexane@lemmy.ml
  • Arthur Besse@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org