Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

zero88 zero88

🎯
Focusing
View GitHub Profile
@zero88
zero88 / DDD.md
Created July 23, 2018 14:24
Domain Driven Design
View DDD.md

Domain Driven Design (DDD)

@zero88
zero88 / CleanCode.md
Last active July 23, 2018 14:22
Clean Code overview
View CleanCode.md

Clean Code

Code for human not machines

Code is clean if anyone in team can understand, easy to read and enhance by other developer instead of origin author.

Code clean is readability, flexibility, extensibility, maintainability.

Bullet points:

@zero88
zero88 / BDD.md
Created July 23, 2018 09:02
BDD overview
View BDD.md

Behavior Driven Development (BDD)

Feature: Behavior Driven Development (BDD).

  • In order to:
    • Avoid rework due to misunderstand and slow feedback among project manager, project owner, developer, QA/tester, sales, any guys join IT projects and customer.
    • And make project information is transperant as human readable.
    • And keep software functions work as design after refactor/restructure code.
  • As people (tech/non-tech) want to get knowledge of BDD.
  • Scenario: BDD Overview
@zero88
zero88 / TDD.md
Last active July 23, 2018 12:31
TDD overview
View TDD.md

Test Driven Development (TDD)

Definitation

TDD is software development technique to allow writing test before code then the tests will drive the implementation.

Workflow

Apply red-green refator cycle. Imagine the developer wear 3 colors hat: red, green and blue. In which:

View git-change-permission.sh
git ls-files | grep \.sh | tr '\n' ' '
git update-index --chmod=+x $(git ls-files | grep \.sh | tr '\n' ' ')