How to write ESM import for old common js packages in Node JS projects SM (ECMAScript Modules) is a newer module system introduced in Node.js version 12. It provides a standardized way of loading and exporting modules in JavaScript applications, which is similar to the module systems used in modern web browsers. The traditional require function, on the other hand, is part of
Advanced Generators in JavaScript In JavaScript, generators are a special type of function that can be paused and resumed at specific points during its execution, allowing for the creation of iterable sequences of values. Generators are defined using the function* syntax, and they use the yield keyword to define points at which the generator
JavaScript JS Function Currying - Usage in React JS Function currying is a technique in functional programming where a function that takes multiple arguments is transformed into a series of nested functions that each take a single argument. The result of each function call is a new function that expects the next argument in the sequence. This process continues
JavaScript Call, Apply and Bind in JavaScript call, apply, and bind are three built-in functions in JavaScript that allow you to change the context in which a function is executed. These functions are commonly used in functional programming. Here's a brief overview of what each of these functions does: Call This function is used to call a
How to use JavaScript class to create utility function in React JS I was searching ways to better organise code in React application and I found it is good to use classes in creating utility functions. Here is a program example Utility functions class FormattingUtils { static formatCurrency(amount, currency) { return new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(amount); } static formatPercentage(value,
Web hooks - Basics There are 2 ways to know the status of a transaction/activity happening on a different app/system which is required to another platform to further proceed it own process: 1. Web hooks 2. Polling First we will close polling. Polling is simply checking the status of the process in
How to raise a Pull Request in Github This article refers as a guideline for our team. Things to remember 1. During PR raising (to developer) * Give a good title to the PR. * Title must include the action/ feature done, area/page reflected in the code change. * Action can be enhancement, bug fix, feature additions etc. * If the
Startup Things to do keep in mind before starting work as a consultant or a freelancer. I cannot take any credit for this article. It is exactly based on a tweet by @HAFEEZOLAMIDE1. I express my sincere thanks to him for such a great content. I will try to keep updating this. Do 👍🏽 : 1. Identify the problem the client is experiencing first. 2. Jump on a
Journal September week 2, 2022 - Weekly log These are my important readings of the past week. I am publishing this series on every Sundays. The log includes articles, posts, learning of the every past weeks. Business, Self improvement and Productivity 1. Apple's Privacy Scam | Tech Altar Apple announced their iOS privacy changes last year, stopping apps from
Info Apple Eco-system/ products - My review after using for 1 year Hi All. I have been an apple user for 1 year. My thoughts for using Mac books started way in 2018 since I started my programming carrier. I was initially a Windows user but the automatic update feature alone made it my enemy. After a single update it ruined my
Journal September week 1, 2022 - Weekly log These are my important readings of the past week. I am publishing this series on every Sundays. The log includes articles, posts, learning of the every past weeks. Business, Self improvement and Productivity 1. Don’t think to write, write to think This is one of the lessons that every
Journal August week 3, 2022 - Weekly log These are my important readings of the past week. I am publishing this series on every Sundays. The log includes articles, posts, learning of the every past weeks. 0:00/1× Self improvement and Productivity 1. How to create trust in a company with transparency ? - A Y-Combinator study https:
Journal Weekly log - August Week 2 These are my important readings of the past week. I am publishing this series on every Sundays. The log includes articles, posts, learning of the every past weeks. Self improvement and Productivity 1. How to make your first $$ online by Tanay Pratap https://twitter.com/tanaypratap/status/1555048917296979968?s=20&
Productivity Google search tricks for 2022 As a web developer most of work is at google, I meant only google search. Here are some of the tricks I use to search efficiently. Find similar websites This will give websites similar to the website given as argument. related:[website.com] eg: related:medium.com Search only in
Startup How to get Startup ideas - A summary This article is a summary of the video I watched from Y Combinator. The video helped me a lot in learning the process of building something that is actually helpful to someone in the world. Initially, we can see the common mistake we take on building ideas. Mistake #1 -
Info What is Odessey Blog ? Odessey blog is a blogging platform in which authors can write articles based on tech, life and experiences. All the articles written is fully owned by the Author. She/he can repost the article to any platform. The Author bares the right to add, edit, publish any article any time.