Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
StilesCrisis
3 days ago
|
parent
|
context
|
favorite
| on:
The worst job interview I ever had
Why? Unless it's an extraordinarily hot code path, it doesn't matter. A regex once compiled will be quite efficient.
help
gspetr
3 days ago
|
next
[–]
It's simple, unless you're given a specific broader context (like we have an enterprise customer data pruning system that needs to handle a broad range of corner cases) then you must not resort to overengineering
this
early in an interview.
reply
suttontom
3 days ago
|
prev
|
next
[–]
This is a good example of being bad at writing code.
reply
Chris2048
3 days ago
|
prev
|
next
[–]
And an extra import. also, it sounds like they where looking specifically for knowledge of built-in operators.
reply
JCTheDenthog
3 days ago
|
prev
[–]
You have a problem, so you try to solve it with a regex. You now have two problems.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: