2coffee.dev

Search

Answer from AI (Beta) *
* AI generates answers based on the content of the article

Search result

  • Using CLI Applications to Increase Efficiency in Work

    This article is about using Command-Line Interface (CLI) applications to enhance work efficiency through automation.

    As a programmer, I believe that everyone has thought about leveraging lines of code to automate tasks. For example, a JavaScript code snippet written by a programmer to calculate the total amount of money spent on an e-commerce platform, instead of manually adding up each order in a never-ending list. Automation brings many benefits, the most obvious of which are time savings and reduced errors in repetitive processes. Moreover, if the code snippet I wrote can be shared with others, it's truly a win-win situation. I also create such code snippets, but instead of calculating order values, they focus on solving common work-related issues. For instance...

  • 1 Month Learning Rust - My First CLI Application

    This article is about the author's experience learning Rust and creating their first command-line interface (CLI) application.

    A year ago, I declared that I would learn Rust within a month. And the result is that the series of articles about the Rust learning process has not ended yet. Can this be considered a failure? I think not. Programming languages are just tools to solve problems. Learning a new one can broaden our experience and help us solve problems more efficiently...

  • CLI Application for Managing Posts

    This article is about a CLI application designed for managing posts on a blog, specifically addressing the challenges faced in optimizing user experience and fixing markdown rendering issues.

    Hello readers of 2coffee.dev. Another week has passed, so quickly that when looking back at the homepage, I couldn't believe that I had stopped writing for such a long time. To be honest, last week was quite busy as I was focused on releasing an important update for the product at work. Perhaps that's why the concept of time has temporarily been buried. Hmm... Need to think of something to talk about...

  • Overview of NPM - How Did I Publish a Package on npm?

    This article is about the process of publishing a package on npm, a huge repository of packages for web development and Node.js.

    I'm sure that everyone here has heard of, knows, and uses npm daily in their work. NPM is a huge repository of packages, mostly JavaScript libraries used for web development or Node.js. But where do these packages come from? The answer is the community, which includes you - those who have interesting ideas and are willing to share.

  • Debugging Node.js Applications

    This article is about debugging Node.js applications, emphasizing its importance for developers in identifying and fixing code issues.

    Debugging is an essential skill for every developer. No matter what position or programming language you work with, debugging is crucial to finding and fixing issues in your code. While adding more code increases the risk of introducing bugs, debugging helps us identify the root cause of these errors and verify whether our program is functioning as expected. Node.js offers various debugging techniques, and console.log is...

  • Series on Docker in Practice & Production - Using Docker Compose to Start Multiple Services

    This article is about using Docker Compose to simplify the process of starting multiple containers simultaneously, addressing the limitations of the `docker run` command, which can only initiate one container at a time.

    docker run only allows starting one container at a time, which can be challenging and complex when your application needs to start multiple containers simultaneously. Additionally, manually executing individual commands can be error-prone. Imagine having a stack with multiple images - should you run docker run n times...

  • Tear Down and Rebuild

    This article is about the author's reflections and plans for the blog 2coffee.dev following the completion of the OpenNotas project.

    Hello readers of 2coffee.dev, it's been a while since I last met you. After completing and launching the OpenNotas project in early June, a week later was dedicated to "fixing bugs," and recently I took a short trip to "reset" myself after six months of hard work. By the way, have you all made plans for your next trip? Take some time to rest and enjoy life; don't dive too deep into work or you might get "overloaded"...

  • What is Child Process in Node.js? When to Use fork and spawn?

    This article is about the concept of Child Process in Node.js, specifically the `child_process` module, which allows creating independent child processes to perform specific tasks.

    There is a piece of advice that every Node.js developer should remember, which is "never block the event loop." Blocking here means not allowing the Event Loop to execute its own functions. Node.js only has one thread to handle JavaScript code, so if a task takes a considerable amount of time to process, it will cause a serious bottleneck in the main thread. In other words, all API calls may never respond until that task is complete. Knowing this issue, Node.js provides us with some ways to solve it...

  • Introduction to NPM - Building and Publishing Packages to NPM

    This article is about the process of building and publishing a package to npm.

    In the previous article, I summarized the process of pushing a package to npm. In this article, I will go into detail about how I built my package, specifically a package for vue.js that handles OTP code input. The source code for the package can be found on...

  • How I Improved Lighthouse Score for My Blog by Increasing CLS Score?

    This article is about improving the Lighthouse score of a blog by increasing the Cumulative Layout Shift (CLS) score.

    One of the top concerns I have when working on my blog is its SEO capability. Honestly, before getting started, I did a lot of research on how to improve the visibility of my website when users search on Google. Through many articles and SEO guides, I came across Google's Lighthouse scoring tool. So, I always want to boost my Lighthouse score as high as possible. Although Google does not clearly state how the Lighthouse score affects SEO, they have hinted that Google really "likes" high-scoring websites...