>No, no, no. That's horrible practice.
What utter tosh!!!
For newbies, compiling early and often is a good idea.
Which is better
1. Write a few lines, compile, get a couple of errors which can be fixed and move on.
2. Write pages and pages of code, compile and find way too many errors to deal with, then dump the whole mess on a message board asking for help.
You don't have to run the code every time you compile, and many compilers have a 'check syntax' mode which is very quick.