5

Do you write clean code ?

Comments
  • 3
    We all try to now, don’t we?
  • 2
    Without a doubt, as clean as it's possible ; whatever the time it takes.
  • 2
    Always. I'm perfect.

    Okey no, but I try to.

    It's better than my colleague though. He almost tries to write bad code. "Do we really need to make this 'maintainable'? We should never have to touch it again if we make it good anyways."...
  • 1
    I at least try lol
  • 1
    I realized that many perfections we try to maintain manually can be fulfilled effectively via formatter.
  • 0
    Do you mean Robert Martin's clean code? Then no, never got to making my ifs and loops single line function calls.

    Never got "x should have one reason to change."

    Definitely not writing code that reads like well-written prose.

    I am trying, sort of, to kind of write cleaner code. Never done TDD or even unit testing, though, so can't say I am asymptotically converging towards 100% test coverage.
  • 3
    Define "clean code" :>
  • 3
    As clean and modular as I am able. Also, the cleanest code at my employer according to at least two people 🥰

    … Though that means there isn’t much more for me to learn here except how to read and maintain terrible code …

    And a risk management engine — which I designed at my previous employer (Hell), but wasn’t allowed to implement due to time and cost 😅. It’s neat seeing it implemented, if haphazardly.
  • 2
    Guys, the rant was meant to be roasted. Stop being realistic ;__;
  • 3
    std::cout << "Clean Code"

    Closest I have come
  • 2
    I'd think so. Not a single line of cocaine in sight
  • 4
    Depends on my day.
    If I'm in the mood or have time, I'll work the solution and clean up the scraps as I go, otherwise I'll just slap it on the page and future me can punch me in the face cleaning it up later.
  • 3
    Iterative style

    Fulfill the task, see the final code, make it shiny
  • 4
    If you're talking about Robert Martin's masturbation on an unrealistic ideal then no, I have features to deliver, tickets to resolve and the exact problem I'm solving will probably change 4 times before release anyway.

    However, I do try to make my code readable, comment on my choices and note any gotchas.
  • 0
    Eventually lol
  • 2
    No, but I delete dirty code until the code base is clean.
  • 0
    If I have time.
  • 1
    No, I like it dirty.
  • 0
    At work, mostly yes. At home, fuck no.
  • 0
    Writing clean code is hard
  • 0
    If I have the time, I usually try to make the code clean as possible it’s not always easy when you’re working with old apps though
  • 0
    Um. Let me get something
  • 0
  • 1
    @Lensflare inversion logic at its best 🙏
  • 0
    @jfgilmore Use a push hook
  • 0
    @Ranchonyx I like stuff
    Stuff looks so clean even though it doesn’t do anything lol
  • 1
    @Ranchonyx Kill the else please.

    return 0
    }

    if (compare_string(...

    Stuff that makes me grumpy TM.
  • 0
    @IntrusionCM trust me, this isn't finished code. I tossed this together on a caffeine fueled, sleep deprived rage.
Add Comment