bjacks
Joined 11 years ago
Karma
46
Submissions
25
Member since
Apr 6
Joined 11 years ago
Context here:
"I guess I’d underestimated the difficulty of implementing Anything-over-TCP in a sequential language. Just because it’s really really easy in Erlang doesn’t mean to say it’s easy in sequential languages."
For example:
public string Execute(int integer, string str, bool boolean) {
string result;
if (isValidInteger) {
result = validateStringAndBool(str, boolean);
} else {
result = “Error: Integer is too small”;
}
return result;
} private string validateStringAndBool(string str, bool boolean) {
if (!string.IsNullOrWhiteSpace(str)) {
return isValidBoolean(boolean)
} else {
return “Error: String is null or empty”;
}
}
private string isValidBoolean(bool boolean) {
if (boolean) {
return “Success”;
} else {
return “Error: Incorrect Boolean”;
}
}
And yeah, I can't see how this has anything to do with tail call optimization other than a fluffy analogy to stacks - mental and programmatic.Is it the particular things they have worked on at other jobs, i.e. their experience, or is it the way they talk about what they want to build?
I'd be really interested to hear how I can make myself sound like more of a product programmer.
https://www.glassdoor.com/Reviews/GitHub-Reviews-E671945_P3....