Michał Zakrzewski
banner
michalzakrzewski.com
Michał Zakrzewski
@michalzakrzewski.com
Web Developer | 12+ years of simplifying code & crafting web solutions 💻 | Sharing tips, insights, and my coding journey 🚀

Blog: https://michalzakrzewski.substack.com/
If you have too much free time in the evening and you played/watched Factorio for too long! 😁

Quick idea, quick execution.

What do you think about input like that?
July 25, 2025 at 8:41 PM
The easiest way to make your code cleaner is to write self-documenting code:

- Functions should describe what they are doing.
- Parameters should have types.
- Functions should have return types.
January 19, 2025 at 7:30 AM
Intl.RelativeTimeFormat transforms time into clear, locale-friendly expressions.

It's ideal for apps showing dynamic time info, such as notifications or messages.
January 16, 2025 at 7:30 AM
Good morning Developers!

Watch out for the pitfalls of the entire world of programming 😉
January 15, 2025 at 7:30 AM
What is your approach to using if/else?
January 15, 2025 at 2:30 AM
Did you know that you can localize and style numbers with Intl.NumberFormat?
January 14, 2025 at 7:30 AM
The URLSearchParams API simplifies query parameters in JavaScript.
January 13, 2025 at 12:30 PM
When running containers, managing resources like CPU and memory is key to ensuring smooth performance.

Here’s how to set limits:
January 12, 2025 at 10:30 PM
📢 JS Hoisting in action:

• functions are hoisted with their definitions;
• var is hoisted, but only its declaration (not the value);
January 10, 2025 at 12:30 PM
Want to count characters, words, or elements in Python easily?

Use the Counter class from the collections module!
January 9, 2025 at 12:30 PM
Do you know the output and understand why?
January 8, 2025 at 12:30 PM
Ever wonder why JavaScript's NaN doesn't equal NaN?
January 7, 2025 at 7:30 AM
Avoid using the 'latest' tag in Docker Compose files.

This helps prevent situations where your app stops working due to changes in the environment.
January 6, 2025 at 12:30 PM
Check my Substack for a new article about using MongoDB from the CLI.

michalzakrzewski.substack.com/p/the-comma...
January 5, 2025 at 5:00 PM
The Counter class in Python's collections module includes a 'most_common()' method that lists elements in a dataset by their frequency.
January 5, 2025 at 12:30 PM
A sneak preview of the MongoDB tutorial that will be available for FREE on my Substack starting tomorrow.

Link in your profile, subscribe and don't miss it!
January 4, 2025 at 12:30 PM
Abort requests in JavaScript.

Use the signal parameter to cancel fetch requests, ideal for timeouts or unmounting React components.
January 4, 2025 at 7:30 AM
💡 setTimeout() secret: pass extra arguments! 💡

Beyond delaying code, add arguments after the delay.

These go straight to your callback function.
January 3, 2025 at 12:30 PM
Did you know Python offers a handy tool for combining multiple iterables?

The `zip()` function takes two or more iterables (like lists, tuples, etc.) and returns tuples of their corresponding elements.
January 2, 2025 at 1:15 AM
Many developers don’t know you can use the spread operator to pass arrays to Math.max or Math.min.
January 1, 2025 at 1:00 PM
Did you know this JavaScript tip?

Using `{ once: true }` automatically removes the event listener after the first invocation, saving you from doing it manually.
December 31, 2024 at 12:30 PM
Creating a database in MongoDB is quite simple.

If the database does not exist, it will be created; if it does exist, you will simply use it.

You don't need to check anything like in SQL.
December 30, 2024 at 12:45 PM
Top 10 essential JavaScript Array functions
December 29, 2024 at 12:45 PM
The walrus operator (:=) allows you to assign a value to a variable within an expression, eliminating the need to write the same code twice.
December 28, 2024 at 1:00 PM
The spread operator (...) in JavaScript allows you to expand elements of an array or object into individual elements.

It is commonly used to copy, merge, or pass elements of arrays and objects efficiently.
December 27, 2024 at 12:30 PM