2coffee.dev

Hot Weekly

Transforming the Blog into "Web is on the edge"
Transforming the Blog into "Web is on the edge"

Transition from traditional server hosting to an "Edge" and "Serverless" architecture for their blog and services

Discussion on Load Balancing
Discussion on Load Balancing

Load balancing, an important technique in distributed systems to ensure performance, availability, and scalability of applications. It helps systems operate stably under unpredictable traffic from users.

Discussing the npm run build command – why is it necessary to build?
Discussing the npm run build command – why is it necessary to build?

npm run build command, which is essential for JavaScript developers preparing to release applications.

How to Delete a Pushed Commit
How to Delete a Pushed Commit

How to delete a pushed commit in Git, addressing a common issue many users face. It highlights that while some resources provide guidance on deleting unpushed commits, the process for pushed commits is more complex and risky.

Measuring the Execution Time of Functions in JavaScript in a Graceful Way
Measuring the Execution Time of Functions in JavaScript in a Graceful Way

The execution time of functions in JavaScript to identify performance issues in applications. It highlights the challenges developers face when unexpected problems arise, such as slow API responses due to certain functions taking excessive processing time.

  • A more detailed article on ESM and CommonJS modules in Node.js
    • 🏷️esm
    • 🏷️commonjs
    • 🏷️modules

    A more detailed article on ESM and CommonJS modules in Node.js

    Previously, I have written some articles about different types of modules in Node.js as well as in JavaScript. I mentioned CommonJS, AMD, and even ESM modules roughly in those articles. You can revisit them in the articles "Understanding require in Node.js" and "Understanding modules in Node.js. Why are there so many module types?". However, I didn't delve deep into them. Many people wonder when to use require and when to use import. Can you use both in the same project? In today's article, let's dive into how these two types of modules work in Node.js to answer these questions...

    🕝1 year ago

  • Understanding Modules in Node.js. Why are there so many types of modules?
    • 🏷️module
    • 🏷️javascript
    • 🏷️node.js

    Understanding Modules in Node.js. Why are there so many types of modules?

    When building Vue.js or React.js applications, you often use the import syntax to use a component or module. However, with plain JS Node.js applications, you typically use require. Or sometimes you may come across the case where modules are declared using AMD (Asynchronous Module Definition) syntax as shown below. From these examples, have you ever wondered why sometimes you can use import, sometimes use require, or even why you can't use import syntax normally when starting a Node.js application...

    🕝4 years ago

  • Premium
    Hello

    Me & the desire to "play with words"

    Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

    Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!

    View all