3 ms·
It's an ok test, probably some of those are more "googlable" than just having it in memory. (I find funny the "love for metaclasses" that people consider as "a
by raverbashing 8y ago
It's an ok test, probably some of those are more "googlable" than just having it in memory.
(I find funny the "love for metaclasses" that people consider as "advanced Python" - it has its use cases, but it is a bit restricted. Also DO NOT USE ABC - it's one of those "let's take this Java thing and try to fit it" but it manages to be an even weirder transplant than logging)
> Q: Place the following functions below in order of their efficiency.
This is the test where a good amount of candidates will do well on the coding part but will completely miss the math considerations. Performance will vary a lot depending on the size and distribution of numbers (and none of them consider a trivial optimization that's possible)
- pytester 8y agoIME "knows what metaclasses are" is intermediate knowledge while "knowing in which very rare situations use them and when to avoid them at all costs" is more advanced knowledge. I've seen it enough that I almost consider it a rite of passage for intermediate developers to "discover" an advanced feature like metaclasses and then use them inappropriately to prove their chops, creating an almighty mess in the process.
- yellowbuilding 8y ago>DO NOT USE ABC I get ABC, and can theoretically imagine it being useful for somebody somewhere, but cannot honestly imagine where that is and that it would not also be overkill. And you can usually just do the same thing some other way. My question is: Why is it good in Java?