Fizzbuzz and programmer competence
Moderator: Moderators
Re: Fizzbuzz and programmer competence
There's nothing quite like bogosort.
Re: Fizzbuzz and programmer competence
I almost spit out my tea (literally, I was just drinking tea when I saw randomSort).
Re: Fizzbuzz and programmer competence
I voiced my opinion about this in a 6502.org forum post, so I'll just refer to it.But optimization without profiling first is itself a bad practice.
Besides, not using modulo for solving fizzbuzz is not only an optimisation, but also common sense. If the goal of the interviewer would be to see the candidate's familiarity with modulo, he won't be seeing it from me, because I am am not likely modulo to solve this kind of problem.
Yeah, not only this is more useful to the company so they actually hire the people who are the most suited for the job, but it's also more useful for the unhired people, so that they have a better why they were rejected, and what they should do to improve and learn for next job positions. But for some reason, in capitalism economy, companies just tend to be a$$holes and don't take seriously their roles of feeding the population anymore, since all other alternatives to capitalism around the world are virtually extinct and there is no need to promote it anymore. (Communist china (and other Asian satellite countries) is no longer a communist country, it's just a huge slave reserve for capitalist countries)When it comes to interviewing candidates, ask them real-world questions, i.e. practical things, not hypothetical.
Re: Fizzbuzz and programmer competence
I agree with your post on 6502.org. But "profiling first" can be taken in a broad sense. For example, say you tried an algorithm or data structure in a previous project and found it too slow, and then you decided against using it in a similar circumstance in a later project. In that case, you "profiled first".
- Light-Dark
- Posts: 54
- Joined: Sun Dec 08, 2013 9:53 pm
- Location: Canada
Re: Fizzbuzz and programmer competence
And one day the western workers and the exploited Chinese and other exploited peoples will be pissed off with their industrial masters apathy and disconnect and hopefully stage a proper revolution in their now educated and now industrialized nation. The other socialist revolutions arguably dilapidated because they took place in then underdeveloped and largely agrarian nations where the peasantry wasn't well educated and the urban working class wasn't very large like it was in the slums of Europe where Socialism originated from and the leaders of the respective revolutions had therefore little faith in the masses and never, in at least Lenin's case, released power back to the workers councils (or Soviets). Sorry for derailingBregalad wrote: But for some reason, in capitalism economy, companies just tend to be a$$holes and don't take seriously their roles of feeding the population anymore, since all other alternatives to capitalism around the world are virtually extinct and there is no need to promote it anymore. (Communist china (and other Asian satellite countries) is no longer a communist country, it's just a huge slave reserve for capitalist countries)

-
- Posts: 2980
- Joined: Wed May 19, 2010 6:12 pm
Re: Fizzbuzz and programmer competence
Here is a better one-linear.Bregalad wrote:I voiced my opinion about this in a 6502.org forum post, so I'll just refer to it.But optimization without profiling first is itself a bad practice.
Besides, not using modulo for solving fizzbuzz is not only an optimisation, but also common sense. If the goal of the interviewer would be to see the candidate's familiarity with modulo, he won't be seeing it from me, because I am am not likely modulo to solve this kind of problem.
Avoid small optimizations, say, 97% of the time. If your program runs too slow, just redo 97% of it.