2 ms·
There's a time and a place for hackathon-style coding. But I find that I take a similar approach to Chen. Maybe not quite so rigorous. - Start with a console
by RajT88 3y ago
There's a time and a place for hackathon-style coding.
But I find that I take a similar approach to Chen. Maybe not quite so rigorous.
- Start with a console app (actually I always keep a console app in the solution for isolating bits of code I want to debug)
- Scaffold the part where said code needs to go
- Once the code from step 1 is ready, stick it in the scaffold and debug until it looks good
- Work on further tests (load test, code coverage, variety of inputs)
- pbourke 3y ago> Once the code from step 1 is ready, stick it in the scaffold and debug until it looks good One thing that has stuck with me from Steve McConnell’s “Code Complete” is his use of PDL (“Program Description Language” - I think). The general idea is to write everything out in pseudo code first (at the function or small group of functions level - _not_ the whole program or component). My PDL is basically a slightly more hand wavy dialect of Python.
- RajT88 3y agoI do something similar. Sometimes in plain English - it just helps me think through the problem I am trying to solve. Sometimes I use diagrams instead. I omitted this step in my prior post, which only described the coding aspect. But don't get me wrong: I'm not a great programmer. =)