Why Does Git Commits Start with `feat:`?

Have you ever seen feat: at the beginning of Git commit messages when using Copilot or other AI-assisted tools? If you’re wondering why developers use this format, the answer lies in Conventional Commits—a structured way of writing commit messages that improves project maintainability and automation. 1. What is Conventional Commits? Conventional Commits is a standardized format for Git commit messages, designed to make change history clearer and more structured. A typical commit follows this pattern: ...

March 19, 2025

Laravel FAQ

FAQ Q-1 config & env In Laravel, there are several important differences between directly using the env() function and accessing environment variables through the config() function: Caching Mechanism : Direct env() usage: When you use env() directly in your application code, Laravel reads from the .env file on every request, which is not cached. Using config(): Laravel can cache configuration files (via php artisan config:cache command) to improve performance. When configurations are cached, the .env file is no longer read, and the system uses the cached configuration values instead. Production Best Practices : Laravel officially recommends using env() in configuration files and then using config() in your application code. This is because when you run config:cache in production, code that directly uses env() will not be able to retrieve environment variable values. php artisan config:cache # every time when update .env we need run this Deployment Laravel offers two official deployment services: ...

March 4, 2025

Nextjs FAQ

When to Use Direct API Calls vs. Next.js Server Proxy Use Next.js API Routes when: You need to hide API keys or other secrets You want to aggregate multiple API calls You need to transform data before sending it to the client Your API requires complex authentication that’s better handled server-side Direct API calls might be acceptable when: The API is public and requires no sensitive credentials You’re working with a simple prototype The backend already handles CORS and is specifically designed for browser access You need real-time updates (although you could still use WebSockets through Next.js) Why and when use React Context React Context is designed to solve the “Props Drilling” problem, where deeply nested components need access to shared data, but passing props through multiple levels becomes cumbersome. It allows global state sharing, making it useful for themes, authentication, and localization. ...

March 4, 2025

Qucik Start : Laravel

STEP 1 : Installing PHP and the Laravel Installer Install php in Mac : /bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.4)" install the Laravel installer via Composer: composer global require laravel/installer STEP 2 : Creating an Application Input : laravel new thought-manager thought-manager is my test project name. you will be asked : _ _ | | | | | | __ _ _ __ __ ___ _____| | | | / _` | __/ _` \ \ / / _ \ | | |___| (_| | | | (_| |\ V / __/ | |______\__,_|_| \__,_| \_/ \___|_| Which starter kit would you like to install? [None]: [none ] None [react ] React [vue ] Vue [livewire] Livewire I choice none because I created a api project. Then you will be asked : ...

February 19, 2025

Daily Brainstorming : How to Evaluate Whether a New Project Is Good

I am a software engineer, and sometimes I feel like a man with a hammer seeing everything as a nail. I’ve been in this field for a long time and have often noticed that doing more doesn’t always lead to better results. The question is: how can I evaluate whether a new project is good? there are two axes to consider when selecting an project: ...

January 7, 2025

My Tech Stack Selection - 2025 - SaaS

Overview This document explains my technology stack selection for SaaS projects in 2005. I use different stacks depending on the purpose of the project. If the goal is to quickly test an idea, I will use Next.js with Clerk and Supabase. Firebase can also be used as a replacement for Supabase. If the project is something I believe in and want to keep building for the long term, I will use a more flexible and scalable architecture. This structure includes Laravel for the backend, Next.js for the frontend, Supabase for the database, and a VPS like Vultr for hosting. ...

January 1, 2025

New Year Holiday Reading Book 3 How to Raise a Tech Genius

Recommendation Rating: ★★☆☆☆ The best way to teach someone to learn something is by helping them experience it and solve real-world problems. However, compared to a standard curriculum, this approach requires much more skilled teachers, is harder to standardize, and therefore tends to be more expensive. For me, the good thing is that there’s a purpose in teaching kids information technology, which helps me rethink everything I do to better support my kids in using it. ...

December 31, 2024

New Year Holiday Reading Book 2 Design and Build Great Web Apis

Recommendation Rating: ★★★☆☆ This book has two key features: Every topic starts with the basic fundamentals(not just from software require, from basic thinking); It provides a comprehensive framework of web API It attempts to establish a system, but it lacks rigor and is quite verbose. When it comes to specific operations, it lacks detail. It can only be considered a collection of organized notes with some highlights, but it falls short of being truly good. ...

December 26, 2024

New Year Holiday Reading Book 1 : Business Intelligence Analytics Data Science and Ai

Recommendation Rating: ★★★☆☆ This book has a lot of information all in one place, and it’s great to flip through. Here are some things I found interesting. Business Analytics When we talk about analytics, it means we aim to understand the current situation, anticipate what might happen, and determine the actions we can take. Dimension Descriptive Predictive Prescriptive Questions What Happened? What will happen? What should I do? - What is happening? why will it happen? Why should I do it? Enablers Business reporting Data mining Optimization - Dashboards Text mining Simulation - Scorecards Web/media mining Decision modeling - Data warehousing Forecasting Expert systems Outcomes Well-defined business problems and opportunities Accurate projections of furture events and outcomes Best possible business decisions and actions

December 25, 2024

You Do Not Need Learn Everything in the Code

My philosophy is Learn just enough to solve your current problem and expand your understanding naturally as new challenges arise. I have a wide interest in technology, so my biggest challenge is staying focused. So, focus means choosing a field and specializing in it. Principle Understand which level is best for the current problems(Like TCP/IP, HTTP, or user-defined protocols.) The sequence to solve this problem(like sometimes the question is about the user interface, and other times the problem is about creating a more efficient algorithm) Technology Stack

December 19, 2024