News for hackers. Stuff that matters.
Re:How to Get Hired at CircleCI by walrus1066 on Friday June 16, 2017 @03:10PM (#14571837)
Why can't you use libraries? You're rewarding people for reinventing the wheel.
Re:How to Get Hired at CircleCI by clay_to_n on Friday June 16, 2017 @04:53PM (#14572554)
At some point, you need to decide what you're going to ask something to build in an interview. It's probably been implemented before.

Yes, reversing an array is arguably lower level than an application engineer needs to go - but not by much (in some languages you will be doing this yourself). And if they can do that, they can do something comparably difficult.

Re:How to Get Hired at CircleCI by walrus1066 on Friday June 16, 2017 @05:40PM (#14572844)
Why not choose a problem more representative of the job and business domain?

One that demonstrates their ability to write clean, testable, readable OO code, with appropriate abstractions, and not overengineered.

I find most candidates, struggle to do this, including algo wizards. Most software engineers aren't good at this either.

Re:How to Get Hired at CircleCI by glibgil on Friday June 16, 2017 @04:23PM (#14572367)
Because reversing an array is super easy and using a library is one function call
Re:How to Get Hired at CircleCI by dragonwriter on Friday June 16, 2017 @04:58PM (#14572598)
> Because reversing an array is super easy and using a library is one function call

It's not super easy without using library functions when all the operations that work on arrays (including the constructor that makes them) are as much “library functions” as the one that reverses an array. (Conversely, if the mechanism that reverses an array is part of the language core and not a library, the restriction fails to have the expected effect from the other side.)

The restrictions seem to assume that every language has the same division of distinct core “language” features as distinct from what is provided by libraries.

Re:How to Get Hired at CircleCI by glibgil on Thursday June 22, 2017 @02:50PM (#14614399)
Writing the following does not use any libraries

a = [0, 1, 2]

print a[1]

That's just how arrays work. If your elements are 32 bit integers then you are establishing a pointer to the first element. Accessing an element is multiplying the index by the element size and jumping from the first element pointer to a memory address offset.

> The restrictions seem to assume that every language has the same division of distinct core “language”

Fine, if your language has a library for arrays, then reimplement it on the whiteboard. Everyone is able to do that if they know what arrays are. They are just contiguous memory

Re:How to Get Hired at CircleCI by bragh on Friday June 16, 2017 @04:21PM (#14572356)
Because in many languages, this is trivial to the level of calling .reverse() on the array.
Re:How to Get Hired at CircleCI by walrus1066 on Friday June 16, 2017 @05:21PM (#14572737)
In which case, the question isn't really relevant to the job. Same goes for stuff like sorting algos. Why not pose problems more representative of the job and business domain?
Re:How to Get Hired at CircleCI by dragonwriter on Friday June 16, 2017 @04:59PM (#14572607)
Sure, but in some of the popular languages where that is the case, .reverse() is no more (and no less) a “library feature” than creating or indexing an Array.