You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lol, yup :) I think we can have one function to handle each state and turn
the long if-else clauses into a switch-case statement calling a proper
function based on the current state.
On Sunday, October 2, 2016, Supasate Choochaisri [email protected]
wrote:
Just read youpin.js. The function is so scarily long and hard to do unit
test. Is is possible to break it into smaller functions? @tvirot https://github.com/tvirot
Here is my idea. We can separate the logics into STATE and put it in its own file under states directory. For each state, we might have something like this
No description provided.
The text was updated successfully, but these errors were encountered: