r/programming • • Sep 22 '20

Google engineer breaks down the problems he uses when doing technical interviews. Lots of advice on algorithms and programming.

https://alexgolec.dev/google-interview-questions-deconstructed-the-knights-dialer/
6.4k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

39

u/civildisobedient Sep 22 '20

It's just a hazing ritual some "senior" (5 years experience does not make you a senior in my book) devs use to showcase how smart they think they are.

A good senior developer understands that the best solution isn't necessarily the most performant solution because there are often more important business considerations (time-to-market, system complexity, code maintainability, etc.) than raw execution speed.

30

u/ThisIsMyCouchAccount Sep 22 '20

the best solution isn't necessarily the most performant solution

"Reddit" has shit on me before for sharing this attitude but I stand by it.

Everything is a feature and there are no defaults.

Security, performance, maintainability, expandability....everything.

Because everything takes time and time takes away from whatever the budget is. The budget could be money or it could be the amount time before a deadline.

5

u/PBRmy Sep 23 '20

There IS such a thing as "good enough".