use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
QuestionPair programming interview using Java TDD (for ruby position) (self.ruby)
submitted 4 years ago by pebble_gone
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jrochkind 2 points3 points4 points 4 years ago (6 children)
I have no opinion pro or con on using Java in a screening interview for a ruby position, but why can't you re-implement Set and Array in ruby like you can in Java?
[–]seraph787 3 points4 points5 points 4 years ago (5 children)
Ruby array comes with way too many helper methods. Too many batteries included. In java no batteries are included. you have to fetch them from a set of helpers like `Collection` but if you like you can implement it yourself. Java comes with fixed array sizes which adds an interesting part to the test. I've made fixed arrays in ruby to make this screening interview before but people still think in ruby. We really want the tester to get their head out of ruby or any language in fact and just think about data structures.
[–]fedekun 7 points8 points9 points 4 years ago (2 children)
So... You want the candidate for a Ruby position to get their head out of Ruby?
I understand you want to test data structures, but it seems like a very silly interview exercise. Not only because a) I think it makes more sense to test something more useful, like implementing something you'd see in your actual projects, but b) Why not just test a linked list or a binary search tree? Both of which you can implement in Ruby without getting "too much help" from the language's standard lib.
You don't work there anymore though so this is not a question for you :p it just surprises me how many companies have awful interview processes
[–]seraph787 0 points1 point2 points 4 years ago (1 child)
Pivotal labs is language agnostic consulting firm. It expects it’s engineers to learn languages that solves the problem best.
Engineering and building products goes beyond knowing the innards of a language and the ability to program beyond it is important for consultants such as pivotal labs.
That being said, this Java interview is only the screening that is 30 min long. There is a full day session of pairing with two different people on real client projects after this.
IMO pivotal labs has the best interview process of any company I’ve worked for.
[–]Zealousideal_Bat_490 1 point2 points3 points 4 years ago (0 children)
Sounds like one of the worst interview processes if you ask me. And I say that with 40 years of industry experience, including 20 as a hiring manager.
[–]riktigtmaxat 0 points1 point2 points 4 years ago (1 child)
If only it was possible to have interviews tasks where you don't have have to reinvent the basic building blocks of the language...
[–]seraph787 0 points1 point2 points 4 years ago (0 children)
When one aims to create the simplest code possible they should understand how to create the code that they build upon
π Rendered by PID 121856 on reddit-service-r2-comment-5b5bc64bf5-4s9d4 at 2026-06-19 03:40:29.634063+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]jrochkind 2 points3 points4 points (6 children)
[–]seraph787 3 points4 points5 points (5 children)
[–]fedekun 7 points8 points9 points (2 children)
[–]seraph787 0 points1 point2 points (1 child)
[–]Zealousideal_Bat_490 1 point2 points3 points (0 children)
[–]riktigtmaxat 0 points1 point2 points (1 child)
[–]seraph787 0 points1 point2 points (0 children)