News for hackers. Stuff that matters.
Re:Ask HN: What is your best advice for a developer to write... by CuriouslyC on Wednesday June 29, 2016 @11:14AM (#12002123)
The number one thing you can do to write better code is get together a group of people and do code reviews on each other's code constantly. Have people in the group point out things they like and dislike about the code, along with why. Then create a "cheat sheet" where you try to summarize the principles behind all the suggestions people make for your code.

Beyond that, try to find "good" code look at how it is structured. Then try to emulate the practices in regards to language feature use, layout, etc.

Re:Ask HN: What is your best advice for a developer to write... by kzisme on Wednesday June 29, 2016 @01:06PM (#12003011)
Work it work best in a work setting or a friends settings?
Re:Ask HN: What is your best advice for a developer to write... by CuriouslyC on Wednesday June 29, 2016 @03:08PM (#12003909)
It can work anywhere. If your work isn't doing peer code review, they should be - I read somewhere that code reviews are the single biggest driver of high quality software. It is also easy to start up a code review session at hackathons.