5 ms·
This reminds me of something I've been trying to teach my junior developers: get good at writing graph manipulation code. Graphs show up in a huge number of cas
by moron4hire 3y ago
This reminds me of something I've been trying to teach my junior developers: get good at writing graph manipulation code. Graphs show up in a huge number of cases (DOM, file systems (especially with symlinks), relational databases, and that's before getting into anything really fun), so graph manipulation is a skill that pays dividends over a career.
- andirk 3y agoObject-oriented programming is kind of a graph too, what with all the inheriting.
- moron4hire 3y agoAll code flows with procedures and branch statements are graphs.
- mvc 3y agoNot just the inheriting. All the links between objects in a program could be considered to be a graph. And of course the syntax tree itself is a different graph.
- riffraff 3y agoWhat kind of graph manipulation are you thinking of? I have the feeling that while graphs are all around us, I have seldom had the need to implement complex operations beyond depth/breadth search, and "harder" things like path finding, cycle detection or topological sort have been much more likely to appear in Advent of Code puzzles than in my professional life. Perhaps it's just a matter of areas of work, tho.