Ropes I Know

September 13, 2009

.NET – Discoveries

Filed under: .NET, Computer, Programming Languages — Tags: , — Yeti @ 8:45

ApplicationContext Class (System.Windows.Forms)

.NET Framework Class Library
ApplicationContext Class

Specifies the contextual information about an application thread.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Even after several years of heavy C# / .NET – programming, I occasionally stumble upon something I have long since implemented a replacement method, only to discover that there is a class and and a standard method to do this. This standard method often proves to be a one-to-three – liner whereas I have hacked together a class hierarchy of several hundred lines-of-code.

And hey, sometimes it even works and if not, I have always learned quite a lot.

I know, sometimes people consider this trial and error method “Cargo Cult Programming”, but if I afterwards discover how it should be done, and realize that I’ve hacked in the right direction and have learned the “standard” method.

Does any of that make any sense to anyone?

Advertisements

August 10, 2008

C# (or .NET) Really Helps

Filed under: .NET, Computer, Programming Languages — Tags: , , , — Yeti @ 7:25

Some time ago, I realized why I really like C# (or .NET, for that matter), now I decided to try and put it into words.

I program a lot. I mean, an awful lot, really. Just as a brick-layer layers an awful lot bricks, because that’s what he does all day. Modularity has always been one of my concerns, but it never really worked up to the point of really reusing code. I mean reuse as in: just use it again. Full-stop. And not, “oh, I did something similar some time ago, I’ll just copy ‘n paste this stuff into this project and adapt it to my current needs”.

Curiously enough, since I started to rely heavily on managed code and, more specifically, on C# instead of good-ole C++, ever more pieces have started to fall into ever more places where they seem to fit … (more…)

August 6, 2008

Concurrency Helper – Classes

Filed under: Concurrency — Tags: , , , , — Yeti @ 21:17

I have updated my concurrency-page.

Excerpt:

… If a thread does a Deqeue() on an empty queue, it is blocked automatically until someone Enqueue()s a new item into the queue. Several threads can access the ThreadBlockingQueue at the same time, regardless if it is a read- or a write-access …

Read more …

Create a free website or blog at WordPress.com.