I joined a struggling team in January
I joined a struggling team in January.
Then:
π« No tests
π« Few lint rules
π« No CI config
π« Over 1,300 βanyβ in TypeScript
π« 1,000βs of lines of mapping code
π« App frequently crashed
Now:
β Many @playwrightweb tests
β ESLint enforces coding standards
β Robust CI (builds, tests, lints, etc)
β Eliminated 100βs of "any"s - Validating responses via Zod exposed many bugs
β Eliminated all mapping code by returning camelCase JSON from APIs
β The app is stable
Huge improvement. π
@playwrightweb More wins:
Then:
π« Bloated HTTP request code via useEffect and redundant fetch calls,
π« No HTTP response caching
π« No error handling
Now:
β Using react-query wrapped in custom hooks for elegant reuse
β Caching HTTP requests consistently via react-query
β Using granularβ¦