lemmy.mlaga97.space
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
lars@lemmy.sdf.org to Memes@lemmy.ml · 2 years ago

Has anyone notified Elon?

lemmy.sdf.org

message-square
26
link
fedilink
0

Has anyone notified Elon?

lemmy.sdf.org

lars@lemmy.sdf.org to Memes@lemmy.ml · 2 years ago
message-square
26
link
fedilink
  • morrowind@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

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

    • lobelia581@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 years ago

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

      return false;

      • ifGoingToCrashDont@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        This looks good. PR approved.

      • Scubus@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

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

      • ApeNo1@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

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

    • AnonTwo@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

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

      • Viking_Hippie@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Or when your subscription to braking has lapsed.

    • tourist@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago
      void dont() {
          fuckenNoseDiveLmao();
      }
      
      • lars@lemmy.sdf.orgOP
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Did a Japanese lunar probe write this?

      • r00ty@kbin.life
        link
        fedilink
        arrow-up
        0
        ·
        2 years 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
          0
          ·
          2 years ago

          this calls for a whiteboard

    • AnUnusualRelic@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      That’s what interns are for.

    • YIj54yALOJxEsY20eU@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      2 years 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.

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.

  • 44 users / day
  • 288 users / week
  • 1.04K users / month
  • 4.65K users / 6 months
  • 0 local subscribers
  • 52.4K subscribers
  • 12.2K Posts
  • 134K Comments
  • Modlog
  • mods:
  • ghost_laptop@lemmy.ml
  • sexy_peach@feddit.de
  • Cyclohexane@lemmy.ml
  • Arthur Besse@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org