Visit of Ivar Jacobson

Last Thursday was an exciting day. After a not-so-well-planned post about a previous article, we finally had the chance to host a visit from one of the giants of IT, Ivar Jacobson.

I’ve made a brief recap of his visit here (in Swedish). What stood out for me was not just the wealth of experience he brought, but also his enduring enthusiasm for the field.

I was particularly struck by his perspective on the IT industry as a fashion industry, constantly chasing trends. Ivar now emphasizes focusing on the practices used within various processes, rather than the processes themselves, as a way to provide great support for organizations.

One of his statements made me laugh: “We really have gone crazy with the documentation” (my translation). This from the father of RUP, a methodology that many have turned into a documentation-heavy behemoth…

It was truly an honor...

Read More

PowerPoint Online – 280 Slides

I recently discovered a great tool for creating, editing, and presenting slideshows online: 280slides.com. It’s a free platform that offers a lot of functionality.

With 280 Slides, you can:

  • Create and edit presentations directly in your browser
  • Upload presentations in PowerPoint format
  • Save your presentations “in the cloud”
  • Download presentations in several formats, including PPT(X) and PDF

I find it to be a really useful tool!

By the way, this is my 600th post. It’s been a fantastic journey, and I have no plans to stop anytime soon. I never imagined when I started here that I’d reach this milestone.

Read More

Vacation memories

Although some time has passed since the vacation, I realized that I haven’t posted photos from it. Here is a short summary of what we did and where we went during those lovely summer months. Not too far away…

Albert enjoying himself on the seashore Albert enjoying himself on the seashore - he stayed here most days…

Here we are on our way into the water Here we are on our way into the water. Again.

Elin and I in Liverpool Elin and I went to Liverpool for a short holiday without Albert. Together with Kalle and Fanny, here is a picture from the shores of the Irish Sea.

Albert in Västra Bodarna Albert in Västra Bodarna where his cousin Hilda lives. She wasn’t born yet, but she is now.

Lovely barbecues on Hyppeln And...

Read More

Reference Work 3 – TDD by Example

Recently, I’ve been diving into some foundational literature in the IT field. It’s a great way to get acquainted with influential figures and ideas that frequently come up in current developer discussions.

After tackling Patterns of Enterprise Application Architecture and Clean Code, I moved on to Test-Driven Development: By Example.

This book was by far the most enjoyable IT book I’ve read. I found myself laughing out loud and thoroughly engaged throughout. For instance, check out this paragraph about Kent Beck’s early days.

The book uses two main examples to explore various TDD disciplines. Kent Beck discusses patterns in TDD, including design patterns, testing patterns, and refactoring patterns.

Overall, the book focuses more on the mindset necessary for effective TDD rather than just the procedural steps, though those are covered as well.

I nearly finished the book in one sitting. Thank you, Mr. Beck, for such...

Read More

Pair Programming Benefits and Arguments

As I wrote earlier, I attended my first ever Alt.Net un-conference this weekend. It was a rewarding experience, and meeting fellow developers in such an informal setting was fantastic. The open spaces were particularly valuable.

One of the open spaces I participated in focused on Pair Programming. The discussion quickly evolved into how to persuade developers, management, and others that it’s a beneficial practice.

Here is a recap of some of the insightful points from that session:

Good Ideas

  • Switch the keyboard often: One developer writes the test and another handles the implementation, or use a Pomodoro timer for ten-minute intervals.
  • Switch partners frequently: For example, once a day.

Arguments for the Benefits of Pair Programming

Read More

Marcus doing new stuff

Two big things will (or are in the process of) happen this weekend.

The first is that I have gone over to the dark side. Yes, I know, I couldn’t resist anymore. The temptation was too great.

overview-gallery4-20090608[1]

I have bought a MacBook Pro. And have just installed it – that process was so smooth. I want to do it again!

OK – the next thing is that I will speak at a conference for the first time ever. Actually, it’s an Un-conference for alt.net Sweden. And it’s a lightning talk, but that only makes it harder, I think. 10 minutes – it’s not much.

The subject is “Let Fluent NHibernate test your mappings.” And it relates to some of my recent findings.

I know that I have spoken some bad words about Apple, so I suspect some pretty harsh comments from...

Read More

AutoMapping with FluentNHibernate

I came across this post by Ayende which perfectly captures my goal for achieving persistence ignorance:

“After that, you are done. Just create an entity in the proper place, hit the /database/create and have a lot of fun.”

I particularly enjoy the “fun” part of this quote! My aim is to configure conventions and then simply code the model as I desire, allowing the framework (NHibernate in this case) to handle the storage details.

The Fluent NHibernate framework has been updated since Ayende’s post. I explored the documentation, including AutoMapping, Conventions, Available Conventions, and discovered some shortcuts. Additionally, this article explains how to transition from the old convention style to the new one.

I’ve put together an updated example inspired by Ayende’s post, including a feature for automatically setting cascades for OneToMany and ManyToMany relationships.

Here is the most...

Read More

Pastie – Your Online Clipboard

If you’re looking for a simple way to share code snippets without the hassle of email or chat messages, Pastie is a great tool.

Just visit the site, paste your code, optionally select a programming language, and you’ll receive a URL to share your code snippet. It’s a handy way to quickly get feedback or collaborate with others on coding problems.

Read More

Fluent NHibernate CheckReference Throws Expected ‘X’ but Got ‘XProxy’

Lately, I’ve been working extensively with Fluent NHibernate and encountered a recurring issue.

When setting up a mapping test with PersistenceSpecification<T> to test a reference (using CheckReference, for instance), I often get the following exception:

System.ApplicationException: Expected ‘Marcusoft.Product' but got 'ProductProxy…' for Property 'Product'

This issue arises because NHibernate generates a proxy class, which causes problems when performing equality tests on that class. To address this, I found a base class that resolves this problem, provided by the Hibernating Rhinos (what a name!).

You can read more about this solution here or check out my code here.

Read More

Vasa Band and Saturday Night Success

This weekend, the band I play in, the Vasa Band, had the privilege of performing at the Salvation Army’s regional congress in Örebro. We were invited to participate in the musical festival on Saturday.

In preparation, a few of us brainstormed ways to bring something new and different to the performance. We drew inspiration from some great bands and put together a short program featuring music from our latest CD – Priority.

Our performance was very well received, making a significant impact. More importantly, we felt that many people experienced the presence of God and his message through our music. This is always our greatest hope and longing, and it was particularly evident on Saturday.

It feels wonderful to continue this journey with my fellow band members.

I’ll try to upload some photos from the evening soon.

Read More