Freewill Tiger
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
𝔼𝕩𝕦𝕤𝕚𝕒@lemmy.world to memes@lemmy.world · 2 years ago

True Spaghetti code

lemmy.world

external-link
message-square
38
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
1
external-link

True Spaghetti code

lemmy.world

𝔼𝕩𝕦𝕤𝕚𝕒@lemmy.world to memes@lemmy.world · 2 years ago
message-square
38
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • Manucode@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    • wise_pancake@lemmy.cadeleted by creator
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      I have a great performance optimization for this

      What if instead of 1s sleep, we did 0.5s sleep? That’s a 100% improvement.

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

        It’s not sleeping for 1 second, $1 is an input parameter in the script

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          I took it as meaning sleep for a number of seconds equal to half the value you’re sorting. So like f "(( $1 / 2 ))" & or however math works in bash, I always forget.

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

            Bash is the worst

            • JackbyDev@programming.dev
              link
              fedilink
              English
              arrow-up
              0
              ·
              2 years ago

              Yes but also skill issue

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

                I bet you also tell people you love regex because you think it makes you look smarter lol

                • jollyrogue@lemmy.ml
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  2 years ago

                  What if you do love regex? 🥺

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

                    Then you should be cast into the fires of Mt doom where you belong

        • wise_pancake@lemmy.cadeleted by creator
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          That sounds expensive

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

      For anyone who controls time travel this is the fastest algorithm ever. Probably gonna change everything when we are traveling through space and passing by some dark holes.

memes@lemmy.world

memes@lemmy.world

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.world

Community rules

1. Be civil

No trolling, bigotry or other insulting / annoying behaviour

2. No politics

This is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent reposts

Check for reposts when posting a meme, you can only repost after 1 month

4. No bots

No bots without the express approval of the mods or the admins

5. No Spam/Ads/AI Slop

No advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

  • !tenforward@lemmy.world : Star Trek memes, chat and shitposts
  • !lemmyshitpost@lemmy.world : Lemmy Shitposts, anything and everything goes.
  • !linuxmemes@lemmy.world : Linux themed memes
  • !comicstrips@lemmy.world : for those who love comic stories.
Visibility: Public
globe

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

  • 8 users / day
  • 81 users / week
  • 1.56K users / month
  • 6.64K users / 6 months
  • 0 local subscribers
  • 23.1K subscribers
  • 9.58K Posts
  • 189K Comments
  • Modlog
  • mods:
  • Tenthrow@lemmy.world
  • The Picard Maneuver@lemmy.world
  • The Picard Maneuver@startrek.website
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org