lemmy.dexlit
  • Communities
  • Create Post
  • 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
fedilink
710

Has anyone notified Elon?

lemmy.sdf.org

@lars@lemmy.sdf.org to Memes@lemmy.ml • 1 year ago
message-square
26
fedilink
  • @morrowind@lemmy.ml
    link
    fedilink
    76•1 year ago

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

    • @lobelia581@lemmy.dbzer0.com
      link
      fedilink
      English
      65•
      edit-2
      1 year ago

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

      return false;

      • @ifGoingToCrashDont@lemmy.world
        link
        fedilink
        27•1 year ago

        This looks good. PR approved.

      • @ApeNo1@lemm.ee
        link
        fedilink
        English
        13•1 year ago

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

      • @Scubus@sh.itjust.works
        link
        fedilink
        10•1 year ago

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

    • @tourist@lemmy.world
      link
      fedilink
      40•1 year ago
      void dont() {
          fuckenNoseDiveLmao();
      }
      
      • r00ty
        link
        fedilink
        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
          3•1 year ago

          this calls for a whiteboard

      • @lars@lemmy.sdf.orgOP
        link
        fedilink
        3•1 year ago

        Did a Japanese lunar probe write this?

    • AnonTwo
      link
      fedilink
      12•1 year ago

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

      • @Viking_Hippie@lemmy.world
        link
        fedilink
        2•1 year ago

        Or when your subscription to braking has lapsed.

    • @YIj54yALOJxEsY20eU@lemm.ee
      link
      fedilink
      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
      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.
  • 1.28K users / day
  • 4.13K users / week
  • 7.57K users / month
  • 22.5K users / 6 months
  • 51.4K subscribers
  • 13.2K Posts
  • 253K Comments
  • Modlog
  • mods:
  • ghost_laptop
  • @sexy_peach@feddit.de
  • Cyclohexane
  • Arthur Besse
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org