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

Has anyone notified Elon?

lemmy.sdf.org

message-square
26
fedilink
714

Has anyone notified Elon?

lemmy.sdf.org

lars to Memes@lemmy.ml · 1 year ago
message-square
26
fedilink
  • 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

      • larsOP
        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.

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.

  • 713 users / day
  • 3.71K users / week
  • 7.61K users / month
  • 23.1K users / 6 months
  • 424 local subscribers
  • 50.4K subscribers
  • 14K Posts
  • 308K 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