Ask HN: Does LeetCode/HackerRank make you a better developer?
21–29 of 29 posts
Re: Ask HN: Does LeetCode/HackerRank make you a better developer?
#22Onto 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?
#23Re: Ask HN: Does LeetCode/HackerRank make you a better developer?
#24That 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?
#25i 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?
#26I 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?
#27Re: Ask HN: Does LeetCode/HackerRank make you a better developer?
#28Re: Ask HN: Does LeetCode/HackerRank make you a better developer?
#29I'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.