Just viewed some Python code I wrote in 2018.

Holy shit it looked horrible! But you know what, it worked and that was important back then when I started.

These days I pay even too much attention to the hierarchy and prettiness.

#python #developer #programming #programmer

Follow

@tapani I wrote some six years ago. Looked like back then, looks like right now.

Still readable thanks to declarative approach github.com/manpages/py-ken/blo github.com/manpages/py-ken/blo

NB I didn't care about hierarchy and prettiness then, and I care even less now.

All that matters is readability, discoverability, and the ability to navigate quickly. Arguably, excessive hierarchy dampens both navigation and discoverability.

@tapani the only thing I would have done differently if I was writing it today, I'd use for github.com/manpages/py-ken/blo, moved program entry point to `main.py` and removed all the dead WIP code like `solver.py`.

@jonn That's looking really neat.

Prettiness equals readability for me. That's what matters the most, being able to come back to it and understand instantly what's happening and where.

When I started I understood none of this, all that mattered was that the program did magic. Heck, I didn't use functions because the programs were so dead simple.

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.