Leon Pahole

All posts - page 2

Handling stressful situations, part 1: The Preparation Routine

9 minMindset

Written by Leon Pahole

Connect with me:

This blog post is part of a series on how I handle stressful and difficult situations to stay calm and collected, perform to the best of my abilities, and grow from the experience. In this post, I discuss my preparation routine, which takes place before a stressful event - whether it's minutes, hours, or days away.

Read full blog post >>

Cultivating the adaptable mindset

5 minMindset

Written by Leon Pahole

Connect with me:

The adaptable mindset is the idea that one should be confident in what they can learn. The idea applies to all walks of life, but for me, it was the most useful in my career as a web developer. In this blog post, I've detailed how having an adaptable mindset helps me deal with negative emotions, how I back it with action and, perhaps most importantly, why I find joy in it.

Read full blog post >>

Productivity bit: workspace alias

2 minProductivity

Written by Leon Pahole

Connect with me:

Over the years I've realized that small - perhaps even trivial - productivity improvements can really add up to produce an efficient work environment. I call these improvements productivity bits. In today's blog post, I am sharing the productivity bit that helps me kickstart my work on a certain workspace.

Read full blog post >>

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 >>

How exercising less intensely helped me become healthier

10 minPersonalHealth

Written by Leon Pahole

Connect with me:

Exercise - we all know we have to do it, but the thought of spending hours upon hours in the gym doing painful and intense exercises doesn't exactly sound the most inviting. Still, I kept up with a pretty intense exercise routine for many years - until I decided to bring it down a notch. I made my workouts shorter and less intense, which made me the healthiest I've ever been. But how? It sounds paradoxical - shouldn't exercising less make me less healthy?

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 >>