Live data from Hacker News

Ask HN: Does LeetCode/HackerRank make you a better developer?

news.ycombinator.com

21–29 of 29 posts

Re: Ask HN: Does LeetCode/HackerRank make you a better developer?

#21
It doesn’t make one much of a better developer but it makes you a lot better interviewer. I’m just okay at leetcode and find the process to be incredible difficult for personal reasons - legitimate post traumatic stress from being locked in a room doing homework I’m in therapy for. In the workplace I can shine and do very good work and get a lot of accolades, but this shit is my kryptonite and I keep working on it.

Re: Ask HN: Does LeetCode/HackerRank make you a better developer?

#22
I prefer the adjectives strong/weak over good/bad or better/worse to describe developer skill for two reasons. Good or bad can be perceived as an inherent quality, while it is obvious that strength is acquired. The second reason is because better/worse can imply subjectivity. That is, that it wouldn't be possible to tell a strong developer from a weak one because it is all in the eyes of the beholder or some BS like that.

Onto your question, the answer is yes, very much yes. Solving puzzles indeed makes you stronger. It exercises your brain exactly like lifting weights exercises your muscles. Almost any skill can be trained the same way; there are chess puzzles, writing "puzzles", acting "puzzles", even musicians have certain "puzzles" they hone their techniques on (e.g Segovia scales).

I don't know why puzzles have such a bad rep on Hacker News. It may be a case of sour grapes. Like you see a jacked dude and you think "Eh, easy with steroids!" or "Yeah, but does he know basic arithmetic?" Cause admitting that he spent countless hours in the gym while you (like me) spent countless hours watching movies and eating chocolate is a too big of a blow to your confidence.

Apparently some dude didn't land a job with Google because he couldn't invert a binary tree. So he thought it was useless. I looked it up (https://leetcode.com/problems/invert-binary-tree/) and had a laugh. Because the solution was readily obvious and required no more than three lines of Python.

Re: Ask HN: Does LeetCode/HackerRank make you a better developer?

#24
I don't necessarily think that practicing leetcode will make you a better developer, but good developers should be able to solve most leetcode questions in a few hours from scratch (with full internet access) without having ever seen those types of problems or data structures involved - maybe not with perfect computational efficiency, and certainly not in 30 mins during an interview

That said, writing more code and solving harder problems is what makes you a better developer - so if leetcode is what gets you to do that then it will probably have the desired effect

Re: Ask HN: Does LeetCode/HackerRank make you a better developer?

#25
grinding leetcode problems does not make you a better engineer as the problems you typically solve day to day are very different from leetcode problems

i have come to the conclusion it is a mechanism for veiled discrimination and for testing how much effort you put into “preparing” for an interview… which makes no sense because you have been “preparing” for 14 years.

the hiring process needs to be fixed so it prioritizes other things but unfortunately it seems we are stuck with it for now. myself i have no patience to deal with arrogant engineers who think i should be able to answer their cute trivia question or be the fastest developer in the west to implement binary search.

Re: Ask HN: Does LeetCode/HackerRank make you a better developer?

#26
My exact experience, just few more years. And no, I’ve never heard from anyone in my (decent above average) pay grade about their production leetcode success story. Not even a glimpse of it, not a single time.

I myself though implemented BFS once for a factory which planned tight supply for scheduled orders. That was it. Highest CS I ever needed.

do you think that being able to solve LeetCode/HackerRank questions (not brute forcing them, but rather understanding the underlying algorithm) help you become a better developer

Being aware and understanding what it does is enough, like in “it does x in log” or “it does x in nlogn with these caveats”. I’d never try to reinvent/reimplement any of it and would object if anyone tried. Because it’s trivial to screw up an edge case, and given the amount of screw ups in plain dumb code… I don’t believe anyone who claims they could do it in the wild. It must be an academic setting, not a regular company at least.

Re: Ask HN: Does LeetCode/HackerRank make you a better developer?

#29
Consider trying last year's advent of code -- I think they are fun puzzles, and in my opinion, a programmer able to deal with logically complex requirements should be able to solve them all.

I've been a professional programmer for a long time. My opinion is that what we mostly do is more akin to plumbing than "engineering". When we say "complex" we mean DAGs, CI/CD pipelines, a self-healing K8s setups, and so on. But this stuff -- at least in my opinion -- just isn't very hard, not in the way that a fancy video game, a robotics control system or a sophisticated compiler can be.

Computer science and mathematics applied to coding and internalised in your practice will not merely make you a better developer, it will put you on another level; you won't see code the same ever again.

Finally, I'd suggest that solving puzzles is more indicative of what you already know rather than a good way to acquire new knowledge.

Post reply on HN