Blog: https://michalzakrzewski.substack.com/
Quick idea, quick execution.
What do you think about input like that?
Quick idea, quick execution.
What do you think about input like that?
- Functions should describe what they are doing.
- Parameters should have types.
- Functions should have return types.
- Functions should describe what they are doing.
- Parameters should have types.
- Functions should have return types.
It's ideal for apps showing dynamic time info, such as notifications or messages.
It's ideal for apps showing dynamic time info, such as notifications or messages.
Watch out for the pitfalls of the entire world of programming 😉
Watch out for the pitfalls of the entire world of programming 😉
Here’s how to set limits:
Here’s how to set limits:
• functions are hoisted with their definitions;
• var is hoisted, but only its declaration (not the value);
• functions are hoisted with their definitions;
• var is hoisted, but only its declaration (not the value);
Use the Counter class from the collections module!
Use the Counter class from the collections module!
This helps prevent situations where your app stops working due to changes in the environment.
This helps prevent situations where your app stops working due to changes in the environment.
michalzakrzewski.substack.com/p/the-comma...
michalzakrzewski.substack.com/p/the-comma...
Link in your profile, subscribe and don't miss it!
Link in your profile, subscribe and don't miss it!
Use the signal parameter to cancel fetch requests, ideal for timeouts or unmounting React components.
Use the signal parameter to cancel fetch requests, ideal for timeouts or unmounting React components.
Beyond delaying code, add arguments after the delay.
These go straight to your callback function.
Beyond delaying code, add arguments after the delay.
These go straight to your callback function.
The `zip()` function takes two or more iterables (like lists, tuples, etc.) and returns tuples of their corresponding elements.
The `zip()` function takes two or more iterables (like lists, tuples, etc.) and returns tuples of their corresponding elements.
Using `{ once: true }` automatically removes the event listener after the first invocation, saving you from doing it manually.
Using `{ once: true }` automatically removes the event listener after the first invocation, saving you from doing it manually.
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.
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.
It is commonly used to copy, merge, or pass elements of arrays and objects efficiently.
It is commonly used to copy, merge, or pass elements of arrays and objects efficiently.