The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

Archive for 2011

Ask yourself: “are you writing a framework now?” – How (not) to write Factorial

Posted by jpluimers on 2011/03/01

On the Development Choas Theory blog, I bumped into a brilliant blog post titled How (not) to write Factorial in Java.

It is not about Java, or any other programming language, platform or library for that matter.

It equally applies to your favourite programming language and framework (be it shell scripts, assembler, .NET, Delphi, haskell, PHP, ruby, Eiffel, Java or any other).

It is about the question that Neal Ford taught me quite a while ago that you should ask yourself several times a day:
“Am I writing a framework now?”

Developing software is about only developing the things you really need to.

Framework development is in a totally different league than developing ‘just’ software.
It requires even more thought, attention, testing, etc.
And after that, you need to support it on a different level too.

Frameworks are far more costly than you would guess at first sight…

So only develop a framework  for something (*) if you observe that it is actually used in a lot of places and requires a framework.

(*) insert what you are currently working on here.

–jeroen

Via:  Development Chaos Theory » Blog Archive » How (not) to write Factorial in Java

Posted in .NET, C#, Delphi, Development, Software Development | 6 Comments »

Domotica – WiFi thermostaten

Posted by jpluimers on 2011/02/28

Hier wat linkjes omdat ik de huidige thermostaat van onze CV door een WiFi variant wil vervangen.

Domotica dus :-)

We hebben nu de iSense thermostaaat dat via het OpenTherm protocol de CV aanstuurt: http://shop.kamerthermostaat.com/epages/62028128.sf/nl_NL/?ObjectPath=/Shops/62028128/Categories/Remeha

Remeha Recom software: http://nl.remeha.com/index.php?id=203

EcoBee heeft een interessant product, maar het is onduidelijk of ze OpenTherm ondersteunen: http://www.ecobee.com/

Quby interfaced niet alleen via OpenTherm met je CV, maar ook met je electiciteitsmeter: http://www.quby.nl/index.php/hoe-werkt-quby

Bwired heeft ontzettend veel informatie over domotica: http://www.bwired.nl/weblog.asp?cat=Bwired

Digit’s domotica blog: http://blog.hekkers.net/; hij heeft een Remeha monitor http://www.hekkers.net/domotica/Monitor_Remeha_Calenta.aspx

Tweakers.net thread: http://gathering.tweakers.net/forum/list_messages/1346842/10

Radiothermostat in gebruik

–jeroen

Posted in LifeHacker, Power User | 6 Comments »

NTFS-3G: NTFS driver for non-Windows stack (Linux, Mac, Android, etc)

Posted by jpluimers on 2011/02/25

After not having taken a look at NTFS for Linux for a while, I recently found out that NTFS-3G supports many platforms: Linux, Mac OS X, Android, etc.

Oh: and it supports Compressed Files too.

–jeroen

Posted in *nix, Power User | 2 Comments »

Delphi friend in NZ seeks work (preferably remotely)

Posted by jpluimers on 2011/02/25

A seasoned Delphi developer friend in NZ (near Christchurch) seeks work, preferably if he can work remotely.

Please drop me an email to get more information.

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

Microsoft Trademarks – be careful when using product names like these

Posted by jpluimers on 2011/02/25

While some of the names on the Microsoft Trademarks list are very generic (Windows, SideWinder, Arc, Expression, just to name a few), be careful when using them in a product name.

When a company with such deep pockets comes after you, you need a have a lot of persistence and be very patient.

–jeroen

Posted in Power User | Leave a Comment »

Exception Filter – VB.NET supports this, but not C#, so write a VB.NET wrapper to expose it to C#

Posted by jpluimers on 2011/02/24

Often I explain to people that there are a lot of .NET languages, because the .NET IL is rich, so the individual languages can focus on the IL pieces they do best.

This also means, that most languages have some support for specific pieces of IL that other languages do not have support for.

The IL Exception Filter feature is one such thing. It is supported by for instance VB.NET but not by C# as Junfeng Zhang explains:

C# does not support exception filter. However, VB and IL support it. To add exception filter to C#, we can build a function in VB or IL, then call it in C#.

Read his full article for the complete code.

–jeroen

via: Exception Filter – Junfeng Zhang’s Windows Programming Notes – Site Home – MSDN Blogs.

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Development, Software Development, VB.NET | Leave a Comment »

Some great links to Quotes on Programming and Software Development #fun #bastacon

Posted by jpluimers on 2011/02/23

Many, many nice sayings have been done about Programming, Software Development, the people that do the work, etc.

I collected a few links to nice lists of them, and used some of them at my talk on The Best C# Extension Methods at the BASTA! Spring 2011 conference this week in Darmstadt, Germany (yes, I do speak German, don’t ask me about my German writing though <g>).

A few teasers:

Programming is similar to a game of golf.  The point is not getting the ball in the hole but how many strokes it takes.
~Harlan Mills

If debugging is the process of removing software bugs, then programming must be the process of putting them in.
Edsger Dijkstra

They don’t make bugs like Bunny anymore.
~Olav Mjelde

So here it goes:

Enjoy ;-)

BTW:
You can download all the sample code on my session from our bo.codeplex.com sourcecode repository.
If you want a PDF of the slides, just drop me an e-mail.

–jeroen

Posted in BASTA!, Conferences, Event, Opinions | Leave a Comment »

Duh: projects of non-installed identities won’t load in VS. Learned: always install your VM yourself

Posted by jpluimers on 2011/02/23

For a project, I got a preconfigured VM for a client.

Certain projects they used gave this message:

—————————
Microsoft Visual Studio
—————————
The selected file cannot be opened as a solution or project. Please select a solution file or a project file.
—————————
OK
—————————

It appeared the didn’t do a full Visual Studio installation, so certain project types didn’t load.

This case it was Visual Studio 2008 and VBPROJ types, as Visual Basic .NET is way easier to do Office automation than C#.

In C#, you need truckloads of Type.Missing, which you do not need in VB.NET; Visual Studio 2010 made this easier, but you still often need them.

Lesson learned: always build all projects when you get a development VM, and prefer to install the VM yourself.

–jeroen

Posted in .NET, C#, Development, Software Development, VB.NET | Leave a Comment »

Supporting Office 2003 from .NET: getting the Office 2003 Primary Interop Assemblies

Posted by jpluimers on 2011/02/22

Often you work with projects not having the latest stuff.
Sometimes that is a good thing: latest stuff is not always best :-)

In this case, the client had Office 2003, and needed to do some Excel automation from .NET.
The development systems however had Office 2007 on it, so importing Excel defaults to the Office 2007 Primary Interop Assembly: Office version 12 in stead of 11. Read the rest of this entry »

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Delphi, Development, Prism, Software Development, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »

c# – What can I use to let users build their own avatar character? – Stack Overflow

Posted by jpluimers on 2011/02/21

Some cool suggestions on avatar sites: c# – What can I use to let users build their own avatar character? – Stack Overflow.

–jeroen

Posted in Pingback, Power User, Stackoverflow | Leave a Comment »