@tapani I wrote some #python six years ago. Looked like #haskell back then, looks like #haskell right now.
Still readable thanks to declarative approach https://github.com/manpages/py-ken/blob/master/simpleSolver.py https://github.com/manpages/py-ken/blob/master/validator.py
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.
@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.
@tapani the only thing I would have done differently if I was writing it today, I'd use #parser #combinators for https://github.com/manpages/py-ken/blob/master/parser.py, moved program entry point to `main.py` and removed all the dead WIP code like `solver.py`.