1 Star 0 Fork 0

weiweimao / lines500

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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

Name Affiliation Project Online GitHub
Mike DiBernardo Wave editorial MichaelDiBernardo
Amy Brown indie editorial amyrbrown
Allison Kaptur Dropbox byterun akaptur
Audrey Tang g0v.tw, Socialtext, Apple spreadsheet audreyt
Brandon Rhodes Dropbox contingent brandon-rhodes
Carl Friedrich Bolz King's College London object model cfbolz
Cate Huston   Image Filter app catehstn
Christian Muise University of Melbourne flow-shop haz
Daniel Jackson   same-origin-policy    
Daniel Rocco BrightLink Technology contingent drocco007
Dann Toliver Bento Box dagoba dxnn
Dessy Daskalov Nudge Rewards Pedometer dessy
Dethe Elza   blockcode   dethe
Dustin Mitchell Mozilla cluster   djmitche
Erick Dransch   Modeller EkkiD
Eunsuk Kang   same-origin-policy    
Greg Wilson   web-server gvwilson
Guido van Rossum Dropbox crawler gvanrossum
A. Jesse Jiryu Davis MongoDB crawler ajdavis
Jessica Hamrick University of California, Berkeley sampler jhamrick
Leah Hanson Google static analysis astrieanna
Leo Zovic   event-web-framework    
Malini Das Twitch ci malini
Marina Samuel Mozilla ocr emtwo
Ned Batchelder edX templating engine nedbat
Santiago Perez De Rosso   same-origin-policy    
Taavi Burns Previously at Points, now at PagerDuty data-store taavi
Yoav Rubin Microsoft In-memory functional database yoavrubin

Technical Reviewers

Amber Yust Andrew Gwozdziewycz Andrew Kuchling
Andrew Svetlov Andy Shen Anton Beloglazov
Ben Trofatter Borys Pierov Carise Fernandez
Charles Stanhope Chris Atlee Chris Seaton
Cyryl Płotnicki-Chudyk Dan Langer Dan Shapiro
David Pokorny Eric Bouwers Frederic De Groef
Graham Lee Gregory Eric Sanderson James O'Beirne
Jan de Baat Jana Beck Jessica McKellar
Jo Van Eyck Joel Crocker Johan Thelin
Johannes Fürmann John Morrissey Joseph Kaptur
Josh Crompton Joshua T. Corbin Kevin Huang
Maggie Zhou Marc Towler Marcin Milewski
Marco Lancini Mark Reid Matthias Bussonnier
Max Mautner Meggin Kearney Mike Aquino
Natalie Black Nick Presta Nikhil Almeida
Nolan Prescott Paul Martin Piotr Banaszkiewicz
Preston Holmes Pulkit Sethi Rail Aliiev
Ronen Narkis Rose Ames Sina Jahan
Stefan Turalski William Lachance
Licenses ======== Written Material ---------------- All written material in this project is made available under the Creative Commons Attribution license. You are free: * to **Share**---to copy, distribute and transmit the work * to **Remix**---to adapt the work Under the following conditions: * **Attribution**---You must attribute the work using "Copyright (c) [chapter author's name]" (but not in any way that suggests that we endorse you or your use of the work). Where practical, you must also include a hyperlink to http://aosabook.org. With the understanding that: * **Waiver**---Any of the above conditions can be waived if you get permission from the copyright holder. * **Other Rights**---In no way are any of the following rights affected by the license: * Your fair dealing or fair use rights; * The author's moral rights; * Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights. * **Notice**---For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to [http://creativecommons.org/licenses/by/3.0/](http://creativecommons.org/licenses/by/3.0/). For the full legal text of this license, please see [http://creativecommons.org/licenses/by/3.0/legalcode](http://creativecommons.org/licenses/by/3.0/legalcode). Software -------- The example programs and other software included in this repository are made available under the [OSI](http://opensource.org)-approved [MIT license](http://opensource.org/licenses/mit-license.html). Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

500 Lines or Less 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wei-mao/lines500.git
git@gitee.com:wei-mao/lines500.git
wei-mao
lines500
lines500
master

搜索帮助