4 ms·
Here's an interesting thought on your "gotcha" - I'm 57 years old, been programming as a career for over 30 years, a lot of languages and I have no idea what th
by bdavisx 2y ago
Here's an interesting thought on your "gotcha" - I'm 57 years old, been programming as a career for over 30 years, a lot of languages and I have no idea what the difference is.
- Clubber 2y agoA function returns a value. https://stackoverflow.com/questions/721090/what-is-the-difference-between-a-function-and-a-procedure https://stackoverflow.com/questions/721090/what-is-the-diffe...
- aleph_minus_one 2y ago> A function returns a value ... in Pascal/Delphi.
- Clubber 2y agoYup, it was for a Delphi job in 1998.
- vips7L 2y agoIsn't this something the compiler is going to enforce anyway? Why does it matter? If that's the only difference it's kind of inconsequential isn't it?
- Clubber 2y agoIt's a question to filter out people who don't know a lick of Delphi for a position where the person was coding Delphi. It's like level 2 after the hello world chapter. It's easier than asking a database developer the difference between a query and a view. It's a bonehead simple question that 70% of applicants couldn't answer. You would be surprised how many bad applicants interviewers get. It's only gotten worse over the last 20 years.
- dennis_jeeves2 2y agoI have no idea either. I can easily look it up though. You can often tell an inexperienced interviewer from the extremely domain specific question they ask which _they_ are familiar with.
- Clubber 2y ago>You can often tell an inexperienced interviewer from the extremely domain specific question they ask which _they_ are familiar with. Lol a bit touchy aren't we? Like I said, it's not really relevant in today's languages. It was for a Delphi/Pascal position. If you do any type of database code (like T-SQL), you would also know it. If your experience is mainly in C type languages, everything is a function so it doesn't apply. If you hired a guy for a Delphi position who didn't know the difference between a function and a procedure, you hired the wrong guy. procedure Hello; begin ShowMessage ('Hello world!'); end; function Double (Value: Integer) : Integer; begin Double := Value * 2; end; Function or procedure is defined in every subroutine. It's a very basic question for Delphi, like what's the difference between an integer and a string.
- dennis_jeeves2 2y agoI think you are missing my point. Words like functions/procedures tend to have different connotations across languages and once one crosses one's 15th language, and each having some 20 different keywords, it become difficult to remember what the exact connotation of a word is, in a specific language/framework. This is the most likely situation of the guy whose post I responded to. The exception to the rule is, if you have been working quite a bit _recently_ on a specific language. You are presumably talking about this situation.
- dennis_jeeves2 2y ago>Lol a bit touchy aren't we? No. I just looked up other responses to your post. It's obvious you got exposed as being inexperienced (or an idiot), while posing to know the definitive with your "gotcha". Being inexperienced (or ignorant) is not a problem, but being cocky is.
- deleted 2y ago[deleted]
- ttyprintk 2y agoIt’s ok to say that it’s never professionally mattered. No one has ever been paid to know that. “Are side effects a bad pattern?” Lotsa people have needed to know that on day one.
- michaelt 2y agoIf I'm applying for a Java position and I claim to have Java experience on my resume, it's perfectly valid for them to ask me the difference between an int, an Integer, and a BigInteger. But it's certainly not a universal question applicable to all programming languages. Likewise, Clubber says in their post that their 'gotcha' question doesn't apply to most languages.