Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How clean is your work?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #158449
    nixnerd
    Participant

    I tend to work REALLY fast when I’m initially developing something. I’m not saying I work faster than others, just faster than maybe I should.

    I like to bang out a working prototype and go back and tidy things up later.

    Is this how I should be doing it? Or should I work clean from the start?

    I definitely try to keep overall objectives in mind as I code, however, I’m afraid of losing ideas and momentum… so I can’t spend too much time dwelling on details initially.

    Is this ok? I mean… that’s what version control is for right?

    #158455
    __
    Participant

    If it works (and is stable), it’s probably “clean enough.” And no, prototypes certainly don’t need to be shiny under the hood.

    #158500
    Melindrea
    Participant

    I think it depends a bit on how much needs to be tidied up, since overall it’s unlikely you’re going to be going back to fix it if it’s too messy =)

    I like to keep my work linted and following a particular codestyle, and to at least consider if the code is in the appropriate place.

    An organized mind tends to write better code, but don’t worry about optimisation or whether your variables should be used in a more efficient manner etc. I’d say that as long as you have a consistent style and avoid things that would make you blush if someone saw it, and it’s stable and working, it’s clean enough.

    #158515
    __
    Participant

    Sometimes I think I try to code for other coders…

    just keep in mind, in a few months, you will be one of those “other coders.” : )

    #158518
    TheDoc
    Member

    I work in a team where all pull requests have to go through a peer review process. If I’m not clean when I’m committing my changes somebody is definitely going to call bullshit and make me do it anyways.

    #158543
    Melindrea
    Participant

    @Joe_Temp Not if you have a codesniffer/linting tool connected to the pre-commit git hook. Then it’s not playing nice that’s hard =)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Other’ is closed to new topics and replies.