You have 2 free member-only stories left this month.

Learn these 9 rules to start writing clean code immediately

I was mind-blown the day I learned about these rules and made me a better programmer instantly

1. Only one level of indentation per method.

Have you ever seen code like this? it is called “Arrow Code”, go figure why!

Benefits

2. Don’t use the else keyword

Ways to avoid using the else keyword

Benefits

3. Wrap primitive types

Benefits

4. One dot per line

Benefits

5. Do not abbreviate

Benefits

6. Keep classes small

Benefits

7. No more than 2 instance variables per class

Benefits

8. First class collections

Benefits

9. Do not use getters and setters

Benefits

Level Up Coding

Coding tutorials and news.

Sign up for Top Stories

By Level Up Coding

A monthly summary of the best stories shared in Level Up Coding Take a look.

George Studenko

Written by

Software developer and AI enthusiast. Having fun with Computer Vision. Get in touch with me here https://linktr.ee/gnstudenko. Looking for a mentor in tech?

Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev

George Studenko

Written by

Software developer and AI enthusiast. Having fun with Computer Vision. Get in touch with me here https://linktr.ee/gnstudenko. Looking for a mentor in tech?

Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com && skilled.dev

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Start a blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store