3 ms·
While it's good to get up-to-date, I don't think anyone should go re-write code or radically change their programming style to use generics. There's no need to
by vlunkr 5y ago
While it's good to get up-to-date, I don't think anyone should go re-write code or radically change their programming style to use generics. There's no need to over-complicate things. Anywhere that you're either copy-pasting a bunch, or using code generation might be a good fit for generics.
- jcadam 5y agoJust you try not being up-to-date in a coding interview.
- saagarjha 5y agoI’ve found out that it’s possible to be too up-to-date for some coding interviews.
- dilyevsky 5y agoLol so true, go a little overboard with fancy language features and people think you’re a cowboy coder
- catillac 5y agoI was in an interview not long after format strings in Python came out (for example, print(f”Hello, {name}”) rather than print(“Hello, %s”, name)) and the interviewer thought I was confusing languages and features, asserted this fact strongly, and was pretty surprised when it worked, but I think overall I lost points because the interviewer lost face. C’est la vie.
- vlunkr 5y agoAs a very casual Python user, I didn't know about that! that's great.
- _whiteCaps_ 5y agoIt's so great. I especially like f"{foo=}" for debugging.
- aliswe 5y agoabout 10 years ago I had a discussion with an interviewer (he was actually consultant manager) who said "c# and Java are exactly the same in terms of runtime architecture" which I very much disagreed with when speaking strictly, which wasn't appreciated.
- killingtime74 5y agoI’ve only ever been offered to pick my own language in interviews (so I always pick Python). Is this not your experience?