A reminder to use single quotes when writing commit messages
July 13, 2023
Using backticks in the shell results in command expansion, for example:
Notes and articles on programming and computer science as a *beginner*.
July 13, 2023
Using backticks in the shell results in command expansion, for example:
git add
July 3, 2023
When you’re using git add
, there is a chance that you might be in a situation where you want to include a bunch of files (or folders) but exclude only some of them. Adding each file one by one manually is, of course, unthinkable, but thankfully there is a very short and sweet way to do it.
May 5, 2023
In database management, aggregation is defined as (to quote Wikipedia):
useReducer
with a Very Basic ExampleApril 8, 2023
If you are setting the value of a state variable in multiple places in your React application, the state hook useReducer
might be another option to consider.
April 3, 2023
Now that the Create React App is already dead (and, the new React docs don’t even mention it), when using a great tool like Vite, you might realize that it does not come with the usual testing libraries included as opposed to Create React App. While there is Vitest that is powered by Vite itself for unit testing, let’s take a look at solving some basic configuration problems for Vite using Jest and Testing Library.
March 7, 2023
Promises in JavaScript were there to save the day from being stuck in callback hell. But the thing is, .then()
chains could eventually turn into a hell of their own. Since the human mind works synchronously, it might be hard to grasp asynchronous code when it becomes too tangled. Luckily, we have yet another thing to save the day — async
and await
!