Beautiful Codes

@desdulianto

kongkow.club

What
Why
How

What

beauty is in the eye of the beholder

Beautiful Codes

  • has to be easy to maintain
  • has to be easy on the eyes

... programs must be written for people to read, and only incidentally for machines to execute .- SICP

Why

Codes

  • is written (by people)
  • is read (by people)
  • is understood (by people)
  • is modified (by people)
  • has to be maintained by people!

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. - Antoine de Saint-Exupery

How

Do

  • use proper tools (SCM is a must!)
  • use meaningful name
  • do one thing (and do it well)
  • documentation
  • formatting
  • smart data structure dumb code
  • test
  • refactor

Don't

  • code
    • before think and design the solution
  • repeat yourself (DRY)
  • over (engineering|clever|doing things)
  • hesitate to throw away code
  • forget to have fun
  • stop learning

Thank You

@KongkowITMedan

kongkow.club

Q&A

Beautiful Codes

By Des Dulianto

Beautiful Codes

  • 839