Monthly Archives: March, 2021
JavaScript
Writing better conditional expressions in JavaScript
Writing conditional expressions is pretty easy to do. But there is room for improvement in the way we have been doing it....
Life Tips
My career decision: choosing passion over money
As you might know, I recently switched jobs. In my long journey of finding a new one, there was a moment where...
Python
Parsing and validating data in Python using Pydantic
Introduction of type hinting opened the gates for a lot of great new features in Python. And data validation and parsing became...
JavaScript
Using the optional chaining operator in JavaScript
Every now and then, you come across a JavaScript feature that vastly changes the way you write it. Destructuring, arrow functions, modules...
Python
Statically type checking Python code using Pyright
With the introduction of type hinting in Python 3.5, static typing and checking Python codes has started to gain popularity. While MyPy...
Python
Adding fixtures and parameterized functions to PyTest
As we discussed in our post on getting started with Pytest, the framework allows us to re-use tests by making use of...
Python
Testing Python applications using Pytest
Testing our code brings in a variety of benefits, including building confidence in the code's functioning and having lesser regressions. Writing and...
JavaScript
How to format a Number as Currency using ES2015
The process to format a number as currency can be a tedious task. It feels like a small task, but the number...