top | item 6308923

(no title)

coolrhymes | 12 years ago

I don't agree 100% with the author on not asking them algorithmic questions. Its a process on how they go about solving it rather than just the outcome. Maybe for the web developer position, you might not need such type of questions, but for a full stack developer the answer is unequivocally yes.

I made a mistake by hiring someone who knew django [who originally wrote plugins in WP] and the coding was just plain horrible. One such example.

`for foo in queryset: foo.prop = 'i m bar' foo.save() ` Simple things like this, where a good engineer would know because of O(n) nature of the code, the so called programmer didn't.

And then there are guys who fork every possible repo, have blogs about how-tos, etc but really can't code for nuts.

discuss

order

philangist|12 years ago

Coding noob here. Can someone explain the problem with the

`for foo in queryset`

implementation? Is it that for loops are inherently inefficient? What would be a better alternative?

victorf|12 years ago

I don't see a problem with an O(n) algorithm to set some property on n objects.