CS Chris Smith
CodePen Mastodon X (formerly Twitter) Feed

Code Neat Freak

by Chris Smith
,

With front-end developers we all care what our UI design looks like in the browser. I've started to notice that there are 2 distinct types of developer though - those who are solely focused on the outcome and those who care about the code itself.

If what appears on the screen looks good and a function does what it's supposed to do then does the code really matter? I'm not sure.

Personally, I'm a bit OCD about the code. I arrange all of my CSS rules in alphabetical order and set each new JavaScript block apart with line breaks and add lots of comments.

Once the code is minified, the messy code and the neat freak code come to the same thing so this tidying up effort is only for humans. Should I be worrying about it and doing it manually or should I just be using the IDE's formatting tools to do all of this for me?