<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6971531225984797576</id><updated>2011-07-08T06:17:34.617-07:00</updated><category term='Eminence IT Solutions Pvt. Ltd.'/><category term='good practice'/><category term='design'/><category term='website'/><category term='code comments'/><category term='tips'/><title type='text'>Information Technology Bytes</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eminenceit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://eminenceit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Eminence IT Solutions Pvt. Ltd.</name><uri>http://www.blogger.com/profile/09148085615593402049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6971531225984797576.post-7130062075503741536</id><published>2010-06-11T02:55:00.000-07:00</published><updated>2010-06-11T02:57:19.348-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='good practice'/><category scheme='http://www.blogger.com/atom/ns#' term='code comments'/><title type='text'>How to comment your code</title><content type='html'>&lt;strong&gt;Types of Code Comments&lt;/strong&gt;&lt;br /&gt;There are 5 principle types of code that can be commented:&lt;br /&gt;•Loops&lt;br /&gt;•Conditions&lt;br /&gt;•User defined Functions &amp; Procedures&lt;br /&gt;•Abstract Data Types&lt;br /&gt;•Open code&lt;br /&gt;&lt;strong&gt;Practices for Writing Super Readable Code &lt;/strong&gt;&lt;br /&gt;1. Commenting &amp; Documentation - IDE’s (Integrated Development Environment) have come a long way in the past few years. This made commenting your code more useful than ever. Following certain standards in your comments allow IDE’s and other tools to utilize them in different ways.&lt;br /&gt;2. Consistent Indentation - I assume you already know that you should indent your code. However, it’s also worth noting that it is a good idea to keep your indentation style consistent.&lt;br /&gt;3. Avoid Obvious Comments - Commenting the code is great; however, it can be overdone or just be plain redundant.&lt;br /&gt;4. Code Grouping - More often than not, certain tasks take a few lines of code. It is a good idea to keep these tasks within separate blocks of code, with some spaces between them.&lt;br /&gt;5. Consistent Naming Scheme&lt;br /&gt;6. DRY Principle - DRY stands for Don’t Repeat Yourself. Also known as DIE: Duplication is Evil.&lt;br /&gt;7. Avoid Deep Nesting - PHP itself is sometimes guilty of not following consistent naming schemes: Too many levels of nesting can make code harder to read and follow.&lt;br /&gt;8. Limit Line Length - Our eyes are more comfortable with reading tall and narrow columns of text. That’s the reason newspaper articles look like this&lt;br /&gt;9. File and Folder Organization  Technically, you could write an entire application code into a single file. But that could be a nightmare to read and maintain.&lt;br /&gt;10. Consistent Temporary Names - Normally, the variables should be descriptive and contain one or more words. But, this doesn’t necessarily apply to temporary variables. They can be as short as a single character.&lt;br /&gt;11. Capitalize SQL Special Words - Database interaction is a big part of most web applications. If you are writing raw SQL queries, it is a good idea to keep them readable as well.&lt;br /&gt;12. Separation of Code and Data - This is another principle that applies to almost all programming languages in all environments. In the case of web development, the “data” usually implies HTML output.&lt;br /&gt;13. Object Oriented vs. Procedural - Object oriented programming can help you create well structured code. But that does not mean you need to abandon procedural programming completely. Actually creating a mix of both styles can be good.&lt;br /&gt;14. Read Open Source Code - Open Source projects are almost always built with collaboration between many developers. These projects need to maintain a good level of code readability so that the team can work together as efficiently as possible. Therefore, it is a good idea to sometimes browse through the source code of these projects to observe what these developers are doing.&lt;br /&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br /&gt;The added benefit of using comments in computer programming is that any documentation that needs to accompany the source code will be easier to write if based on comments. Indeed, some programmers use a kind of meta language that enables the comments to be extracted and used as documenttaion without any additional post-processing.&lt;br /&gt;&lt;br /&gt;However, so long as the budding programmer remembers to comment as necessary, they will always be able to pick up a code snippet and modify it or remind themselves of what it does, without having to read every line of code. In a time-constrained world, this might just prove to be the most important reason to comment computer code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6971531225984797576-7130062075503741536?l=eminenceit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eminenceit.blogspot.com/feeds/7130062075503741536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eminenceit.blogspot.com/2010/06/how-to-comment-your-code.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default/7130062075503741536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default/7130062075503741536'/><link rel='alternate' type='text/html' href='http://eminenceit.blogspot.com/2010/06/how-to-comment-your-code.html' title='How to comment your code'/><author><name>Eminence IT Solutions Pvt. Ltd.</name><uri>http://www.blogger.com/profile/09148085615593402049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6971531225984797576.post-8476686239835427182</id><published>2010-06-06T04:32:00.000-07:00</published><updated>2010-06-06T04:50:00.476-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tips'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='design'/><title type='text'>Tips for building a website</title><content type='html'>There aren't any magic pills to create a great Web page that everyone will visit again and again, but if you follow these tips your site will be more popular and easier for people to read.&lt;br /&gt;&lt;br /&gt;1. Know your audience, and keep them in mind when you write. Look at the site from the perspective of someone who stumbles on it not knowing where they are. Is the purpose of the site clear? Does it invite them to continue?&lt;br /&gt;&lt;br /&gt;2. Keep your content short. Avoid scrolling.&lt;br /&gt;&lt;br /&gt;3. Use tables of contents. Upload a site map.&lt;br /&gt;&lt;br /&gt;4. Keep images size small. Use the correct alt tags.&lt;br /&gt;&lt;br /&gt;5. Ensure you check your spelling. Write in a way which makes sense when printed out or read out loud. Avoid "click here".&lt;br /&gt;&lt;br /&gt;6. Keep links updated, a 404 is not good for first impressions.&lt;br /&gt;&lt;br /&gt;7. Annotate your links. If a page is good enough to link to, then it's good enough to explain why you like it.&lt;br /&gt;&lt;br /&gt;8. Have your contact information updated. Ensure that you also have a form which welcomes feedback.&lt;br /&gt;&lt;br /&gt;9. Choose a stable Internet Service Provider.&lt;br /&gt;&lt;br /&gt;10. Last but not the least, ensure that you have backup of your website even when it is live.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6971531225984797576-8476686239835427182?l=eminenceit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eminenceit.blogspot.com/feeds/8476686239835427182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eminenceit.blogspot.com/2010/06/tips-for-building-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default/8476686239835427182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default/8476686239835427182'/><link rel='alternate' type='text/html' href='http://eminenceit.blogspot.com/2010/06/tips-for-building-website.html' title='Tips for building a website'/><author><name>Eminence IT Solutions Pvt. Ltd.</name><uri>http://www.blogger.com/profile/09148085615593402049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6971531225984797576.post-2183899011654599273</id><published>2010-01-04T00:45:00.000-08:00</published><updated>2010-01-04T01:01:29.138-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Eminence IT Solutions Pvt. Ltd.'/><title type='text'>Hello World</title><content type='html'>Our first blog and we ought to keep it simple. So its a "Hello World" to all.&lt;div&gt;We would be posting our company news and titbits, IT related articles and some interesting trivia on this blog soon.&lt;/div&gt;&lt;div&gt;Watch this space.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6971531225984797576-2183899011654599273?l=eminenceit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eminenceit.blogspot.com/feeds/2183899011654599273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eminenceit.blogspot.com/2010/01/hello-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default/2183899011654599273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6971531225984797576/posts/default/2183899011654599273'/><link rel='alternate' type='text/html' href='http://eminenceit.blogspot.com/2010/01/hello-world.html' title='Hello World'/><author><name>Eminence IT Solutions Pvt. Ltd.</name><uri>http://www.blogger.com/profile/09148085615593402049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
