Was listening to a talk by a FB eng manager and she mentioned that in one of the interviews she was conducting, a PhD guy used a “goto” statement. Which turns out was a big red flag and they rejected the candidate. Coming from a kernel/systems background I find that incredibly wrong. What do guys think?
Full of Gotos in Knuth's books. Not surprised he's not at FB.
I used a goto recently in a white board to handle the error path on a mem location fail. The questioner wasn't unhappy or didn't even battle an eyelid as she was a kernel programmer too. By the war good to run into the people of the same kind here :)
Gotos look nice and improves readability when it is used to separate good path and error paths. And there are other good cases too
You have no idea of what readability actually is.
https://koblents.com/Ches/Links/Month-Mar-2013/20-Using-Goto-in-Linux-Kernel-Code/
Go-to is really very similar to a raise statement... But more explicit. I don't think gotos are inherently bad, but they can be a sign of someone who isn't familiar with common coding conventions. Other flow control method are usually more popular, like for loops or run time polymorphism.
It would look annoying readability pov to a see function with a bunch of assorted parameters which just does clean up. Of course there are cases where it would also look readable. It all depends on the context.
Most of anti goto people have probably not read good written Linux Kernel source code. They probably just read gotos are evil. Which they are of course for valid reasons . But being an absolutist and getting rejecting someone in an interview is incredible indeed. Gotos look better again from readability pov than while loops sometimes for retryin an ops code. It all depends on the context
This engineering manager is an idiot. In my code gotos are very rare, but sometimes they are preferred to other alternatives - for instance, to break out of nested loops.
Im pretty sure rejecting a candidate based on using goto statement is just a cover up for the actual reason, its a pretty dull one imo
They used to reject people for their skin color not so long ago. Sometimes it's just about othering other people, there's no rationale.
Tech Industry
2d
2237
The two-pizza team rule is racist
World Conflicts
Yesterday
664
Israeli precision-guided munition likely killed group of children playing foosball in Gaza, weapons experts say
Personal Finance
Yesterday
489
Biden wants to raise capital gains tax to 40%
World Conflicts
Yesterday
502
Why I Find Free Palestine Inspiring
World Conflicts
Yesterday
572
Is "From the River to the Sea" So Wrong?
Go-to serves no purpose except decrease code readability and maintainability