Home/Blog

Long code file

Long code file

They teach us to break a big file into smaller files for dominance over code and to increase maintainability. Yet they are the first people who throw it out of the window. A wise programmer never accepts things without contemplation.

1/16/2025
The worst casing

The worst casing

The worst casing is one in which only intelligence can differentiate between parts. It can be all-lowercased joint words, or it can be all-uppercased joint words.

1/15/2025
Linux PATH is singular but has plural values in it

Linux PATH is singular but has plural values in it

One aspect of correct semantics is the correspondence of the word plurality with its value. Imagine creating a variable called "student" and then storing the student list in it. Or vice versa, imagine creating a variable called "cars" which holds only one car in it.

1/11/2025
Azure shows deleted resource groups

Azure shows deleted resource groups

I deleted a bunch of resource groups in Azure. They were not being used anymore. I didn't see them in the Resource Group list. But after a while when I wanted to filter the cost analysis base on the resource group, I saw them again.

12/20/2024
SI inconsistency

SI inconsistency

The base unit for length is the meter. But for weight, the base unit is the kilogram, not the gram. A magnitude prefix is applied for the base unit of weight, while it's not applied for the base unit of length.

12/18/2024
Inconsistency in ChatGPT

Inconsistency in ChatGPT

While the message shows that the memory is full, ChatGPT claims that its memory is disabled and only works for the current session. What is a session? Sign out and sign in? A single chat? Closing and re-opening the browser? Memory did not get deleted until I deleted it manually from the settings.

12/9/2024
Google URL inconsistency

Google URL inconsistency

Consistency is a must for any team to succeed. However, even a giant like Google can not guarantee it 100%. No matter how big we are, the complex world is bigger. That's why we shift towards progression over perfection.

12/1/2024
GitHub texts overlap

GitHub texts overlap

Even a giant like GitHub can not guarantee that its site content will appear appropriately on all devices. Progression over perfection is the key here.

11/21/2024
Google Contact's drop-down's height is not dynamic

Google Contact's drop-down's height is not dynamic

Event a giant like Google can not make 100% perfect products. It's not clear why they have not used a dynamic height. But we know they've come to a hard situation when they had to choose and sacrifice the dynamic height to gain some advantage in another place.

9/16/2024
VS Code context-menu layout shift

VS Code context-menu layout shift

Even VS Code with Microsoft behind it can not deliver a perfect solution. And we should note that at the time of this post, VS Code has more than 162K stars on GitHub, 28K forks, 2K contributors, 172K issues closed, and over 124K commits. Yet its context menu for deletion has a layout-shift on my screen. Do not aim at perfection. Aim at delivering a good-enough solution.

8/28/2024
Context-aware imports

Context-aware imports

I believe that someday in the future, we should be able to see that our IDEs and compilers become more intelligent and will support context-awareness for some language constructors, like imports in JavaScript.

5/26/2024