Appearance
General Practices
Naming of Variable and Function
- Singular & Plural
- meaningful
ts
let selectedCategoryId : number = 1;
let selectedCategoryIds : number[] = [1,2,3];
let isRedeemed : bool = true;php
public function redeemStatus() : string
{
return $is_redeemed ? "Redeemed" : "Open";
}Be careful on Global & Magic
Be aware on API response changes
- as most of the frontend development language are strong type, changes of types or object key naming will cause error in frontend application.
Nexus Ecosystem