background preloader

Beautiful Code

Facebook Twitter

Making Large Classes Small (In 5 Not-So-Easy Steps) Beautify Your CSS Code - The Tools You Need. For me personally, it feels like easier to write CSS code manually, and it do work well.

Beautify Your CSS Code - The Tools You Need

But not even after a bottle of wine (or something more manly) and a lottery win, I can, with good conscience, say that it looks beautiful. The code ends up messy, and deep in my mind I think I will fix it later – but usually it will never happen. The CSS file remains ugly as a statement of the coders laziness. But even for us, lazy webmasters, there is help. Code beautifiers. ProCSSor – Advanced CSS Prettifier This CSS tool is new, and it proves that online CSS tools do not have to be cluttered with different promotions and other annoying distractions. Styleneat – CSS Organizer This CSS tool by Inmeres Solutions has been online for a while, and like ProCSSor it has a clean and functional design. Code Beautifier – CSS Formatter And Optimizer 2 More New CSS Tools The two following tools are actually not CSS code organizers – one of them, Stylebot, is not even an online tool.

Beautiful code: a sense of direction. To sum up, between several pieces of code that perform the exact same task, I prefer the smallest, most structured and conventional one.

Beautiful code: a sense of direction

So I try to write code that complies with these principles. It takes admittedly a bit longer than just writing something that works. But because I have learned how hard it can be to read code, I know that the gain in readability largely and quickly pays back. As you may know, writing crystal clear code right away is almost impossible. More importandly, software has a natural tendency to grow. As you will see, most refactoring techniques are straightforward. First, here are a few refactoring that reduce the level of access modifiers: Applying these refactoring may not always be obvious. In this post, I presented several refactoring techniques. Less is more,Local is manageable,Innovation is risk. Hasten slowly, and without losing heart, Put your work twenty times upon the anvil. Refactoring at work! A List of Coding Standard Websites.

Do you adhere to a certain coding style or standard when programming in your language of choice?

A List of Coding Standard Websites

If you are not following an official coding standard or a standard set-forth by your place of employment – perhaps you should start. Why follow a coding standard? Standardize coding practices allow code to be more easily read by other programmers. Just imagine if you inherited code that was labeled as follows: string a;string b;int flag1;int flag2; This might look like the code you wrote when you wrote your first program. Coding standards are not necessarily dictated by the creator of the language. I have compiled this list of several coding standards and styles. Python Java Ruby HTML/CSS/Javascript Objective-C If I left out your favorite programming language, check out the Coding Conventions for languages at wikipedia. Do you know of any other coding standards resources that I should include in the list above?

19 code beautifier and formatter to save development time. Programmers often use tools to format programming language source code in a particular manner. Proper code formatting makes it easier to read and understand. Moreover, often different programmers have different preferred styles of formatting, such as the use of code indentation and whitespace or positioning of braces. Here is the list of 19 code beautifiers and formatters to save your development time. 1. Uncrustify 2. 3. 4.