ABSTRACT

Bitwise operations are useful for enums and dealing with what are called flags. Delegate functions and anonymous functions are useful abbreviations of a named function. Accessors, also known as properties, are also very useful to catch bugs early on. Programming style is sometimes referred to as either flavor or smell. As such there are good smells and bad smells. A bad smell doesn’t necessarily mean that the code is broken and buggy. However, bad smelling code usually leads to problems later. Comments are descriptive but useless. They make up a part of the code as much as functions and variables. They’re used to inform fellow programmers as to what a function or code block is used for. Poorly commented code smells bad, and such bad smells cause many headaches. Long extremely complex functions often exude a certain bad smell. When a function gets too long, it’s often a source for many different problems.