9 ms·
> It mentions writing down in the notebook before writing code, but I can't test my notes, I can't really send my notes for code review. I think generally it'
by rtpg 8mo ago
> It mentions writing down in the notebook before writing code, but I can't test my notes, I can't really send my notes for code review.
I think generally it's more about sketching the high level structure of the code. I will routinely write things like :
documents = ...
by_client = documents.group_by(client)
for client, doc_set in by_client:
for doc in doc_set: csv.write(doc)
Not at all following the actual APIs I use, but I can fill in the blanks when getting the code in place.
The above is very simple, of course, usually I'm working through something where I just want to play through what pieces of data I might or might be missing
- theshrike79 8mo agoI've tried that, but my brain is just going "why are you writing about doing the thing instead of, you know, DOING THE THING"? I vastly prefer just making a working skeleton and filling that with actual code as I progress.
- rtpg 8mo agoShrug, to be honest if you don't understand the value of sketching out certain problems it's probably because you're not working on anything particularly difficult.
- theshrike79 8mo agoNah, sketching is fine. Sometimes I draw boxes and lines between them to clarify things, mostly to others. It's all clear in my head. I need a fast feedback loop for the way my brain works, spending too much time on not-working will just confuse me further.