Skip to content

Instantly share code, notes, and snippets.

View kyziq's full-sized avatar
📑
< Learning />

Khairul Haziq kyziq

📑
< Learning />
View GitHub Profile
@kyziq
kyziq / HTTP-Status-Codes.md
Created September 10, 2023 03:46
Status Code

HTTP status codes are three-digit numbers that provide a way for the server to inform the client about the status of their request. Below is a table listing commonly used HTTP status codes, their constant names, and reason phrases.

Informational Responses (1xx)

Code Constant Reason Phrase
100 CONTINUE Continue
101 SWITCHING_PROTOCOLS Switching Protocols
102 PROCESSING Processing
@kyziq
kyziq / Conventional-Commits.md
Created September 10, 2023 03:45
Version Control

Commit conventions allow the team to add more semantic meaning to git history. This includes typescope or breaking changes.

[
  'build', 'chore', 'ci', 'docs',
  'feat', 'fix', 'perf', 'refactor',
  'revert', 'style', 'test'
];
@kyziq
kyziq / clean_code.md
Created September 2, 2023 02:44 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules