Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 3.51 KB

design-patterns.md

File metadata and controls

66 lines (46 loc) · 3.51 KB

Design patterns

  • [program-design]

  • How to Design Programs, Second Edition htdp.org

    • The typical course on programming teaches a “tinker until it works” approach. When it works, students exclaim “It works!” and move on. Sadly, this phrase is also the shortest lie in computing, and it has cost many people many hours of their lives. In contrast, this book focuses on habits of good programming, addressing both professional and vocational programmers.

    • By “good programming,” we mean an approach to the creation of software that relies on systematic thought, planning, and understanding from the very beginning, at every stage, and for every step

https://en.wikipedia.org/wiki/Software_design_pattern

Message Queues

Distributed

  • Paxos
    • Use two consensus building phases to reach safe consensus even when nodes disconnect

Anti Patterns

Shotgun parsing is a programming antipattern whereby parsing and input-validating code is mixed with and spread across processing code—throwing a cloud of checks at the input, and hoping, without any systematic justification, that one or another would catch all the “bad” cases.