Advocate & Dog lover! CTO at npm, Inc. Contributor to OpenJS Foundation, Founder at Tech Masters Community, Mentor at NodeSchool Toronto, Organizer at Functions Conf, Host of Hacker:Bio Podcast.
thing well. To do a new job, build afresh rather than complicate old programs by adding new features. 2. Expect the output of every program to become the input to another, as yet unknown, program. Don’t clutter output with extraneous information. Avoid stringently columnar or binary input formats. Don’t insist on interactive input. 3. Design and build software, even operating systems, to be tried early, ideally within weeks. Don’t hesitate to throw away the clumsy parts and rebuild them. 4. Use tools in preference to unskilled help to lighten a programming task, even if you have to detour to build the tools and expect to throw some of them out after you’ve finished using them.
about the relationship in a bit. Modular Architecture != Microservices The methods in which you choose to deploy and manage your software do not have to be defined by how you write and manage your code. (Modular Monoliths are a thing!) Modular Architecture != Modular Software Don’t shift the burden of managing all the software components to your users (or your user’s clients) Be Modular like Unix != Become a Unix/Linux guru! Modular patterns can apply to all and any development environment, in-fact many of the patterns I’m identifying evolved through the web platform.
one thing well. 2. The output of every module to become the input to another. 3. Throw away the clumsy parts and rebuild them. 4. Use tools to lighten a programming task. 5. Modules should be easily maintained and repurposed by developers other than its creators.
clumsy parts and rebuild them" #1 apps as packages • No more /app or /src directories • Use package.json , composer.json , Gemfile , requirements.txt , etc … • Describe your environment with with Dockerfile and docker-compose.yml • README is (mainly) about Environment & Deployment • Maybe an index.js
developers other than its creators" • Soon after it’s written (if not before) you lose track of what your code actually does! • Things that are documentation: ◦ Meeting minutes ◦ Bug reports ◦ User Stories ◦ Pull Request comments ◦ Package Versions! • Things that are NOT Documentation: ◦ Slack chats ◦ Discussions / Decisions on video calls ◦ Your code!
Coverage "Modules should be easily maintained and repurposed by developers other than its creators" • Testable code == maintainable code • Full coverage isn’t about writing code with more tests, it’s about writing code that is more testable! • Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live! • Forces you to create a better experience for the next person
programming task" • Bots are here to help make your job easier (not take it away) • Bots can: ◦ Check for bugs ◦ Open Pull Requests ◦ Update Dependencies ◦ Refactor your code ◦ Merge Pull Requests ◦ Thank each other for doing all the hard work! ◦ … and more!