4 ms·
Trust me, when you write code for your personal project which may be a weekend project or an overnight quick hack, you write code to get something done. All you
by antfarm 10y ago
Trust me, when you write code for your personal project which may be a weekend project or an overnight quick hack, you write code to get something done. All you care about is — “Does my code work?”. You hardly care about the quality of the code.
Not in my experience. When I learn a new language by implementing a project in it, I do not consider the job done unless I have written idiomatic code in the new language and really understood every piece of code I took from Stackoverflow.
Not saying that contributing to open source projects for learning a new language isn't a good idea. Free code review in exchange for your contribution to the project is a win-win.
- khedoros1 10y agoAgreed. If I'm trying to learn a language, my first concern will be the style that I write in. I'll pay special attention to elegant ways to express my intent in the new language, with special attention paid to features that differ strongest from languages that I already use. Having the project work is important, of course; it's the proof of having learned something. But the initial project needs to be clean and idiomatic first, and correct second. Personal projects in languages that I'm already familiar with are the places that I allow myself some sloppiness.
- pvinis 10y agoI also agree completely. One thing I want to add is that with personal projects, I care about my code and the structure etc as much or maybe even more sometimes as the "work" code. It's just me in the personal project.. why not make it as I want, and make it really nice for myself?