/code-lab

best practices, writing better code, learning algorithms, principles, rules, etc.

Primary LanguageJavaScript

I just share software development best-practices in any aspect of development such as back-end, front-end , database, deployment, testing, etc. in this repo.

CODE-STYLES

You must choose your js-code style before writing any lines of code. There are three types of popular code-syles here:

  1. Airbnb
  2. Google
  3. Github

Performance

  • Google Chrome DevTools Monitioring

Testing

  • Jest is the Best
  • The Unit Test is Manadtory
  • The Integration Test is Highly Recommended
  • The End-To-End User Test is Recommended (Optional)

Building / Production

  • Using one-click Build system
  • CI/CD

Deployment

  • Load Balancer
  • CDN
  • Caching

Maintanence

  • High Availability

Principles

  • SOLID
  • DRY
  • KISS
  • YAGNI

Rules

  • Boysout Rule
  • Good code is self-documenting
  • Service/API or libraries for external use should have documentation

Efficient Development

  • Focus -- No Answer Emails (They are not instant) -- Disable ALL notifications -- Pair Programming
  • Pair-Programming
  • TDD
  • REPL on System
  • Code Review