3 ms·
Hah I thought I was alone in that regard. I usually write two versions of it once I start learning a language. I'll write my first iteration with minimal expos
by Igglyboo 12y ago
Hah I thought I was alone in that regard.
I usually write two versions of it once I start learning a language. I'll write my first iteration with minimal exposure to the language then try and come back later and make it more idiomatic after I've spent some more time with the language.
I've done this with Go, JavaScript, Python, and C so far. Most of my iteration 1's start off with a Java flavor, my second iteration in python was pretty impressive with regards to how many fewer lines I had to use compared to the non-idiomatic version.
- zaphar 12y agoI typically refactor the first version to a more idiomatic form. So I guess technically do two versions as well. I really should have saved them all somewhere. It would make an interesting repository of sample programs. My first one was in gw-basic :-)