11
Orionss
7y

When my school wants me to indent like this :
if(true)
{
/*
** Here are my instructions
*/
}

Comments
  • 5
    Find a better class. Literally.
  • 2
    Find a better class. Literally.
  • 1
    ... it's telling you that you need to adapt to the environment you're working in, a worthy learning. Hopefully you will adapt, and realize that bracing and indent style don't matter much, you just get used to it.
  • 1
    Yep, I'm in a similar situation. My web development professor formats CSS like this:

    body
    {
    /* CSS statements here */
    }
  • 0
    @Gauthier I know but I'm really used to that way :
    if(true) {
    /*
    That way
    */
    }
  • 2
    @Orionss What if you don't do it this way? It doesn't add anything to the logic.
  • 0
    @Cube189 if I don't do it, a program named "Moulinette" in French will unvalidate my code
  • 0
    @Cube189 just more work.
  • 1
    @Orionss Have you tried reporting it to see how they'd react?
    Sure they'll say it's not a problem to format like this but you can argue that your style is also very popular and that somebody could fail if they don't notice/dont know it's about.
  • 0
    @Cube189 that's a rule of the school, it's part of the exams
  • 2
    @Orionss Oh FFS. Really?!
  • 0
  • 0
    @Orionss keep your own style outside of class. I have the same way as yours. My college doesn't give a shit about it.
  • 1
    @Orionss I also had a favorite style, and thought everything else was bad. Then I tested something new and realized it's just about getting used to it.
    I'm not sure what their motivation is, but you should take it as a learning experience, and test this style. When you start working, you'll certainly encounter coding standards you dislike at first. It would be very unprofessional and arrogant to just disregard them.
    This is BTW the bracketing style used by GNU projects. Don't you think it could mean it's not that bad?
  • 0
    @Gauthier I don't think it's that terrible, I juste said that because it disturbed me at first, that's all, I'll getting used to it ^^
  • 1
    @Orionss ok, good! I know how disturbing it is when your fingers know another way :)
  • 0
    @Gauthier Thanks for paying attention :)
Add Comment