Forum Overview
::
Still Life
::
Re: A poll for programmers
[quote name="E. L. Koba"][quote name="Rafiki"]Suppose as part of the interview process you’re given a programming assignment to see how well you write code. Suppose you’re tasked with writing a custom string class and you’re asked to implement a few methods: indexof, containscharacter, insert. Suppose you’re also explicitly told that you’re not allowed to use the native string type as your internal storage, which would naturally lead to using a char[]. Is it reasonable to assume you’re expected to implement those methods working against your character array, or am I wrong for thinking you’re retarded if you just do return(charArray.ToString().indexof(charToFind))? Additional info: you’re given several days to complete this.[/quote] This seems like a perfectly reasonable way to screen out people who for whom programming is mostly "keep trying different things until there are no more red squiggly lines in intellij" It's possible that the term "as your internal storage" could be throwing people off though, if that's the exact wording. Maybe re-doing the problem as an array of some arbitrary objects could reduce confusion?[/quote]