Welcome to my site || Now you can watch live streaming of cricket match on my site :) || Click On " Live Score" menu to watch it :) ||This is a place where you can contact me for anything from technology to just to say Hi :) || You can also contact me for any Web Hosting related queries||Joomla News : Joomla 1.6 available as beta, you can download it from Joomla Official website || After Java and PHP, now I am exploring .NET || Please write your views on site in Guestbook and write something about me in Testimonials section||Hot News : Oracle buys Sun Microsystem for approx 7.4 billion dollars||

Sponsored Links

Testimonials

Kapil Kanawat
Date: Jan 27, 2012


All the best! keep up the good work!


Designed by:

Welcome to My World...
Something From the Heart E-mail
Written by Manish   
Tuesday, 20 December 2011 17:11
jab dard bhi meetha lagta hai,
to khushiyon ko bula k kya karna...
pure na hon dil k armaan,
to sapno ko sajaa k kya karna....
har saans k saath jab yaade judi,
to un yaadon ko bhula k kya karna....
de khuda tumhe meri bhi khushiyaan,
bhalaa apno ko rula k kya karna....
jab har haal me hansnaa seekh liya,
to palko ko bhigaa k kya karna....
aankhon me chhupe jab raaz kai,
unhe lafzo me bayaan kar kya karna...
do chaar kadam pe chhod de haath,
un rishton ko nibhaa kar kya karna...
tum mere the tum mere ho,
dunia ko bata kar kya karna ......
tum saath na ho to dunia ki,
doulat paakar bhi kya karna...
jab maan liya tumhe rab apna,
to mandir jaakar bhi kya karna.....
 
Coding standards and Good Programming Practices Part 1
Written by Manish   
Friday, 02 September 2011 12:15

From long time I wanted to write some of the standard programming practices that I have come across during my various project developments. But partly due to my work load and partly my laziness I wasn't able to do. But now I have started to find some time and share these. There is big difference between a "working code" and an "efficient code". Many times due to various reasons we developers ( including myself :) ) just write some code that fulfills the need and not not care about anything else. Many times even following these standards can be quite painstaking job for many as usually it takes more time. But in hindsight, its better to take more time at first place itself rather then Since there are many points which we need to take care while developing efficient code, so I have decided to divide this article in many parts. So below is some basic stuff which we need to take care during development:

 

Naming Conventions and Standards

Naming conventions are backbone of writing good code. More you follow naming conventions, easier it becomes for someone else to understand your code. So below are some points related to same:

 

 

  • Pascal casing: the first character of all words is upper case and the other characters are lower case. Use this for giving file names and class names. In some languages like C#, even method names are given in this.
  • Camel casing: the first character of all words, except the first word, is upper case and other characters are lower case. This should be used for variable and method names.
  • In earlier times people used underscores ( _ )  as word separator in variable and function names. However, now a days this practice is discouraged. Also, avoid using hungarian notation while variable/method naming. But basically whatever casing you are using in your application, please make it uniform across the application.
  • Do not use abbreviations. Use name, address, salary etc. instead of nam, addr, sal.
  • Do not use single character variable names like i, n, x, etc. Use names like index and temp. One exception in this case would be variables used for iterations in loops i.e. you can use name as i,j,k inside for loop for iterations.
  • Namespace names should follow the standard pattern like <company name>.<product name>.<top level module>.<bottom level module> .
  • File name should match with class name if possible. For example, for the class HelloWorld, the file name should be HelloWorld.java .
  • Indentation and spacing: use TAB for indentation. Do not use spaces.
  • Comments should be in the same level as the code. Curly braces ( {} ) should be in the same level as the code outside the braces. Use one blank line to separate logical groups of code.
  • There should be one and only one single blank line between each method inside the class. The curly braces should be on a separate line and not in the same line as if, for, etc. 
  • Use a single space before and after each operator and brackets.

 

 

 Below is an example of code following above mentioned conventions:

public class HelloWorld 

{

 bool SayHello ( string name )

  {

    string fullMessage = "Hello " + name;

    DateTime currentTime = DateTime.Now;

    string message = fullMessage + ", the time is : " + currentTime.ToShortTimeString();

    MessageBox.Show ( message );

    if ( ... )

     {

       // Do something

      // ...

      return false;

     }

    return true;

 }

Last Updated on Friday, 02 September 2011 15:37
 
तुम आ जाओ PDF Print E-mail
Written by Manish   
Sunday, 25 October 2009 00:30
है राह बडी मुश्किल तो क्या, मन्ज़िल क सहारे आ जाओ .
हो गई है देर बहुत अब तो, मेर दिल ये पुकारे आ जाओ.

मौसम है हसीन फ़िज़ा रन्गीन कलियो मे ये बेहोशी कि नमी.
ऐसे मे भी क्यो बेचैन है दिल , जीवन मे ना जाने क्या है कमी.
रोज़ सुबह खिलता है कमल , गीत होठों पे सज़ता है.
हर मन्ज़र लेकिन मुझको , तुम बिन अधुरा लगता है.
राह दिखाने कि खातिर बनकर के सितारे आ जाओ.
हो गई है देर बहुत अब तो, मेर दिल ये पुकारे आ जाओ.
 
तुम्हारे ग़म हो जाएँ मेरे और मिले तुम्हे मेरी खुशियाँ.
साथ तुम जब भी हो मेरे तो लगे सुहानि ये दुनिया .
होता न जब कुछ भी सही चेह्रे पे उदासी आती है.
देती हौसला मुश्किल मे हर मुझे याद तुम्हारी आती है.
दूर भगाने को गम क अन्धेरा दीप खुशी का एक जला जाओ.
हो गयी है देर बहुत अब तो मेरा दिल ये पुकारे आ जाओ.

सामने नही फ़िर भी कभी लगता है मुझे तुम पास हो
हो जानती तुम फ़िर भी सुन लो मेरे लिये तुम सबसे खास हो.
हर दिन लगता मै रहा हार बनके जीत तुम छा जाओ.
हो गयी है देर बहुत अब तो, मेरा दिल ये पुकारे आ जाओ.
बस एक बार तुम आ जाओ, मेर दिल ये पुकारे आ जाओ... 
 
 
Last Updated on Sunday, 25 October 2009 00:45
 
New Poem PDF Print E-mail
Written by Manish   
Wednesday, 08 September 2010 17:57
Tha sabhi kuchh paas me par lagti thi koi kami,
Aasmaa k khwab the par dur thi hamse zami.
Na khabar thi ye hame ja rahe hain ham kaha,
Mil gaye ho tum to lagta paa liya saara jaha.

Na rahi koi tamanna na hai koi aarzoo,
Rang hain meri zindagi me jab se mere saath tu.
Dosti ki ek dua tu,dil ki suni fariyaad hai,
Sabse hai anmol tu to,rab ki ek sougaat hai.

Sur hu mai sangeet ka to uska tum ek saaz ho,
Geet hu mai pyaar ka to uski tum awaaz ho.
Hai dua rab se meri aae na tumko koi gam,
muskuraao tum sada meri aankhen ho bhale nam.

Chahe ye saara jahan jaae tumko chhodke,
Saath honge ham sada har ghadi har mod pe.
kal agar ho dur to bhi karna na koi fikar,
Denge ham ye jaan bhi tumhari ek awaaz par...
Last Updated on Wednesday, 08 September 2010 18:03
 

SlideShow

Chokhi Dhani

Me

Me and Khushi

 Me

Techie Champ

 Me with Netbeans

Total Visitors : 20235