4 ms·
Your example is valid for beginners but once you're getting experience you don't code like that anymore. After 13+ years of C#, on simple projects I can code f
by jmnicolas 5y ago
Your example is valid for beginners but once you're getting experience you don't code like that anymore.
After 13+ years of C#, on simple projects I can code for a couple hours without compiling and get the pleasant surprise that my code work the first time I run it. And I'm certainly not a genius, I'm a 1X programmer.
- rvense 5y agoEh, ten years a professional, I frequently fall into it still, where you forget to think about the best solution and just.. mash. Sometimes it works to get a solution that can then cleaned up, other times I waste an hour before I snap out of it. I saw someone post "Stop thinking and look!" as universal advice once, but I need the inverse just as often.
- cardanome 5y agoI still do. Of course dabbling into REPL-based solutions in my youth might have influenced that. For me it is crucial to always have have the code in some compile-able and testable state. I iteratively work towards the simplest, most naive solution that gets the job done. After that it is refactoring time and I form it into a proper solution. The reason I do so is because only after having coded the naive solution, I have an concrete and proven correct understanding of the task and can pick the appropriate abstractions. I always see colleagues with an less iterative style use premature-abstractions and over engineering on the basis of "we might need it" instead of knowing. I do invest some time into thinking about the right data structure though. (Not much about algorithms, as they mostly follow from the data structures anyway.) Also if I code a well understood problem, I might use a more top down approach. (Not a critique of your workflow, just wanted to share mine.)
- mmcgaha 5y agoI see you follow the Tao -- beyond all techniques!
- MathCodeLove 5y agoWhat does "1X" mean in this context?
- Jtsummers 5y ago"Average", as opposed to a 10x "rockstar" or above average programmer. Or a -1x or -10x incompetent programmer.
- MathCodeLove 5y agoThanks! Haven't heard that terminology before.
- throwawayboise 5y agoI have been coding for over 30 years and I can barely write one function without at least making some typos if not logical errors. I would never code for a couple of hours without compiling/testing.
- jmnicolas 5y agoYou're not using an IDE? Sometimes I joke that I just press CTRL+Space and Visual Studio does the coding for me (and this was before Github Copilot!).