Ineffective Coding Habits
Seven habits you should avoid
Posted: January 13, 2023
In this talk, Kevlin Henney goes over seven rather ineffective coding habits of most programmers:
-
Noisy code – Stop adding additional noise to your code (6:53)
-
Unsustainable spacing – Make your code readable and stable under refactoring (29:18)
-
Lego naming – Don’t dilute the meaning of names in your code (50:30)
-
Underabstraction – Make sure the purpose of your code is clear (1:06:56)
-
Unencapsulated state – Keep your code properly private (1:21:20)
-
Getters and setters – Get rid of the get and set in your code (1:27:30)
-
Uncohesive tests – A test case should correspond to a single case (1:33:42)
Note: The original talk has been removed from YouTube, the video shown above is a similar recording I found.