I don't have an SWE background (majored in Mechanical Engineering) but I made a transition into SWE a few years back. I have to admit that my code is not that efficient and many things could be done better and simpler. Do you think doing Leetcode would help to become better at writing code? I am not trying to switch jobs at the moment
It would help you but is not the most efficient way to learn if you want to commit time to it
Great tool for improving writing a clean “code” in a method level. Not good for learning clean architecture or structured code. BUT it comes with interview skill set improvement. So I would recommend it.
Read books like ‘Effective Java’. Also, first try to figure out what ‘good’ code should be like with very specific criteria. Then after you write work code, reflect upon it and see if it meets all the criteria. If not, modify the code. Rinse and repeat.
Yes it will help with writing efficient code by understanding complexity analysis, but it will not help with how to structure code properly.
Absolutely recommended to improve fundamentals. Then can also start reading about design patterns and more
Nope, leetcode doesn't help with day to day coding. If day to day coding was anything like leetcode, good engineers wouldn't need to spend days practicing for an interview. Interviews used to consist of brain teasers, now they've replaced pure word based brain teasers with code based brain teasers.
I think reading great code from great people in the org or popular git repos is going to be a lot more beneficial.