A Filipino Developers Community

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • single letter variable names

    If j(i) < 1 Then m = m + j(i - 1) Else m = m + j(i - 1) - 1 Single letter variables are good for iterators, but if integer variables will involve coditions such as the statement above, better use a more descriptive variable or refactor the said line to a method with a descriptive name. I guess if...
    Posted to jokiz by jokiz on 01-07-2007
    Filed under: Filed under: ,
  • Rethrowing exceptions, the right way

    I have read the Exception Handling Best Practices article in .NET in CodeProject and all this time I thought that rethrowing exceptions is this way: [code language="C#"] try { // Some code that throws an exception } catch (Exception ex) { // some code that handles the exception throw ex; } [/code] I...
    Posted to jokiz by jokiz on 02-20-2005
    Filed under: Filed under: , , , , ,
Page 1 of 1 (2 items)
Copyright DevPinoy 2005-2008