3 ms·
I find that a lot of my programming problems break down to a few of the same categories: State manipulation Data introspection Data formats Concurrent operatio
by chipsy 17y ago
I find that a lot of my programming problems break down to a few of the same categories:
State manipulation
Data introspection
Data formats
Concurrent operations
Basically, things are hunky-dory so long as I have a simple data structure that every part of my program can use in the exact same way without destroying performance or entangling its operations with the rest of the program's state. It almost never quite works out like that for a non-trivial program. Hence I end up writing more complex data structures that can generate appropriate views and manipulations of data, state machines to formalize the order of operations and the resource management, and DSLs to generate functionality from data rather than repetitive code.
I think a big improvement would result just from building a convenient state machine syntax into the language.