Skip to content

Instantly share code, notes, and snippets.

View qduc's full-sized avatar

Duc Nguyen qduc

View GitHub Profile

Always follow these timeless principles when writing code, ordered by priority:

  1. KISS (Keep It Simple, Stupid)

    • Keep the solution as simple as possible. Avoid unnecessary abstractions, premature optimization, or clever hacks.
  2. Optimize for Cognitive Load

    • Code should fit in human working memory. Prioritize readability, clarity, and simplicity over cleverness.
  3. Separation of Concerns

  • Ensure each module/class has a clear and distinct purpose. No mixing of unrelated responsibilities.
@qduc
qduc / Default (OSX).sublime-keymap
Created July 4, 2026 08:05
Intellij keymap for Sublime Text
[
// ==========================================
// YOUR CUSTOM BINDINGS
// ==========================================
{ "keys": ["option+up"], "command": "expand_selection", "args": {"to": "smart"} },
{ "keys": ["ctrl+g"], "command": "find_under_expand" },
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" },
{ "keys": ["super+d"], "command": "duplicate_line" },
{ "keys": ["super+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },