For me, it depends on what I'm building. If there is a GUI, then I usually write basic HTML and CSS using Bootstrap as my foundation. I prefer that over Balsamiq because I can work out flow as well as layout. If it is an API then I design the list of functions and parameters first in a text editor. Or the list of commands and arguments for a command-line tool.
If you notice I start with the high-level design first rather than the code. I find I build a better tool/product doing that first and I often save time. Personally I find myself doing a lot of code churn if I start with the code.
If you notice I start with the high-level design first rather than the code. I find I build a better tool/product doing that first and I often save time. Personally I find myself doing a lot of code churn if I start with the code.