jokiz
(x-a)(x-b)(x-c)...(x-z)
Browse by Tags
All Tags
»
design guidelines
(
RSS
)
.NET
best practices
controls
exceptions
oop
rants
resharper
SQL
techie
tips
single letter variable names
Published 01-08-2007 11:37 AM |
jokiz
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 derive or not to derive from ApplicationException
Published 06-27-2006 10:13 PM |
jokiz
remember the rule to always derive custom exceptions from ApplicationException? so you thought that the CLR never throws an ApplicationException? Krzysztof Cwalina (co-author of Brad Adams in the famous Framework Design Guidelines book) blogs about the...
Do not call overridable methods in constructors
Published 05-25-2006 9:12 PM |
jokiz
I noticed that Resharper 2.0 highlighted (meaning it is against a rule) a call to a virtual method in a constructor in one of my business objects. It gave me the following information information in msdn ( http://msdn2.microsoft.com/en-us/library/ms182331...
String Property construct
Published 04-18-2006 12:25 PM |
jokiz
anybody who is also using this construct for string properties? we rarely want our string properties to be null and since it is a reference type, we have to have handling for it. can you see any disadvantage of such construct? [code language="C#"] public...
TDS Protocol
Published 02-26-2006 2:24 AM |
jokiz
For most of you who have been using stored procedures and following the MS guidelines in .NET Application Development, you must have been using SET NOCOUNT ON as stated in Chapter 12 of the Improving .NET Application Performance and Scalability . Although...
Naming Guidelines
Published 11-10-2005 12:16 AM |
jokiz
In response to dehranph's comment on my previous post ( http://community.devpinoy.org/blogs/joeycalisay/archive/2005/11/08/401.aspx ), it reminded me of the naming guidelines in .NET. His comment was about the DeleteCustomer method which has a Customer...
OOP-Encapsulation issues
Published 11-08-2005 11:14 PM |
jokiz
As I was refactoring some of our codes, what struck me was the idea of object oriented programming particularly encapsulation. For example, we have this Customer object which is distinct with its CustomerID property. We needed to have versioning for the...
ArgumentNullException - API design hall of shame
Published 06-22-2005 9:21 AM |
jokiz
I have read this before but just want to make a permanent reference to it in this blog. Brad Adams explains why the ArgumentNullException class violates the Design Guidelines here for not following the exception constructor patterns. http://blogs.msdn...
Designing .NET Class Libraries Series
Published 04-25-2005 6:30 PM |
jokiz
I've seen a part of this (Brad Adams presentation on Naming) perhaps a month ago, I just discovered that it is a part of a good set of webcasts worth seeing. Can't wait to see Brian Pepin's presentation (design time guru). http://msdn.microsoft.com/netframework...
Code Complete 1st edition
Published 04-21-2005 6:18 PM |
jokiz
I was reading Steve McConnell's first edition of Code Complete and the book is highly recommended. Although the sample uses old languages like pascal and c, and some topics does not apply to current programming languages, I love the way he presents his...
Hungarian Notation
Published 03-29-2005 8:42 AM |
jokiz
I started programming with C and used Hungarian notation since then. It was very helpful back then to instantly know what type the variable is from its name. When I started programming in .NET using Visual Studio, Intellisense made a major breakthrough...
Property Naming WTF
Published 03-18-2005 3:53 PM |
jokiz
I got tired of seeing a common property of our controls (since it is part of an interface) and this week, I got fed up and can’t take it anymore seeing them. AlignmentInContainer You might suggest ContainerAlignment but layout properties obviously relates...
Rethrowing exceptions, the right way
Published 02-21-2005 3:04 PM |
jokiz
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...
Search
Go
This Blog
Home
Contact
Tags
.NET
agile
ASP.NET
blogging
bug
C#
continuous integration
controls
design guidelines
designer
keyboard shortcuts
lokal
mobile
ms word
NHibernate
rants
resharper
SQL
subversion
tdd
techie
tips
version control
visual studio
windows forms
Community
Blogs
Blogs
Media
Forums
Archives
December 2008 (1)
December 2007 (3)
October 2007 (3)
September 2007 (2)
August 2007 (4)
July 2007 (9)
June 2007 (5)
May 2007 (12)
April 2007 (7)
March 2007 (8)
February 2007 (11)
January 2007 (15)
December 2006 (10)
November 2006 (8)
October 2006 (9)
September 2006 (20)
August 2006 (23)
July 2006 (17)
June 2006 (30)
May 2006 (27)
April 2006 (21)
March 2006 (24)
February 2006 (14)
January 2006 (5)
December 2005 (4)
November 2005 (7)
October 2005 (2)
September 2005 (7)
August 2005 (5)
July 2005 (6)
June 2005 (14)
May 2005 (4)
April 2005 (18)
March 2005 (17)
February 2005 (14)
January 2005 (8)
News
Subscribe to jokiz by Email
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go