DEV Community

Discussion on: 4 Things I Learned From Building My First Site Solo

mbjelac profile image
Marko Bjelac

100% agree on the descriptive names.

Also, tests are a HUGE help. They serve as in-depth documentation for your code, which is continuously up to date.

There are a lot of testing frameworks for JS, currently I use Jest.

I strongly recommend trying out test-driven development (TDD) ... check out a clear & concise video of why it matters. As frontends are not only putting backend model props into templates anymore but have their own behaviour, I think its really important that they are treated the same as backend code (i.e. that they have tests, and preferably that they are test-driven).