01 PROBLEM
Scaffolding Data Structures and Algorithms (DSA) problems manually is tedious and prone to boilerplate errors. The challenge was building an automated solution to streamline test-driven coding practices.
METRICS
Environment
Node.js
Language
TypeScript
Testing
Jest
02 RESEARCH
Evaluated various CLI scaffolding tools and code generators to understand standard conventions for custom types and boilerplate test suites.
03 ARCHITECTURE
+-----------------+
| CLI Command |
+-------+---------+
|
v
+-------+---------+ +-----------------+
| AST Generator +------->| Types & Boiler |
| (TypeScript) | +-----------------+
+-------+---------+
|
v
+-------+---------+
| Test Runner |
| (Jest) |
+-----------------+
04 CHALLENGES
Generating strongly-typed boilerplate structures dynamically required a deep understanding of standard problem signatures and test suites.
05 SOLUTION
Built a robust TypeScript generator to scaffold DSA problems with custom types and automated test suites. Automated execution and problem creation using Node.js.
06 LEARNINGS
- >CLI tools must provide instant feedback and sensible defaults.
- >Test-driven development becomes frictionless when boilerplate is abstracted away.