There are good reasons to create a folder


There are good reasons to create a folder. But, here’s a bad reason:

To create many files with the same name.

Avoid: 👎
/user/api.js
/product/api.js

Instead: 👍
user-api.js
product-api.js

Then, each file has a unique name, and a bunch of subfolders aren’t necessary.

View original on X