News for hackers. Stuff that matters.
Re:Tricks to start working despite not feeling like it by klik99 on Tuesday January 21, 2020 @06:01AM (#22105850)
Knuth suggests, in TAOCP, that the best way to write a program is to write it once, scrap it completely and rewrite from scratch. Very much in line with spending an entire semester making one perfect program vs spending a semester writing and rewriting new programs from scratch.
Re:Tricks to start working despite not feeling like it by reubenmorais on Tuesday January 21, 2020 @09:26AM (#22107106)
I used this extensively for code assignments in university, but for a different reason. We had to do most things in C, which can be very painful for prototyping and experimenting with new approaches. So I would solve the problem first in Python, try different approaches, and then after I was happy with the solution I'd write it again in C. Saved me a lot of time in the end.
Re:Tricks to start working despite not feeling like it by rimliu on Tuesday January 21, 2020 @07:11AM (#22106211)
First pass: you figure out which problems need to be solved. Second pass: you already "what" figured out, now you can focus on how to do it nicely.
Re:Tricks to start working despite not feeling like it by mbrodersen on Saturday January 25, 2020 @07:13PM (#22149510)
A better approach in my experience is to grow the whole system from a “skeleton” implementation, refactoring the architecture and code as your understanding grows. With the key use cases being your guide.