Click here to Skip to main content
15,892,005 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
QuestionRe: TopTal, Codility, and skill testing Pin
ZurdoDev25-Oct-16 5:32
professionalZurdoDev25-Oct-16 5:32 
AnswerRe: TopTal, Codility, and skill testing Pin
Marc Clifton25-Oct-16 5:47
mvaMarc Clifton25-Oct-16 5:47 
AnswerRe: TopTal, Codility, and skill testing Pin
Gerry Schmitz26-Oct-16 4:52
mveGerry Schmitz26-Oct-16 4:52 
GeneralRe: TopTal, Codility, and skill testing Pin
Tim Carmichael25-Oct-16 5:55
Tim Carmichael25-Oct-16 5:55 
GeneralRe: TopTal, Codility, and skill testing Pin
Slacker00725-Oct-16 5:58
professionalSlacker00725-Oct-16 5:58 
GeneralRe: TopTal, Codility, and skill testing Pin
Marc Clifton25-Oct-16 7:14
mvaMarc Clifton25-Oct-16 7:14 
GeneralRe: TopTal, Codility, and skill testing Pin
F-ES Sitecore25-Oct-16 6:03
professionalF-ES Sitecore25-Oct-16 6:03 
GeneralRe: TopTal, Codility, and skill testing Pin
Marc Clifton25-Oct-16 7:17
mvaMarc Clifton25-Oct-16 7:17 
F-ES Sitecore wrote:
When it comes to user input you shouldn't rely on exceptions to check if the inputs are valid and you shouldn't throw exceptions when the input is invalid, you should handle these things through other means.


Of course, but this wasn't user input, it more like "are the parameters meeting the contract of the function" where I expect the parameters to be prevalidated.

But the telling point was, why they specified things like the array would be between 0 and 100,000 (inclusive) and the numbers would be between 1 and 100,000 (inclusive) they didn't say what the return value should be if the inputs were wrong!

Ultimately, I have no real beef with a test like that as long as there is a follow up discussion. Which there wasn't.

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: TopTal, Codility, and skill testing Pin
Kevin Marois25-Oct-16 7:44
professionalKevin Marois25-Oct-16 7:44 
GeneralRe: TopTal, Codility, and skill testing Pin
Stephen Gonzalez25-Oct-16 8:08
Stephen Gonzalez25-Oct-16 8:08 
GeneralRe: TopTal, Codility, and skill testing Pin
Marc Clifton25-Oct-16 8:21
mvaMarc Clifton25-Oct-16 8:21 
GeneralRe: TopTal, Codility, and skill testing Pin
Stephen Gonzalez25-Oct-16 8:27
Stephen Gonzalez25-Oct-16 8:27 
JokeRe: TopTal, Codility, and skill testing Pin
n.podbielski25-Oct-16 8:19
n.podbielski25-Oct-16 8:19 
GeneralRe: TopTal, Codility, and skill testing Pin
Corporal Agarn25-Oct-16 9:27
professionalCorporal Agarn25-Oct-16 9:27 
GeneralRe: TopTal, Codility, and skill testing Pin
Sander Rossel25-Oct-16 10:47
professionalSander Rossel25-Oct-16 10:47 
GeneralRe: TopTal, Codility, and skill testing Pin
Rajesh R Subramanian25-Oct-16 12:02
professionalRajesh R Subramanian25-Oct-16 12:02 
GeneralRe: TopTal, Codility, and skill testing Pin
charlieg25-Oct-16 16:36
charlieg25-Oct-16 16:36 
GeneralRe: TopTal, Codility, and skill testing Pin
mbb0125-Oct-16 23:08
mbb0125-Oct-16 23:08 
GeneralRe: TopTal, Codility, and skill testing Pin
Hedzer26-Oct-16 3:46
Hedzer26-Oct-16 3:46 
GeneralRe: TopTal, Codility, and skill testing Pin
pkmode26-Oct-16 0:39
pkmode26-Oct-16 0:39 
GeneralRe: TopTal, Codility, and skill testing Pin
Michael Varey26-Oct-16 3:04
Michael Varey26-Oct-16 3:04 
GeneralRe: TopTal, Codility, and skill testing Pin
Nish Nishant26-Oct-16 11:22
sitebuilderNish Nishant26-Oct-16 11:22 
GeneralRe: TopTal, Codility, and skill testing Pin
Robert g Blair31-Oct-16 13:23
Robert g Blair31-Oct-16 13:23 
Generalperbot Pin
Marc Clifton25-Oct-16 5:03
mvaMarc Clifton25-Oct-16 5:03 
GeneralRe: perbot Pin
Frank Alviani25-Oct-16 5:33
Frank Alviani25-Oct-16 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.