Leon Pahole

<< programming

How I handle frontend errors

13 minProgrammingClean codeFrontend

Written by Leon Pahole

Connect with me:

Programmers disagree on many things, but one thing we can all get behind is that error handling is important. This blog post showcases how I handle frontend errors, associated with API calls, in a way that is readable, maintainable, and easy to use.

Read full blog post >>

Using TypeScript namespaces for better code organization in ES modules

4 minProgrammingClean code

Written by Leon Pahole

Connect with me:

JavaScript's ES modules are a great way to organize code into separate files and keep the code clean. I have noticed however that as projects get larger, it gets harder and harder to keep mental track of the code and assign proper names to identifiers. In this blog post, I present TypeScript namespaces as one of the solutions to this problem.

Read full blog post >>

My take on comments in code

12 minProgrammingClean code

Written by Leon Pahole

Connect with me:

There's a lot of conflicting information about code comments in programming communities. Some people believe in writing comments as much as possible, while others advocate for code that is self-documenting and thus renders comments almost useless. In this blog post I lay out my past experiences with comments and how these experiences shaped my current approach to writing clear and understandable code.

Read full blog post >>