Re:Leveling Up in Job Interviews for Software Engineers (2022)
by badtension on Saturday July 01, 2023 @11:45AM
(#36551324)
Static variable sure but there are many other examples, like returning a C fixed-size array from a function. I had this question asked and they specifically insisted on being compliant with the standards and not using an out-argument. This is a ridiculous question.
[ Parent
| on HN ]
Re:Leveling Up in Job Interviews for Software Engineers (2022)
by _a_a_a_ on Saturday July 01, 2023 @12:17PM
(#36551721)
> they specifically insisted on being compliant with the standards
that's wrong?
Re:Leveling Up in Job Interviews for Software Engineers (2022)
by badtension on Saturday July 01, 2023 @12:57PM
(#36552111)
No, but this is a very niche thing to know and if I remember correctly gcc has a widely used specific extension for that which would not be accepted in that case.
Re:Leveling Up in Job Interviews for Software Engineers (2022)
by mhss on Sunday July 02, 2023 @12:36PM
(#36563064)
Being pedantic about standards and expecting people to recite them perfectly as a way to assess skill or seniority is what is wrong. Even when you are implementing a 'standard' there's room for robustness principles (liberal in what you accept, strict with what you send) that should be weighted instead of blindly following a 'standard'.
Re:Leveling Up in Job Interviews for Software Engineers (2022)
by publicmail on Saturday July 01, 2023 @02:23PM
(#36553330)
Agreed. I’ve been doing C development for the last 10 years and I’ve never seen that. I would have put it inside a struct and returned that.
I hate those types of trick questions.