10
rehman
8y

So my boss has problem with
if(condition){

Comments
  • 1
    Is your boss a developer?
  • 1
    Ask him for his alternative solutions and reasons for thinking so
  • 6
    Well, depending on your internal coding guidelines he might have a point. It could be:
    if ( condition ) {

    if (condition)
    {

    etc

    Code Style Matters!
  • 8
    Spaces, you animal, spaces!
  • 4
    I have problems with things like this too:

    if(this==that||this2!=that2){

    instead of

    if (this == that || this2 != that2) {

    readability is important for people who didn't write it themselves or the one who wrote it and can't remember what it does.
  • 0
    Egyptian braces rule.
Add Comment