CPSC240 Coding Conventions Assignment

  1. A coding convention is a set of guidelines/style with in the Computer Science industry that contains the best practices and rules for developing programs
  2. The benefits of adhering to a singular coding style is that it brings consistency and better readability to those accessing and interpreting the code.
  3. There is a benefit to coding according to these standards even when working alone, as it better prepares you to work in a further team environment (most computer science jobs), as well as ensure you don’t have to change your whole coding style when working on team projects.
  4. Possible downsides of coding conventions is that it might possibly limit innovation when it comes to certain coding styles, in name of more consistency (which is not necessarily bad in itself)
  5. I think the most surprising thing from the style guide is the block like array initializers, having never seen them formatted in any other way than just item1, item2, so on.
  6. I few ways I feel like I’ve been shaky on my style is a larger amount of white space, but also capitalization in names. Sometimes I will have a variable name ex. GPA be all caps rather than proper lower camel case.
  7. I don’t believe I would mind having to follow style guidelines, I usually format things to make sense in my mind, but I understand standard guidelines and believe them to be beneficial (Even if it can be difficult to properly remember everything).

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *