Write elegant code but not too clever.
Always consider performance, avoid unnecessary copies or loops.
But don't optimize to the point of making the code harder to understand.
For JavaScript specifically:
- Always prefer for ... of instead of forEach.
- The JavaScript in this codebase does not run through any bundler or compiler, it is pure ESM run in the browser with an import map for the bare module imports.
- Use JSDoc to declare TypeScript types to keep the code as strongly typed as possible.
bun
dockerfile
go
golang
html
java
javascript
typescript
First Time Repository
An advanced example for go-hotel.
JavaScript
Languages:
Dockerfile: 0.4KB
Go: 15.7KB
HTML: 1.9KB
JavaScript: 80.4KB
Created: 11/2/2024
Updated: 11/28/2024
All Repositories (1)
An advanced example for go-hotel.