Slashdot Mirror


What Workplace Coding Practices Do You Use?

Agent_9191 asks: "Recently I've been promoted to what essentially amounts to a project lead role for every project we do, in house. Since my company has run for the past 35+ years with no form of central IT department, there has been no standards put into place for developers to abide by. One of my tasks is to set up standards in how projects will be implemented and produced. Right now I'm more concerned about trying to set up coding standards, so that any developer can jump into any part of a project and be able to figure out what's going on, without wasting a couple hours just to figure out the code. I've come across some documents in this area from a few sources (of course can't remember them off the top of my head). What practices/standards do you use in your workplace?"

2 of 682 comments (clear)

  1. Re:Comments by kers · · Score: 0, Troll

    Not only are you using no-existant instructions, you also forgot to declare the line numbers.

  2. Re:Code cleanly and remove comment by amightywind · · Score: 0, Troll
    totalMessages++;

    would be better, but it's still not perfect. Sometimes the hardest part of programming is creating meaningful variable names.

    Arguing about proper names for counters is good example of getting bogged down unnecessarily in trivialities. Personally I find your use of camel case offensive. Also your use of the post increment operator is in bad form. ++message_count is much better. You must be a Java programmer.

    --
    an ill wind that blows no good