Hacker News new | past | comments | ask | show | jobs | submit login

I'm sorry, but what?



They have been coding for quite a while and are saying that they still look up the syntax for case/switch statements, because they cannot remember it off the top of their head. I am in the exact same boat, except with about a third of their experience coding.


I would definitely ding someone and think less of them if they claimed to be a senior engineer but couldn't remember how to write a switch statement in Java/C++. If you have to look things up you work slower and you don't understand nuances of e.g. what types can be used in switch statements in what language which limits your design skills.


Do cases fall through? Do I need to have them sequential? Can I put additional conditions on it? What if I have a case multiple times?

There is a surprising amount of complexity behind switch/case.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: