Skip to content

coder-chenzhi/500lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Repository files navigation

500 Lines or Less

"What I cannot create, I do not understand."

-- Richard Feynman

This is the source for the book 500 Lines or Less, the fourth in the Architecture of Open Source Applications series. As with other books in the series, all written material will be covered by the Creative Commons - Attribution license, and all code by the MIT License: please see the license description for details. In addition, all royalties from paid-for versions will all go to Amnesty International.

The production of this book has been made possible by the financial support of PagerDuty.

PagerDuty Logo

Mission

Every architect studies family homes, apartments, schools, and other common types of buildings during her training. Equally, every programmer ought to know how a compiler turns text into instructions, how a spreadsheet updates cells, and how a database efficiently persists data.

Previous books in the AOSA series have done this by describing the high-level architecture of several mature open-source projects. While the lessons learned from those stories are valuable, they are sometimes difficult to absorb for programmers who have not yet had to build anything at that scale.

"500 Lines or Less" focuses on the design decisions and tradeoffs that experienced programmers make when they are writing code:

  • Why divide the application into these particular modules with these particular interfaces?
  • Why use inheritance here and composition there?
  • How do we predict where our program might need to be extended, and how can we make that easy for other programmers?

Each chapter consists of a walkthrough of a program that solves a canonical problem in software engineering in at most 500 source lines of code. We hope that the material in this book will help readers understand the varied approaches that engineers take when solving problems in different domains, and will serve as a basis for projects that extend or modify the contributions here.

Contributors

NameAffiliationProjectOnlineGitHubEmail (if you choose)
Mike DiBernardofreelanceeditorialMichaelDiBernardo[email protected]
Amy Brownindieeditorialamyrbrown[email protected]
Dustin MitchellMozillaclusterdjmitche[email protected]
Audrey Tangg0v.tw, Socialtext, Applespreadsheetaudreyt[email protected]
Greg WilsonMozillaweb-servergvwilson[email protected]
Taavi BurnsPreviously at Points, now at PagerDutydata-storetaavi[email protected]
Guido van RossumDropboxcrawlergvanrossum[email protected]
A. Jesse Jiryu DavisMongoDBcrawlerajdavis[email protected]
Erick DranschUpverterModellerEkkiD[email protected]
Ned BatchelderedXtemplating enginenedbat[email protected]
Leah HansonGooglestatic analysisastrieanna[email protected]
Christian MuiseUniversity of Melbourneflow-shophaz[email protected]
Marina SamuelMozillaocremtwo[email protected]
Cate HustonImage Filter appcatehstn[email protected]
Yoav RubinMicrosoftIn-memory functional databaseyoavrubin
Dessy DaskalovNudge RewardsPedometerdessy[email protected]
Carl Friedrich BolzKing's College Londonobject modelcfbolz[email protected]
Jessica HamrickUniversity of California, Berkeleysamplerjhamrick[email protected]
Allison KapturHacker Schoolbyterun@akaptur@akaptur[email protected]
Daniel RoccoBrightLink Technologycontingent@drocco007drocco007[email protected]
Brandon RhodesDropboxcontingent@brandon_rhodesbrandon-rhodes[email protected]
Dann ToliverBento Boxdagobadxnn[email protected]
Malini DasTwitchcimalini

About

500 Lines or Less

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX39.7%
  • JavaScript28.8%
  • Python16.8%
  • HTML3.5%
  • Haskell2.4%
  • Ruby1.4%
  • Other7.4%