Subscribe
|
About Me
|
Weekly Podcast
|
Tools List
|
Archives
|
Calendar
|
ASP.NET MVC 1.0 Book
|
ASP.NET 3.5 SP1 Book
Scott Hanselman's ComputerZen.com
Programming Life and the Zen of Computers
Latest Tweet:
« To funny to not post - sorry it's not te...
|
Main
|
Should one go to Production with a DEBUG... »
Nine Reasons Not to Use "int" in .NET
Posted 2004-02-10 06:00 PM in
Programming
.
It's official, 'int' considered harmful.
Nine Reasons Not to Use "
int
" in .NET
:)
Tuesday, February 10, 2004 8:17:41 PM (Pacific Standard Time, UTC-08:00)
To be honest with you, when I saw the title "Nine Reasons Not To Use int", I thought "only nine"? I've had a love/hate relationship with int, but it really has nothing to do with the technology, but rather how/when it's implemented.
The technology itself is certainly useful, no doubt about that. My gripe is when you must design an object model around the int gotchas for trivial reasons that have nothing to do with the application/library you're writing. Specifically, I've been on projects where virtually every object had to use ints for numbers. This may not sound like a big deal, but trust me, it really compromises the design and literally gives me headaches.
Again, it's very useful when the solution fits the problem. I'm using it heavily in an application utilizing numbers. Being able to use numbers _anywhere_ is huge.
Up with int! Down with its misuse!
Jeff Key
Tuesday, February 10, 2004 8:23:10 PM (Pacific Standard Time, UTC-08:00)
ROTFLMAO
Scott Hanselman
Comments are closed.
Contact
Photo by
GoldenEarth
Email
Learn to Tweet!
Advanced Twitter
My Greatest Hits
Sponsors
Ads by The Lounge
Hosting By
Silverlight Store
Hot Topics
Tags
Africa (94)
Agile (5)
Arcade (8)
ASP.NET (664)
ASP.NET Ajax (9)
ASP.NET Dynamic Data (24)
ASP.NET MVC (89)
BabySmash (18)
Back to Basics (19)
BCL (2)
Bugs (169)
Channel9 (15)
Cloud (1)
CodeRush (21)
Coding4Fun (40)
Corillian (26)
DasBlog (131)
Deployment (2)
DevCenter (1)
DevDays (5)
Diabetes (61)
DLR (6)
eFinance (14)
Gaming (115)
Home Server (9)
HttpHandler (16)
HttpModule (21)
Identity (3)
IIS (18)
INETA (8)
Internationalization (44)
IOC (1)
Javascript (72)
Learning .NET (121)
LINQ (17)
Longhorn (11)
Microsoft (88)
Mix (18)
Mobile (2)
Mono (3)
Movies (44)
MSBuild (1)
MSDN (6)
Musings (508)
Nant (39)
NCover (12)
NDC (11)
NDoc (6)
NerdDinner (4)
NotNorthwind (2)
NUnit (47)
OData (2)
Open Source (32)
PDC (68)
Personal (3)
PHP (3)
Podcast (224)
PowerShell (63)
Programming (260)
Python (4)
Remote Work (12)
Reviews (151)
Ruby (62)
Screencasts (25)
Silverlight (41)
Source Code (69)
Speaking (197)
Subversion (15)
TechEd (128)
Thabo (3)
Tools (433)
VB (8)
ViewState (19)
Vista (2)
VS2010 (8)
Watir (21)
Web Services (434)
Win7 (21)
Windows Client (59)
WinPhone (1)
WPF (42)
XML (292)
XmlSerializer (32)
Zenzo (38)
Calendar
<
March 2010
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
Posts in timeline
Posts in Large Calendar
Archives
March, 2010 (10)
February, 2010 (17)
January, 2010 (13)
December, 2009 (13)
November, 2009 (7)
October, 2009 (19)
September, 2009 (11)
August, 2009 (12)
July, 2009 (21)
June, 2009 (26)
May, 2009 (16)
April, 2009 (13)
March, 2009 (17)
February, 2009 (17)
January, 2009 (18)
December, 2008 (32)
November, 2008 (17)
October, 2008 (22)
September, 2008 (16)
August, 2008 (14)
July, 2008 (25)
June, 2008 (19)
May, 2008 (17)
April, 2008 (17)
March, 2008 (26)
February, 2008 (21)
January, 2008 (28)
December, 2007 (19)
November, 2007 (17)
October, 2007 (31)
September, 2007 (39)
August, 2007 (37)
July, 2007 (43)
June, 2007 (37)
May, 2007 (32)
April, 2007 (38)
March, 2007 (29)
February, 2007 (46)
January, 2007 (31)
December, 2006 (27)
November, 2006 (31)
October, 2006 (32)
September, 2006 (39)
August, 2006 (34)
July, 2006 (40)
June, 2006 (18)
May, 2006 (31)
April, 2006 (34)
March, 2006 (30)
February, 2006 (38)
January, 2006 (44)
December, 2005 (19)
November, 2005 (34)
October, 2005 (24)
September, 2005 (37)
August, 2005 (20)
July, 2005 (24)
June, 2005 (33)
May, 2005 (16)
April, 2005 (22)
March, 2005 (34)
February, 2005 (15)
January, 2005 (37)
December, 2004 (28)
November, 2004 (30)
October, 2004 (34)
September, 2004 (22)
August, 2004 (34)
July, 2004 (18)
June, 2004 (64)
May, 2004 (49)
April, 2004 (21)
March, 2004 (29)
February, 2004 (29)
January, 2004 (36)
December, 2003 (25)
November, 2003 (24)
October, 2003 (59)
September, 2003 (42)
August, 2003 (24)
July, 2003 (44)
June, 2003 (29)
May, 2003 (21)
April, 2003 (30)
March, 2003 (27)
February, 2003 (47)
January, 2003 (50)
December, 2002 (31)
November, 2002 (38)
October, 2002 (44)
September, 2002 (15)
May, 2002 (2)
April, 2002 (4)
Google Ads