Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@RonSijm@programming.dev to Programmer Humor@programming.devEnglish • 11 months ago

Whatever 'Clean Code' you write now, it'll be shit eventually and in need of a complete rewrite

programming.dev

message-square
90
fedilink
600

Whatever 'Clean Code' you write now, it'll be shit eventually and in need of a complete rewrite

programming.dev

@RonSijm@programming.dev to Programmer Humor@programming.devEnglish • 11 months ago
message-square
90
fedilink
  • @48954246@lemmy.world
    link
    fedilink
    English
    60•11 months ago

    best think like grug

    grug even have whole section just for refactor code

    • @popcar2@programming.dev
      link
      fedilink
      25•11 months ago

      inexperienced big brain developer see nested loop and often say “O(n^2)? Not on my watch!”

      complexity demon spirit smile

      This hits too close to home.

      • magic_lobster_party
        link
        fedilink
        23•11 months ago

        New code is O(n log n), but the time benefits only kicks in when n is above 1 trillion. Otherwise it’s much slower.

        • @Beanie@programming.dev
          link
          fedilink
          2•11 months ago

          And 90% of the time, n is about 3

          • @jdeath@lemm.ee
            link
            fedilink
            1•11 months ago

            and 99.9% of the time it is less than 10

    • @CanadaPlus@lemmy.sdf.org
      link
      fedilink
      8•11 months ago

      Finally, a development philosophy that sounds unambiguously correct.

    • @petey@aussie.zone
      link
      fedilink
      21•11 months ago

      I feel like this is a perfect encapsulation of how an experienced self-aware developer thinks. Experience really beats the hard stances out of you. I find myself saying “it depends” and “a bit of column A, bit of column B” often, like a cheap kids toy

      • @mindbleach@sh.itjust.works
        link
        fedilink
        5•11 months ago

        Programming is the gradual collection of mantras.

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
  • 19 users / day
  • 308 users / week
  • 1.3K users / month
  • 4.36K users / 6 months
  • 3 subscribers
  • 1.56K Posts
  • 55.5K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org