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

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.


Just you try not being up-to-date in a coding interview.


I’ve found out that it’s possible to be too up-to-date for some coding interviews.


Lol so true, go a little overboard with fancy language features and people think you’re a cowboy coder


I 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.


As a very casual Python user, I didn't know about that! that's great.


It's so great.

I especially like f"{foo=}" for debugging.


about 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.


I’ve only ever been offered to pick my own language in interviews (so I always pick Python). Is this not your experience?




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

Search: