October 2021
Intermediate to advanced
336 pages
9h 16m
English
FIVE LINES (R3.1.1)—A method should not contain more lines than what is necessary to pass through the fundamental data structure.
EITHER CALL OR PASS (R3.1.1)—A function should either call methods on an object or pass the object as an argument, but not both.
if ONLY AT THE START (R3.5.1)—If you have an if, it should be the first thing in the function.
NEVER USE if WITH else (R4.1.1)—Never use if with else, unless we are checking against a data type we do not control.
NEVER USE SWITCH (R4.2.4)—Never use switch unless you have no default, return in every case, and the compiler checks exhaustiveness.
ONLY INHERIT FROM INTERFACES (R4.3.2)—Only inherit from interfaces, as opposed to classes or ...
Read now
Unlock full access