by Michel Grootjans
Are you passionate about your job? Do you enjoy programming? Do you think you're any good at it? One of the things that make me productive as a developer are the tools and products I use. However, these tools seem to try and grab all my attention. When I go to a conference, or read a blog entry, I'm bombarded with them: Windows 8, Visual Studio 11, TFS, WCF, Silverlight, MEF, OData, Lightswitch, LabManagement, NuGet, ... it just doesn't stop, and I know I will never be able to keep up with all of ......
I had fun writing this one My current client asked me to allow users to paste text into textboxes/textareas, but that the pasted text should be cleaned from '<...>' tags. Here's what we came up with: $(":input").bind('paste', function(e) { var el = $(this); setTimeout(function() { var text = $(el).val(); $(el).val(text.replace(/<... '')); }, 100); }) ; This is so simple, I'm amazed. The first part just binds a function to the paste operation applied to any input declared on the ......
Have you ever tried google trends? It's a fun utility to see trends in search keywords typed in google. You can go as far back as 2004, so there's plenty of data available. You can even compare different trends. One of these interesting trends Pascal once pointed out is c# vs ruby. Back then, this is what it looked like (c#, ruby) The blue line is c#, the red line is ruby. And what do you think the regular dips are? WEEKENDS! And what's more, the ruby line is close to the c# line in the weekends. ......
While preparing the code for my previous post, I decided to try NU to get the OSS I needed for the demo. I must say it was a blast. Ruby is required to run NU. For those who don’t have ruby on their machine, get the ruby installer. It won’t slow your system down or pollute it in any way. It’s just creating a directory of your choice for ruby, and adds a system path pointing to it. I wanted fluent Nhibernate with all it’s compatible dependencies: NHibernate, Castle.core, … To get all these dependencies, ......
Since I published the state of my project goals, I got a few questions about my repository implementation, so here goes… The ‘classic’ repository interface looks like this: public interface IRepository<T> { T GetById(int id); IEnumerable<T> GetAll(); T SaveOrUpdate(T entity); void Delete(T entity); //... } This interface has some issues to me. First of all, it’s data-centric. I know that’s the whole point of a repository, but bear with me. Second, it exposes far too many methods. One ......
I recently got the opportunity to teach a 3 day course on the subject of "Principles, Patterns and Practices in .net". I must say it was a fun and enriching experience. I have never taught a course before, so I decided to go off the beaten path and do a little experiment in format. No need to copy existing formats that can be found everywhere else in Belgium. Format I took the excellent Head First Design Patterns as a guide to run through each pattern in the same way: - show an existing implementation ......
I've invited JP Boodhoo to Brussels this weekend. If you want to get together, just come on over. The first drink is on me. From there on, the team decides who pays the next drink, like agile teams do ;-) Place to be: Sint-Gorikshallen: Sint-Goriksplein 1, 1000 Brussel When: Saturday September 20th @ 21:00 hours ......
In our new project, we've decided to use FitNesse with slilm. All in all, slim is an improvement over fit. The thing I like most is the error messages when running tests. These are now much clearer than with fit. The fixtures are now plain old objects (that's poo -- you can call them pojo, poco or even pono for all I care). So no dependency anymore on fit. Slim is also supposed to run faster, but right now our project is not really big enough to notice the difference. There's two things I don't like ......
Since the beginning of July, I've been working on a java project. The language is very close to C#, although it has some minor irritating differences, like the lack good generic support, extension methods and closures. The big difference however is not in the language, the tools, the libraries or the utilities. One of the big differences I've seen is the community. I've been on many projects that have worked exclusively with Microsoft tools, libraries and (god forbid) examples. When the subject is ......
Note to the one reader I have (Hi mom!): I accidently deleted this post, so this is a repost. I’ve just started a new initiative in our company: a coding dojo. I first saw this last week at the XP days, and I loved every minute of it. Emmanuel Gaillot introduced us to this idea with a simple challenge: compare poker hands. The implementation was written in Haskell from scratch, using TDD and Baby Steps. As Bob Martin mentioned: the beauty of this was that most of the attendees did not know Haskell, ......
Full .net Archive