this post was submitted on 22 Aug 2023
1290 points (99.4% liked)

Memes

44094 readers
2930 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 

spoilerFor people that don't know this is not how you use Calipers

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 33 points 10 months ago (10 children)

There's a great test for programmers called FizzBuzz. It's an extremely easy task - print some numbers (maybe 1 to 100), but replace them with Fizz if they're divisible by 3, by Buzz if they're divisible by 5, or by FizzBuzz if they're both.

Many reasonable people consider it way too easy - if you can write this, it doesn't mean that you can write complex programs, or that you know the applicable languages, or that you know anything about the business domain.

But interviewers know that it's a great test because a lot of so-called programmers still fail it.

[–] [email protected] 32 points 10 months ago (4 children)

We did a fizzbuzz interview with a candidate. He passed but I had a weird feeling about it so we asked him to do another one with 7 and 21 and he couldn't do it even with his old code right there

[–] [email protected] 5 points 10 months ago (1 children)

It's slightly different because all numbers divisible by 21 are also divisible by 7, so you would get all Fizz and FizzBuzz but no Buzz. So the question is, should you even be checking for Buzz, or should you make your code more efficient by eliminating those lines?

[–] [email protected] 1 points 10 months ago

I think they meant 3/7/21 instead of the standard 3/5/15.

load more comments (2 replies)
load more comments (7 replies)