In this tutorial, I want to highlight the art of writing unmaintainable code. By doing so, you can ensure job security as you become the sole guardian of understanding the intricacies and purpose behind your code.
Please note: This post is intended to be ironic.
- Be creative with naming variables, functions, and objects. Make sure there is no logical correlation between the name and its purpose or behavior.
- Embrace abbreviations and acronyms instead of descriptive names. Use one-letter variables whenever possible.
- Promote variable reuse throughout your code. Stick to using ‘i’ as your go-to loop variable.
- Feel free to use your native language for naming conventions. Who needs to conform to English standards?
- The same goes for comments. Write them in your preferred language, regardless of the next developer’s linguistic background.
- Or better yet, forgo comments altogether.
- If you do decide to include comments, don’t bother updating them when you modify the corresponding code.
- Opt for global variables instead of exploring scoping options.
- Testing is overrated. Trust your skills and assume your code is flawless.
- Complications make code impressive. Choose convoluted solutions over simplicity, even if it means unnecessary rewriting.
- Optimize code for the sake of energy efficiency. Rewriting in assembly is a great idea.
- Unpopular languages and frameworks are superior. Don’t follow the herd; choose the road less traveled.
- Create your own framework and reinvent the wheel.
- Ignore 3rd party libraries completely.
- Alternatively, excessively rely on 3rd party libraries for minimal functionality.
- Implement every design pattern you come across, regardless of relevance or necessity.
- Trust large corporation tools blindly. Their complexity and obscure naming conventions are surely beneficial for your one-person startup.
- Version control is irrelevant. Who needs it? Keep track of changes in your head; after all, there’s only one right version of the program.
- Blindly copy and paste code from Stack Overflow or random blogs without understanding its purpose.
- Ignore consistent indentation. Mix spaces and tabs without care.
- Overuse abstractions excessively. Complicate everything to ensure excessive reusability.
- Assume you will reuse every library you create indefinitely, so invest excessive time in handling potential edge cases.
- Pursue every brilliant idea that comes to mind, no matter how unnecessary or unrelated it may be.
- Who needs small functions? 2000-line functions are the way to go!
- Code with the notion that a mythical 10x engineer is scrutinizing your every move behind you.
Tags: code maintenance, programming tips, best practices, software engineering