A place to cache linked articles (think custom and personal wayback machine)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. <!doctype html><!-- This is a valid HTML5 document. -->
  2. <!-- Screen readers, SEO, extensions and so on. -->
  3. <html lang="fr">
  4. <!-- Has to be within the first 1024 bytes, hence before the <title>
  5. See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset -->
  6. <meta charset="utf-8">
  7. <!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 -->
  8. <!-- The viewport meta is quite crowded and we are responsible for that.
  9. See: https://codepen.io/tigt/post/meta-viewport-for-2015 -->
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <!-- Required to make a valid HTML5 document. -->
  12. <title>How to Build Good Software (archive) — David Larlet</title>
  13. <meta name="description" content="Publication mise en cache pour en conserver une trace.">
  14. <!-- That good ol' feed, subscribe :). -->
  15. <link rel="alternate" type="application/atom+xml" title="Feed" href="/david/log/">
  16. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  17. <link rel="apple-touch-icon" sizes="180x180" href="/static/david/icons2/apple-touch-icon.png">
  18. <link rel="icon" type="image/png" sizes="32x32" href="/static/david/icons2/favicon-32x32.png">
  19. <link rel="icon" type="image/png" sizes="16x16" href="/static/david/icons2/favicon-16x16.png">
  20. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  21. <link rel="mask-icon" href="/static/david/icons2/safari-pinned-tab.svg" color="#07486c">
  22. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  23. <meta name="msapplication-TileColor" content="#f0f0ea">
  24. <meta name="msapplication-config" content="/static/david/icons2/browserconfig.xml">
  25. <meta name="theme-color" content="#f0f0ea">
  26. <!-- Documented, feel free to shoot an email. -->
  27. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  28. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  29. <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
  30. <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
  31. <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
  32. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  33. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  34. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  35. <script>
  36. function toggleTheme(themeName) {
  37. document.documentElement.classList.toggle(
  38. 'forced-dark',
  39. themeName === 'dark'
  40. )
  41. document.documentElement.classList.toggle(
  42. 'forced-light',
  43. themeName === 'light'
  44. )
  45. }
  46. const selectedTheme = localStorage.getItem('theme')
  47. if (selectedTheme !== 'undefined') {
  48. toggleTheme(selectedTheme)
  49. }
  50. </script>
  51. <meta name="robots" content="noindex, nofollow">
  52. <meta content="origin-when-cross-origin" name="referrer">
  53. <!-- Canonical URL for SEO purposes -->
  54. <link rel="canonical" href="https://www.csc.gov.sg/articles/how-to-build-good-software">
  55. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick">
  56. <article>
  57. <header>
  58. <h1>How to Build Good Software</h1>
  59. </header>
  60. <nav>
  61. <p class="center">
  62. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  63. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-home"></use>
  64. </svg> Accueil</a> •
  65. <a href="https://www.csc.gov.sg/articles/how-to-build-good-software" title="Lien vers le contenu original">Source originale</a>
  66. </p>
  67. </nav>
  68. <hr>
  69. <h2>Why Bad Software Happens to Good People</h2>
  70. <p>Bad software is one of the few things in the world you cannot solve with money. Billion dollar airlines have flight search apps that are often inferior to those built by groups of students. Established taxi
  71. companies the world over have terrible booking apps despite the threat they face from ride-sharing services. And painful corporate IT systems are usually projects with massive budgets, built over the course of many years. Whatever the cause of bad software is, it does not seem to be a lack of funding.</p>
  72. <p>Surprisingly, the root cause of bad software has less to do with specific engineering choices, and more to do with how development projects are managed. The worst software projects often proceed in a very particular way:</p>
  73. <p>The project owners start out wanting to build a specific solution and never
  74. explicitly identify the problem they are trying to solve. They then gather a long list of requirements from a large group of stakeholders. This list is then handed off to a correspondingly large external development team, who get to work building this highly customised piece of software from scratch. Once all the requirements are met, everyone celebrates as the system is launched and the project is declared complete.</p>
  75. <p><hr>
  76. <h5><em>
  77. The root cause of bad software has less to do with specific engineering choices, and more to do with how development projects are managed.
  78. </em></h5>
  79. <hr>
  80. <p> However, though the system technically meets specifications, severe issues are
  81. found when it is put in the hands of actual users. It is slow, confusing, and
  82. filled with subtle bugs that make using it an exercise in frustration. Unfortunately,
  83. by this time the external development team has been dismissed and there
  84. are no resources left over to make the necessary fixes. By the time a new project
  85. can be initiated years later, all knowledge of what caused these problems has left
  86. the organisation and the cycle starts over again.</p>
  87. <p></p></p>
  88. <p class="small-text">A Conversation with Li Hongyi (Part 1)<br>
  89. <em>Scroll down for more videos</em></p>
  90. <p>The right coding language, system architecture, or interface design will
  91. vary wildly from project to project. But there are characteristics particular
  92. to software that consistently cause traditional management practices to fail, while allowing small startups to succeed with a shoestring budget:</p>
  93. <p>• Reusing good software is easy;
  94. it is what allows you to build good
  95. things quickly;<br>
  96. • Software is limited not by the amount
  97. of resources put into building it, but
  98. by how complex it can get before it
  99. breaks down; and<br>
  100. • The main value in software is not the
  101. code produced, but the knowledge
  102. accumulated by the people who
  103. produced it.</p>
  104. <p>
  105. </p>
  106. <p>Understanding these characteristics may not guarantee good outcomes, but it
  107. does help clarify why so many projects produce bad outcomes. Furthermore,
  108. these lead to some core operating principles that can dramatically improve
  109. the chances of success:</p>
  110. <p>
  111. </p>
  112. <p>1. Start as simple as possible;<br>
  113. 2. Seek out problems and iterate; and<br>
  114. 3. Hire the best engineers you can.</p>
  115. <p>While there are many subtler factors to consider, these principles form a foundation that lets you get started building good software.</p>
  116. <h2>Reusing Software Lets You Build Good Things Quickly</h2>
  117. <p>Software is easy to copy. At a mechanical level, lines of code can literally be copied and pasted onto another computer. More generally, the internet is full of tutorials on how to build different kinds of systems using ready-made code modules that are available online. Modern software is almost never developed from scratch. Even the most innovative applications are built using existing software that has been combined and modified to achieve a new result.</p>
  118. <p>The biggest source of reusable code modules is the open source community. Open source software is software in which code is freely published for anyone to see and use. Many of the largest contributors to the open source community are giant tech companies. If you want to use a state-of-the-art planet scalable database as Facebook does, just download the code for Cassandra that they open sourced in 2008. If you want to try out Google’s cutting-edge machine learning for yourself, download the TensorFlow system published in 2015. Using open source code does not just make your application development faster, it gives you access to technology that is far more sophisticated than anything
  119. you could have developed yourself. For the most popular open source code, it is even more secure as there are many more people paying attention and fixing vulnerabilities. This is the reason digital technology has made such rapid progress: even the newest engineers can build upon the most advanced tools our profession has to offer.</p>
  120. <p>The advent of cloud services has taken reusability even further, offering the full use of even proprietary systems for just a subscription fee. Need a simple website? Just configure one in a few clicks using a website building service like Squarespace or Wix. A database? Subscribe to a virtual one from Amazon Web Services or Microsoft Azure. Cloud services allow developers to benefit from specialisation; the service provider handles the setup, maintenance, and continued development of a reliable, high-quality piece of software that is used by all its subscribers. This allows software developers to stop wasting time on solved problems and instead focus on delivering actual value.</p>
  121. <p>You cannot make technological progress if all your time is spent on rebuilding existing technology. Software engineering is about building automated systems, and one of the first things that gets automated away is routine software engineering work. The point is to understand what the right systems to reuse are, how to customise them to fit your unique requirements, and fixing novel problems
  122. discovered along the way.</p>
  123. <p><hr>
  124. <h5><em>
  125. Software engineering is about building automated systems, and one of the first things that gets automated away is routine software engineering work.
  126. </em></h5>
  127. <hr>
  128. <h2>Software Is Limited by Complexity</h2>
  129. <p>How useful a piece of software can be is usually limited by its complexity rather than the amount of resources invested in building it.</p>
  130. <p>IT systems are often full of features but are still hated by users because of how confusing they become. In contrast, highly ranked mobile apps tend to be lauded for their simplicity and
  131. intuitiveness. Learning to use software is hard. Beyond a point, new features actually make things worse for users because the accumulated complexity starts to become overwhelming. For example, after serving as the hub of Apple’s media ecosystem for almost 20 years, iTunes was split into three
  132. different apps (for music, podcasts, and TV shows) this year, as its features had grown too complex for one app to handle. From a usability perspective, the limit is not how many features can be implemented, but rather what can fit into a simple intuitive interface.</p>
  133. <p>Even ignoring usability, engineering progress slows to a halt once a project becomes too complex. Each new line of code added to an application has a chance of interacting with every other
  134. line. The bigger an application’s codebase, the more bugs are introduced whenever a new feature is built. Eventually, the rate of work created from new bugs cancels out the rate of work done from feature development. This is known as “technical debt” and is the main challenge in professional software development. It is the reason why many large IT systems have issues that go unfixed for years.
  135. Adding more engineers to the project just adds to the chaos: they start running
  136. faster in place as the codebase keels over from its own weight.</p>
  137. <hr>
  138. <h5><em>
  139. Building good software involves alternating cycles of expanding and reducing complexity.
  140. </em></h5>
  141. <hr>
  142. <p>In such cases, the only way forward is to take a step back to rationalise and
  143. simplify the codebase. The system architecture can be redesigned to limit
  144. unexpected interactions. Non-critical features can be removed even if they
  145. have already been built. Automated tools can be deployed to check for bugs and
  146. badly written code. Bill Gates once said “Measuring programming progress by
  147. lines of code is like measuring aircraft building progress by weight”. Human minds can only handle a finite amount of complexity, so how sophisticated a software system can get depends on
  148. how efficiently this complexity budget is used.</p>
  149. <p>Building good software involves alternating cycles of expanding and reducing complexity. As new features are developed, disorder naturally accumulates in the system. When this messiness
  150. starts to cause problems, progress is suspended to spend time cleaning up. This two-step process is necessary because there is no such thing as platonically good engineering: it depends on your
  151. needs and the practical problems you encounter. Even a simple user interface such as Google’s search bar contains a massive amount of complexity under the surface that cannot be perfected in a single iteration. The challenge is managing this cycle, letting it get messy enough to make meaningful progress,
  152. but not letting it get so complicated that it becomes overwhelming.</p>
  153. <hr>
  154. <h5><em>
  155. There is no such thing as platonically good engineering: it depends on your needs and the
  156. practical problems you encounter.
  157. </em></h5>
  158. <hr>
  159. <h2>Software Is about Developing Knowledge More than Writing Code</h2>
  160. <p>In software development, most ideas are bad; this is not anyone’s fault. It is just
  161. that the number of possible ideas is so large that any particular idea is probably
  162. not going to work, even if it was chosen very carefully and intelligently. To make
  163. progress, you need to start with a bunch of bad ideas, discard the worst, and
  164. evolve the most promising ones. Apple, a paragon of visionary design, goes
  165. through dozens of prototypes before landing on a final product. The final
  166. product may be deceptively simple; it is the intricate knowledge of why this
  167. particular solution was chosen over its alternatives that allows it to be good.</p>
  168. <p>This knowledge continues to be important even after the product is built. If a new
  169. team takes over the code for an unfamiliar piece of software, the software will soon
  170. start to degrade. Operating systems will update, business requirements
  171. will change, and security problems will be discovered that need to be fixed. Handling these subtle errors is often harder than building the software in the first place, since it requires intimate
  172. knowledge of the system’s architecture and design principles.</p>
  173. <p></p></p>
  174. <p class="small-text">A Conversation with Li Hongyi (Part 2)<br>
  175. <em>Scroll down for more videos</em></p>
  176. <p>In the short term, an unfamiliar development team can address these problems with
  177. stopgap fixes. Over time though, new bugs accumulate due to the makeshift nature
  178. of the additional code. User interfaces become confusing due to mismatched
  179. design paradigms, and system complexity increases as a whole. Software should be
  180. treated not as a static product, but as a living manifestation of the development
  181. team’s collective understanding.</p>
  182. <p><hr>
  183. <h5><em>
  184. Software should be treated not as a static product, but as a
  185. living manifestation of the development team’s collective understanding.
  186. </em></h5>
  187. <hr>
  188. <p>This is why relying on external vendors for your core software development is
  189. difficult. You may get a running system and its code, but the invaluable knowledge
  190. of how it is built and what design choices were made leaves your organisation.
  191. This is also why handing a system over to new vendors for “maintenance” often
  192. causes problems. Even if the system is very well documented, some knowledge
  193. is lost every time a new team takes over. Over the years, the system becomes a
  194. patchwork of code from many different authors. It becomes harder and harder
  195. to keep running; eventually, there is no one left who truly understands how
  196. it works.</p>
  197. <p>For your software to keep working well in the long term, it is important to
  198. have your staff learning alongside the external help to retain critical engineering
  199. knowledge in your organisation.</p>
  200. <h2>3 Principles for Good Software Development</h2>
  201. <h4>1. Start as Simple as Possible</h4></p>
  202. <p>Projects that set out to be a “one-stop
  203. shop” for a particular domain are often
  204. doomed. The reasoning seems sensible
  205. enough: What better way to ensure your
  206. app solves people’s problems than by
  207. having it address as many as possible?
  208. After all, this works for physical stores
  209. such as supermarkets. The difference is
  210. that while it is relatively easy to add a
  211. new item for sale once a physical store
  212. is set up, an app with twice as many
  213. features is more than twice as hard to
  214. build and much harder to use.</p>
  215. <p>Building good software requires focus:
  216. starting with the simplest solution that
  217. could solve the problem. A well-made
  218. but simplistic app never has problems
  219. adding necessary features. But a big IT
  220. system that does a lot of things poorly
  221. is usually impossible to simplify and
  222. fix. Even successful “do it all” apps like
  223. WeChat, Grab, and Facebook started
  224. out with very specific functionality and
  225. only expanded after they had secured
  226. their place. Software projects rarely
  227. fail because they are too small; they fail
  228. because they get too big.</p>
  229. <p><hr>
  230. <h5><em>
  231. Software projects rarely fail because they
  232. are too small; they fail because they get too big.
  233. </em></h5>
  234. <hr>
  235. <p>Unfortunately, keeping a project focused
  236. is very hard in practice: just gathering
  237. the requirements from all stakeholders
  238. already creates a huge list of features.</p>
  239. <p></p></p>
  240. <p class="small-text">A Conversation with Li Hongyi (Part 3)<br>
  241. <em>Scroll down for last video</em></p>
  242. <p>One way to manage this bloat is by
  243. using a priority list. Requirements are
  244. all still gathered, but each are tagged
  245. according to whether they are absolutely
  246. critical features, high-value additions,
  247. or nice-to-haves. This creates a much
  248. lower-tension planning process because
  249. features no longer need to be explicitly
  250. excluded. Stakeholders can then more
  251. sanely discuss which features are the
  252. most important, without worrying about
  253. something being left out of the project.
  254. This approach also makes explicit the
  255. trade-offs of having more features.
  256. Stakeholders who want to increase
  257. the priority for a feature have to also
  258. consider what features they are willing
  259. to deprioritise. Teams can start on the
  260. most critical objectives, working their way
  261. down the list as time and resources allow.</p>
  262. <p>We followed a similar process for all
  263. our most successful apps. Form.gov.sg
  264. started out as a manual Outlook Macro
  265. that took us six hours to set up for
  266. our first user but today has processed
  267. about a million public submissions.
  268. Data.gov.sg started out as a direct copy
  269. of an open source project and has since
  270. grown to over 300,000 monthly visits.
  271. Parking.sg had a massive list of almost
  272. 200 possible features that we never
  273. got around to building but still has over
  274. 1.1 million users today. These systems
  275. are well received not in spite of their
  276. simplicity but because of it.</p>
  277. <h4>2. Seek Out Problems and Iterate</h4>
  278. <p>In truth, modern software is so complicated and changes so rapidly that no amount of
  279. planning will eliminate all shortcomings. Like writing a good paper, awkward
  280. early drafts are necessary to get a feel of what the final paper should be. To
  281. build good software, you need to first build bad software, then actively seek out problems to improve on your solution.</p>
  282. <p>This starts with something as simple as talking to the actual people you are trying to help. The goal is to understand the root problem you want to solve and avoid jumping to a solution based just on preconceived biases. When we first started on Parking.sg, our hypothesis was that enforcement officers found it frustrating to have to keep doing the mental calculations regarding paper coupons. However, after spending just one afternoon with an experienced officer, we discovered that
  283. doing these calculations was actually quite simple for someone doing it professionally. That single conversation saved us months of potentially wasted effort and let us refocus our project on helping drivers instead. </p>
  284. <p>Beware of bureaucratic goals masquerading as problem statements. “Drivers feel frustrated when dealing with parking coupons” is a problem. “We need to build an app for drivers as part of our Ministry Family Digitisation Plans” is not. “Users are annoyed at how hard it is to find information on government websites” is a problem. “As part of the Digital Government Blueprint, we need to rebuild our websites to conform to the new design service standards” is not. If our end goal is to make citizens’ lives better, we need to explicitly acknowledge the things that are making their lives worse.</p>
  285. <p>Having a clear problem statement lets you experimentally test the viability of different solutions that are too hard to determine theoretically. Talking to a chatbot may not be any easier than navigating a website, and users may not want to install yet another app on their phones no matter how secure it makes the country. With software, apparently obvious solutions often have fatal flaws that do not show up until they are put to use. The aim is not yet to build the final product, but to first identify these problems as quickly and as cheaply as possible. Non-functional mock-ups to test interface designs. Semi-functional mock-ups to try different features. Prototype code, written hastily, could help garner feedback more quickly. Anything created at this stage should be treated as disposable. The desired output
  286. of this process is not the code written, but a clearer understanding of what the right thing to build is.</p>
  287. <p><hr>
  288. <h5><em>
  289. Beware of bureaucratic goals masquerading as problem statements. If our end goal is to make citizens’ lives better, we need to explicitly acknowledge the things that are making their lives worse.
  290. </em></h5>
  291. <hr>
  292. <p>With a good understanding of the right solution, you can start work on building the actual product. You stop exploring new ideas and narrow down to identifying problems with your particular implementation. Begin with a small number of testers who will quickly spot the obvious bugs that need to be fixed. As problems are addressed, you can increasingly open up to a larger pool who will find more esoteric issues.</p>
  293. <p>Most people only give feedback once. If you start by launching to a large audience, everyone will give you the same obvious feedback and you’ll have nowhere to go from there. Even the best product ideas built by the best engineers will start out with significant issues. The aim is to repeatedly refine the output,
  294. sanding down rough edges until a good product emerges.</p>
  295. <p>Even after all this iteration, after launch is when problems with a product matter
  296. the most. A problem that happens only 0.1% of the time may not get noticed
  297. during testing. But once you have a million users, every day the problem
  298. goes unresolved is a thousand more angry people you have to deal with. You need to fix problems caused by new mobile devices, network outages, or security attacks before they cause
  299. substantial harm to your users. With Parking.sg we built a series of secondary
  300. systems that continuously check the main system for any discrepancies in
  301. payments, duplicate parking sessions, and application crashes. Building up
  302. an “immune system” over time lets you avoid being overwhelmed as new issues
  303. inevitably come up.</p>
  304. <p>Overall, the approach is to use these different feedback loops to efficiently
  305. identify problems. Small feedback loops allow for quick and easy correction
  306. but miss out on broader issues. Large feedback loops catch broader issues but
  307. are slow and expensive. You want to use both, resolving as much as possible with
  308. tight loops while still having wide loops to catch unexpected errors. Building
  309. software is not about avoiding failure; it is about strategically failing as fast
  310. as possible to get the information you need to build something good.</p>
  311. <h4>3. Hire the Best Engineers You Can</h4></p>
  312. <p>The key to having good engineering is having good engineers. Google,
  313. Facebook, Amazon, Netflix, and Microsoft all run a dizzying number of the largest
  314. technology systems in the world, yet, they famously have some of the most
  315. selective interview processes while still competing fiercely to recruit the strongest
  316. candidates. There is a reason that the salaries for even fresh graduates have
  317. gone up so much as these companies have grown, and it is not because they
  318. enjoy giving away money.</p>
  319. <p>Both Steve Jobs and Mark Zuckerberg have said that the best engineers are at
  320. least 10 times more productive than an average engineer. This is not because
  321. good engineers write code 10 times faster. It is because they make better
  322. decisions that save 10 times the work.</p>
  323. <p>A good engineer has a better grasp of
  324. existing software they can reuse, thus
  325. minimising the parts of the system they
  326. have to build from scratch. They have
  327. a better grasp of engineering tools,
  328. automating away most of the routine
  329. aspects of their own job. Automation
  330. also means freeing up humans to work
  331. on solving unexpected errors, which the
  332. best engineers are disproportionately
  333. better at. Good engineers themselves
  334. design systems that are more robust
  335. and easier to understand by others.
  336. This has a multiplier effect, letting their
  337. colleagues build upon their work much
  338. more quickly and reliably. Overall, good
  339. engineers are so much more effective
  340. not because they produce a lot more
  341. code, but because the decisions they
  342. make save you from work you did not
  343. know could be avoided.</p>
  344. <p></p>
  345. <p class="small-text">A Conversation with Li Hongyi (Part 4)</p>
  346. <p>This also means that small teams of the
  347. best engineers can often build things
  348. faster than even very large teams of
  349. average engineers. They make good
  350. use of available open source code and
  351. sophisticated cloud services, and offload
  352. mundane tasks onto automated testing
  353. and other tools, so they can focus on the creative problem-solving aspects of
  354. the job. They rapidly test different ideas
  355. with users by prioritising key features
  356. and cutting out unimportant work. This
  357. is the central thesis of the classic book
  358. “The <em>Mythical Man-Month</em>”<a href="#notes"><sup>1</sup></a>: in general,
  359. adding more software engineers does
  360. not make a project go faster, it only
  361. makes it grow bigger.</p>
  362. <p><hr>
  363. <h5><em>
  364. Building software is not about avoiding failure; it is about strategically failing as fast as possible to get the information you need to build something good.
  365. </em></h5>
  366. <hr>
  367. <p>Smaller teams of good engineers will
  368. also create fewer bugs and security
  369. problems than larger teams of average
  370. engineers. Similar to writing an essay, the
  371. more authors there are, the more coding
  372. styles, assumptions, and quirks there
  373. are to reconcile in the final composite
  374. product, exposing a greater surface area
  375. for potential issues to arise. In contrast,
  376. a system built by a smaller team of
  377. good engineers will be more concise,
  378. coherent, and better understood by
  379. its creators. You cannot have security
  380. without simplicity, and simplicity is rarely
  381. the result of large-scale collaborations.</p>
  382. <p>The more collaborative an engineering
  383. effort, the better the engineers need
  384. to be. Problems in an engineer’s code
  385. affect not just his work but that of his
  386. colleagues as well. In large projects,
  387. bad engineers end up creating more
  388. work for one another, as errors and
  389. poor design choices snowball to create
  390. massive issues. Big projects need to
  391. be built on solid reliable code modules
  392. in an efficient design with very clear
  393. assumptions laid out. The better your
  394. engineers, the bigger your system can
  395. get before it collapses under its own
  396. weight. This is why the most successful
  397. tech companies insist on the best talent
  398. despite their massive size. The hard limit
  399. to system complexity is not the quantity
  400. of engineering effort, but its quality.</p>
  401. <h2>Conclusion</h2>
  402. <p>Good software development starts
  403. with building a clear understanding of
  404. the problem you want to solve. This
  405. lets you test many possible solutions
  406. and converge on a good approach.
  407. Development is accelerated by reusing
  408. the right open source code and cloud
  409. services, granting immediate access
  410. to established software systems and
  411. sophisticated new technology. The
  412. development cycle alternates between
  413. exploration and consolidation, quickly
  414. and messily progressing on new ideas,
  415. then focusing and simplifying to keep
  416. the complexity manageable. As the
  417. project moves forward, it gets tested
  418. with successively larger groups of people
  419. to eliminate increasingly uncommon
  420. problems. Launching is when the real work
  421. ramps up for a good development team:
  422. layers of automated systems should be
  423. built to handle issues quickly and prevent
  424. harm to actual users. Ultimately, while
  425. there are infinite intricacies to software
  426. development, understanding this process
  427. provides a basis to tackle the complexities
  428. of how to build good software.</p></p>
  429. </article>
  430. <hr>
  431. <footer>
  432. <p>
  433. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  434. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-home"></use>
  435. </svg> Accueil</a> •
  436. <a href="/david/log/" title="Accès au flux RSS"><svg class="icon icon-rss2">
  437. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-rss2"></use>
  438. </svg> RSS</a> •
  439. <a href="http://larlet.com" title="Go to my English profile" data-instant><svg class="icon icon-user-tie">
  440. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-user-tie"></use>
  441. </svg> Pro</a> •
  442. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"><svg class="icon icon-mail">
  443. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-mail"></use>
  444. </svg> Email</a> •
  445. <abbr class="nowrap" title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"><svg class="icon icon-hammer2">
  446. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-hammer2"></use>
  447. </svg> Légal</abbr>
  448. </p>
  449. <template id="theme-selector">
  450. <form>
  451. <fieldset>
  452. <legend><svg class="icon icon-brightness-contrast">
  453. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-brightness-contrast"></use>
  454. </svg> Thème</legend>
  455. <label>
  456. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  457. </label>
  458. <label>
  459. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  460. </label>
  461. <label>
  462. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  463. </label>
  464. </fieldset>
  465. </form>
  466. </template>
  467. </footer>
  468. <script>
  469. function loadThemeForm(templateName) {
  470. const themeSelectorTemplate = document.querySelector(templateName)
  471. const form = themeSelectorTemplate.content.firstElementChild
  472. themeSelectorTemplate.replaceWith(form)
  473. form.addEventListener('change', (e) => {
  474. const chosenColorScheme = e.target.value
  475. localStorage.setItem('theme', chosenColorScheme)
  476. toggleTheme(chosenColorScheme)
  477. })
  478. const selectedTheme = localStorage.getItem('theme')
  479. if (selectedTheme && selectedTheme !== 'undefined') {
  480. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  481. }
  482. }
  483. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  484. window.addEventListener('load', () => {
  485. let hasDarkRules = false
  486. for (const styleSheet of Array.from(document.styleSheets)) {
  487. let mediaRules = []
  488. for (const cssRule of styleSheet.cssRules) {
  489. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  490. continue
  491. }
  492. // WARNING: Safari does not have/supports `conditionText`.
  493. if (cssRule.conditionText) {
  494. if (cssRule.conditionText !== prefersColorSchemeDark) {
  495. continue
  496. }
  497. } else {
  498. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  499. continue
  500. }
  501. }
  502. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  503. }
  504. // WARNING: do not try to insert a Rule to a styleSheet you are
  505. // currently iterating on, otherwise the browser will be stuck
  506. // in a infinite loop…
  507. for (const mediaRule of mediaRules) {
  508. styleSheet.insertRule(mediaRule.cssText)
  509. hasDarkRules = true
  510. }
  511. }
  512. if (hasDarkRules) {
  513. loadThemeForm('#theme-selector')
  514. }
  515. })
  516. </script>
  517. </body>
  518. </html>