Taogen's Blog

Stay hungry stay foolish.

Naming Conventions

File Names

Component files: Use CamelCase. E.g. MyComponent.js

Non-component files (like helpers, hooks, or utilities): Use kebab-case or camelCase. E.g. useCustomHook.js or myUtility.js.

Custom hooks files: with a use prefix. E.g. useFetch.jsuseForm.js.

Directory Names

Use kebab-case for folder names. E.g. my-foldercomponentsutils.

Test folder name: __tests__

java.util.Date is in core java API since Java 1.0. And it is not recommended for use. If you are using Java 8 or a later version, it is better to use java.time.LocalDate and java.time.Instant, which were introduced in Java 8.

In this post, I will cover common operations related to datetime.

Read more »
0%