cover-img

Code Smell 06 - Too Clever Programmer

Code is difficult to read and tricky with names without semantics. Sometimes using language's accidental complexity.

2 August, 2022

8

8

1

TL;DR: Don't pretend you are too smart. Clean code asks for readability and simplicity.

Problems

Readability

Maintainability

Code Quality

Premature Optimization

Solutions

Refactor the code

Examples

Optimized loops

Exceptions

Optimized code for low-level operations.

Sample Code

Wrong

Right

Detection

Automatic detection is possible in some languages. Watch some warnings related to complexity, bad names, post-increment variables, etc.

Relations

Also Known as

Obfuscator

Conclusion

Too clever developers write cryptic code to brag. Smart developers write clean code. Clear beats clever.

Tags

Declarative

More Info

Refactorings

Credits

Photo by NeONBRAND on Unsplash

Programming can be fun, so can cryptography; however they should not be combined.

Kreitzberg & Shneiderman
This article is part of the CodeSmell Series.

8

8

1

Maxi Contieri

Buenos Aires, Argentina

🎓Learn something new every day.📆 💻CS software engineer 👷coding👨🏽‍🏫teaching ✍🏾writing 🎨Software Design 🏢SOLID 🌉TDD 👴Legacy 💩Code Smells

More Articles

Showwcase is a professional tech network with over 0 users from over 150 countries. We assist tech professionals in showcasing their unique skills through dedicated profiles and connect them with top global companies for career opportunities.

© Copyright 2024. Showcase Creators Inc. All rights reserved.