The World’s Leading Microsoft .NET Magazine
   
 
The .NET Addict's Blog

My Top Tags

                                                           

My RSS Feeds








Latest Diggs - Programming

Internet Blogs - Blog Top Sites

Site Hits

Total: 2,502,482
since: 19 Jan 2005

The dreaded language bleed-over has begun

posted Tue 19 Jun 07

You think that everything is going your way today, but you're wrong. Happily listening to your music- noise-cancelling headphones blotting out the screeching whine of nearby co-workers- you are unaware of the impending doom. You're kicking ass and taking names, the code is compiling, progress is being made, you're learning new stuff - life is grand.

Then it starts. One tiny little extra set of square brackets turns a seemingly innocent C# statement:

_connector.Add(12); 

into a tiny bomb of DOOM:

[_connector.Add:12];

Don't pretend like you don't see it. It's there. Look closely. That's right, it's language bleed-over. The most insidious thing that can happen to a programmer - worse than regular bugs. Want to know why? Because, as a programmer, your ultra-logical mind has been trained by years of programming to automatically recognize valid syntax... what you aren't trained to dois recognize valid syntax in the wrong damn platform. So it starts slowly. You've gone on typing - you're confident and today kicks ass, so you don't do your periodic random 30-second "let's build and see if we're still clean" check... no no, Mr. HotShotProgrammer - you throw caution to the wind and proceed to write 5,000 more lines of unbelievably fantastic C# code! The stuff of legends! Bards will be singing songs of praise of your wondrous code hundreds of years from now... yet it won't compile. After 20 minutes you have no idea why it STILL won't compile. Finally, you resort to scrolling through the list of 900 syntax errors in your project and eventually you discover the culprit and change the syntax back.

Then, not more than an hour later, you notice that Visual Studio has rejected the following line of C# code:

OnAuthenticationPassed(self, null);

You stare at it, trying to figure out why self is undefined. What the hell? Why would self be undefined? Every object in C# has a reference to the current instance of itself... Why the hell is VS not compiling... oh wait.... it should be this not self.

And thus begins the downward spiral of language bleedover from which no multi-platform programmer can ever hope to escape...

tags:        

links: digg this    del.icio.us    technorati    reddit




1. Jérôme left...
Tue 19 Jun 07 1:29 pm :: http://graboid.wordpress.com

lol..I know this kind of errors very well! :-)


2. Craig left...
Tue 19 Jun 07 3:01 pm

haha that will teach you to play with macs ;)


3. Christopher Bennage left...
Wed 20 Jun 07 8:01 am :: http://www.bluespire.com/blogs

This has been happening with me too, except that I'm injected ActionScript 2.0 syntax into C# <shudder />.


4. Kevin Hoffman left...
Wed 20 Jun 07 9:15 am

Well, with ActionScript being injected into C#, then you can at least call it something cool like "Action sharp!" or something like that ;)


Tag Related Posts

MobileMe vs. Live Mesh Throwdown - Round 1

Wed 16 Jul 08 10:33 A GMT-05

Building Model Classes in C# and Cocoa

Sun 15 Jun 08 3:13 P GMT-05
tags:            

CLINQ v1.1.0.0 Released!

Fri 02 May 08 5:38 P GMT-05
tags:          

Leopard Code Sample : Sprinkling in some Bonjour

Tue 27 Nov 07 2:32 P GMT-05
tags:        

Leopard Sample: A Bound NSCollectionView

Mon 29 Oct 07 1:41 A GMT-05

Leopard is out - let the code samples begin!

Fri 26 Oct 07 10:09 A GMT-05
tags:          

Microsoft Codename Acropolis - Unwrapped

Wed 20 Jun 07 3:22 P GMT-05
tags:              

The dreaded language bleed-over has begun

Tue 19 Jun 07 6:23 P GMT-05
tags:        

Exploring the Delegate Design Pattern

Mon 14 May 07 6:30 P GMT-05

Core Data - Almost too Easy?

Wed 18 Apr 07 2:23 P GMT-05

Exploring the MVC Pattern in WPF

Tue 10 Apr 07 12:51 P GMT-05
tags:                      

An experience with the Leopard beta

Mon 26 Mar 07 7:45 P GMT-05
tags:                

Authorness

Thu 15 Mar 07 1:44 P GMT-05

WPF Bindings == WTF Bindings?

Mon 12 Mar 07 6:31 P GMT-05

Objective-C Categories vs C# 3.5 Language Extensions

Mon 26 Feb 07 1:05 P GMT-05
tags:                

Cocoa Programming vs. WPF : NIB vs XAML

Tue 20 Feb 07 2:09 P GMT-05

Cocoa Bindings vs. WPF Binding

Thu 15 Feb 07 5:41 P GMT-05
tags:                

Objective-C 2.0 - Programming for wimps?

Wed 31 Jan 07 6:18 P GMT-05
tags:              

WPF/XAML and LINQ - A match made in heaven

Tue 06 Jun 06 11:32 A GMT-05
tags:                  

Lambda Lambda Lambda

Sun 21 May 06 1:01 A GMT-05

The Adventures of LINQ (Not Zelda)

Fri 19 May 06 11:21 P GMT-05
tags: