3 Tips To Write Better Code As A Beginner Frontend Developer

Konstantin Münster
5 min readApr 4, 2023

As a beginner, you don’t think about coding style. Implement these three principles to improve your code base immediately.

Junior Developer
Photo by Alex Kotliarskyi on Unsplash

Over the course of the last months, I had the opportunity to mentor a group of talented new web developers who participated in TechLabs’ digital shaper program.

It was really fun to see the groups’ learning progress from zero to deployed application. While I was reviewing their first bits of code, it reminded me of my first years as a developer.

Especially if you are self-taught and don’t have any formal education, you just rock n roll. You don’t have any feeling for good or bad code practices. You are happy about anything that works.

This got me thinking: “Which coding principles do I wish I had known earlier?”. Well, here they are!

You can implement these simple tips in your coding practice right away. But although simple, they changed a lot in how I write code.

Note: The principles are applicable to all areas of programming, even though the title says ‘frontend developers’ specifically.

1. “Return Early” Instead Of Nested Conditions

In web development, you have a lot of situations in which you have to check if…

--

--