Dave Horner's Website - Yet another perspective on things...
Home Tech Talk Programming Artistic Style - don't worry the formatting
80 guests
Rough Hits : 3689018
moon and stars
how did u find my site?





 
morning or night person?


 
"How did I come to know what I know about the world and myself? What ought I to know? What would I like to know that I don't know? If I want to know about this or that, where can I get the clearest, best and latest information? And where did these other people about me get their ideas about things, which are sometimes so different from mine?" - H.G. Wells
appreciate the information? drop me a line, share, or +1.

Artistic Style - don't worry the formatting

Thursday, 24 August 2006 19:58
Code is much like an art form. You structure logical reasoning and raw concepts into textual form. Many times programmers get annoyed when they have to deal with other people's code. You hear complaints all the time about people preferring the brackets this way or that. It's all a matter of preference, and the compiler doesn't mind.

So STOP formatting by hand!

There are tools out there to do the formatting as you would like. Use an editor that helps maintain your coding preferences as you like.

You can go extreme with it, and setup hooks to auto format the code on checkin to your SCM(git/hg/svn/etc). Developers could then also setup code on the client side to format the way they like. To each their own.

The code formatter I use most often is Artistic Style
UniversalIndentGUI

Code prettifier

Javascript code prettifier
Add syntax (code) highlighting to your Tumblr blog

< Prev  Next >
Last Updated on Saturday, 12 April 2014 04:42