3 ms·
Think of programming code as communication to your future self and colleagues. Then we need less rules mindset, and more empathic one.
by loopz 7y ago
Think of programming code as communication to your future self and colleagues. Then we need less rules mindset, and more empathic one.
- notduncansmith 7y agoThis is probably the best advice I’ve seen in this thread. Honestly, the pain of prototyping on bad code makes me try to write good code as early as I can in the process, to help my future self refine the code later (be it 10 minutes or 10 months “later”). I usually have a gut reaction to whether I like or dislike code, then try to identify why I have that feeling, and it’s usually based on how accurately code represents its own intent and purpose. When code does something besides what its name implies, I feel a tiny bit betrayed, and (if I have the time) I try to help it communicate better. This can be a module, a function, or even a variable.