Reading, understanding, and refactoring a TypeScript+React application can be challenging, even if it's small. I will tell you my story of when I jumped on the codebase of a small product to implement some last-minute changes before going live. I had an overall idea of what the product does, and the external team that worked on it received comprehensive documentation of our coding patterns and thorough code reviews. Despite that, being effective since the first day was hard for me. Why? Because four of the most important details that make a codebase immediately readable were missing, which are:
TypeScript' Discriminated Unions instead of optional properties (helpful to describe the domain)
Straightforward JSX code (ease reading and jumping through the code)
Explicit State Machines (describe what the app does from an internal perspective)
Cypress integration tests (tell what the app does from an external perspective)
Apart from a long series of best practices, the listed ones are the most used in WorkWave RouteManager, a 250k-LOC front-end application.
reactjsday 2022 happened in VERONA and Online on 21st October 2022.
Info and details of this edition:
https://www.2022.reactjsday.it
See you next year:
https://www.reactjsday.it
✉️ Subscribe to our newsletter:
http://grusp.org/en/newsletter
Watch past edition videos:
/ grusp
Take part to our initiatives:
https://www.grusp.org/iniziative
Discover our academy:
https://www.grusp.org/academy
Follow us on:
Our official website - https://www.grusp.org
LinkedIn - / grusp
Twitter - / grusp - / _conf
Instagram - / grusp_
Facebook - / grusp
Auf dieser Seite können Sie das Online-Video How do I avoid the next developer reading my code swearing at me | Stefano Magni | reactjsday 2022 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer GrUSP 24 April 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 74 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!