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

It's hard to reason about without an actual real-life use case, but the lookup thing he's doing looks extremely convoluted to me.


Right, I'd be curious to know a lot more details of the real-life use case that inspired that. My gut feeling says that there's maybe a state machine of some sort which could possibly be split into a sequence or maybe hierarchy of smaller components, but it's hard to tell specifically what the alternative might be without more details on why they thought a lookup table might be useful.


Once you start using Context everything has to become a hook to be able to consume it, I bet that’s what’s goin on there.


Agree, I don’t know what is going on there but it sure smells like something you shouldn’t need to do.




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

Search: