Skip to main content

Posts

Featured

Coding Best Practices Part 1 (Naming Conventions & Class Designing Principles)

In my last article IMPORTANCE OF WRITING CLEAN CODE, you realized the importance of creating a beautiful piece of code. You learned some techniques to optimize the source code. In this article, I will explain how to write beautiful, scalable, maintainable and readable code which will be cost effective in the agile development. These rules are not “forced to follow” but remember- “You can but you should not” This means, you can write code in any manner, but remember what you should follow and what not. These best practices will not just improve readability of your code; you will learn to create quality software. The topics can be broadly divided into two categories; one is naming convention and second is the best practices to design a class. 1. Naming Conventions- Avoid ambiguous and small names which are hard to understand. Names should be descriptive such that it should tell what it is for. Following are some rules for naming conventions in Java. However, these rules are applied to o…

Latest Posts

Importance of Writing Clean Code

Find Output of following C fragment

HOW TO RECOVER DELETED PHOTOS FROM SMARTPHONE

ANDROID ON PC

5 DIFFERENT WAYS TO SWAP TWO NUMBERS

Some useful RUN commands

Facebook Chat Code for HAPPY NEW YEAR

Some Google Tips

foreach loop in C#

C++ program to implement Floyd-Warshal's algorithm for finding all pair shortest path.