by SleepyMyroslav · 4y ago · 0 comments
>ASCII: it’s okay to only support ASCII
>Threading: it should run in a single thread on a single machine
>Stdlib: only use the language’s standard library functions.
This is truly 1978 all over again. No flame graphs, no hardware counters, no bottleneck analysis. Using these 'optimizations' for job interviews is questionable at best.
If you look further at the count-words article you linked, I do have profiling graphs and bottleneck analysis.
Note that the interview questions I ask are open-ended, not trying to trick or trap people into giving the "wrong" answer. I like to have more of a discussion to see how they think about the problem, what data structures they'd use, how they'd profile, and so on.
I come from gamedev low level coding and performance analysis so I understand that my point of view is not normal xD