4 ms·
So here is a question for my fellow programmers -- how do you practice writing better code deliberately?
by slackerIII 16y ago
So here is a question for my fellow programmers -- how do you practice writing better code deliberately?
- deleted 16y ago[deleted]
- chrismanfrank 16y agoTRY to write better code, even when it takes you more time that hacking something together. Build stuff for fun sometimes because play is important. Realize that building stuff you already know how to do is not really "practice".
- abecedarius 16y agoI used to benefit from a compulsion to come back to my programs repeatedly, asking "How can this be better?" -- taking it a long way past the point that made sense for that program in isolation. Trying never to be satisfied with an ugly program. Picking projects with something to teach me. It can particularly help to pick a problem that a master has tackled, and wait till you've written your own before analyzing their solution. I'd like to get better at deciding what to write, now.