Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Learning Python for job interviews if I already know Ruby?
2 points by nimbleplum40 on Dec 19, 2021 | hide | past | favorite | 4 comments
Hi HN!

My day job is a Ruby on Rails position. I'm considering looking for new positions, and wonder if learning Python would be worth it for coding interviews. I'm open to another Rails position, but it's not my preferences so I'm not sure about using Ruby for interviews since Python seems to be a lot more common for those types of questions. I also know TS/JS, but have heard that there can be a stigma when using JS for non webdev roles. Any advice?

Thanks!



What type of interview? If it's a Leetcode/Coderpad type of test where you're expected to deliver a working solution in 30-60 minutes definitely go with what you know best. No one cares if it's Ruby or Python. They want to see your code generally works.


Absolutely -- but it's best to put the matter front and center by saying "I've been learning Python, here's a little side project I did" so you don't get slammed with LC tests or Jeopardy-style phone screens. In fact they might appreciate the fact that you're eager to expand your horizons, especially if you can articulate what you see as limitations in the languages you're currently using.


These days it is rare for companies to force you to implement your solution in a specific language. Ruby is close enough to "normal looking code" that you'll be fine. Just stick with whatever you are most comfortable with. It's about the algorithm anyway.


Refer python documentation as a reference and build some side project.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: