3 ms·
This code is hilarious. He took the switch statement out of one function and then put it in another. The only difference is he didn’t show the new function he p
by pech0rin 5y ago
This code is hilarious. He took the switch statement out of one function and then put it in another. The only difference is he didn’t show the new function he put it in.
- marcosdumay 5y agoVery likely, he took the switch out of a central function that's only written once and placed it into a few of them scattered through the code. With time, somebody will probably encapsulate his code in a flexible "createUser" function on an upper level, so the switches can all come back into a single place.