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
Nesta página do site você pode assistir ao vídeo on-line How do I avoid the next developer reading my code swearing at me | Stefano Magni | reactjsday 2022 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário GrUSP 24 Abril 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 74 vezes e gostou 3 espectadores. Boa visualização!