Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Specialized parsers. Encoding and decoding tasks. Complex computation is often isolated to help with peer review. Pattern matching routines.

Also, constructors with many validation steps that are compiler constrained to their local scope. That seems common.



Aren't specialized lexer/parsers finite state machines? As are encoder/decoders?

OK fir complex computation, I left the world of mathematics 7 years ago, and I wasn't at the edge on that, I trust you, but to be clear, all your examples scream 'FSM' to me. If you have a pattern matching routine of 50+ lines that isn't a finite state machine, you're doing something wrong imho, and should consider changing abstraction (I'm not a big OO guy, but maybe use dynamic dispatch?)


Yeah any routine that is not Turing complete is a FSM. Most things are FSM, so it’s not a useful distinction




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: