lowendahl

Stories submitted by lowendahl

Why lambdas seem broken in multithreaded environments (or how closures(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 1 year, 9 months ago

A run down on what's happening behind the covers with lambdas and anonymous delegates that makes them seem broken in a multithreaded (or deferred execution) environment. read more...

add a comment |category: |Views: 4

tags: another

Slice up your business logic using C# Extension methods to honor the c(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 1 year, 11 months ago

Business logic in a model can quickly clutter down the classes. Using extension methods you can refactor that logic to Slices which can easily can be added to the object when required. This post discusses why and shows you how. read more...

add a comment |category: |Views: 3

tags: another

Executing lambdas on transaction commit - or Transactional delegates(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 2 years, 2 months ago

One great thing with the TransactionScope class is that it makes it possible to include multiple levels in your object hierarchy. Except delegates. This post makes lambda delegates participate in a transaction scope and execute on Commit. read more...

add a comment |category: |Views: 6

tags: another

Pattern focus: Decorator pattern(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 2 years, 3 months ago

The decorator pattern is a pretty straightforward pattern that utilizes wrapping to extend existing classes with new functionality. It’s commonly used to apply cross-cutting concerns on top of business classes, which avoids mixing that up with the business logic. Frameworks like Spring.Net uses this pattern to apply it’s functionality to your classes. read more...

add a comment |category: |Views: 18

tags: another

Tracking a property value changes over time: Temporal property using N(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 2 years, 3 months ago

A common problem that often needs to be solved is to answer a question like “how did my inventory look 1 month ago?”. Keeping this kind of history, and query over it, can be tedious and is something that need to be thought about for a bit. In this post shows how you can track a single property in time using the Temporal property pattern written down by Martin Fowler and NHibernate to persist the change over time. read more...

add a comment |category: |Views: 18

tags: another

Duoblog: Everybody wants choices but nobody wants to make a choice(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 2 years, 4 months ago

Johan Lindfors, Microsoft and I discussed the growing opinion that software development and .net framework is getting to complex on MSN the other day. He suggested that we write a duoblog about it, an initiative started by Chris Hedgate, don’t miss Johan’s view on the same subject here: http://blogs.msdn.com/johanl/archive/2009/10/08/duoblog-everybody-wants-choices-but-nobody-wants-to-make-a-choice.aspx read more...

add a comment |category: |Views: 2

tags: another

Managing Parent/Child relationships with NHibernate (Inverse managemen(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 2 years, 4 months ago

When working with parent/child relationships in object models it is important to know what kind of Inverse Management your ORM technology have. Inverse management means handling all the relationships and keys shared between the parent and the child. This post will help you understand how NHibernate manages these relationships and what options you have. read more...

add a comment |category: |Views: 35

tags: another

Top 10 reasons to think twice about using Linq To Sql in your project(blog.lowendahl.net)

submitted by lowendahllowendahl(750) 2 years, 5 months ago

I love ORM technology. I use a lot of it when building applications. I never did get completely in love with Linq To Sql though. I’ve been using it a lot to teach ORM fundamentals just because the learning curve is really low. It just hasn’t appealed to me for production systems. In my current project I’ve had reason to revisit the reasons why Linq to Sql failed to appeal me and this is the top 10 list. read more...

add a comment |category: |Views: 40

tags: another

Behavior driven development, BDD, hype or a paradigm shift?(lowendahl.net)

submitted by lowendahllowendahl(750) 3 years, 4 months ago

The notion of BDD is floating around more frequently in the community lately. But what is BDD and is it just a hype? read more...

add a comment |category: |Views: 24

tags: another

LINQ To SQL: Support for Eager Loading, Really?(lowendahl.net)

submitted by lowendahllowendahl(750) 3 years, 11 months ago

Eager loading is an optimization technique to load all objectes needed in a graph in one go. Linq To Sql claimis to support eager loading, but is that the real thruth? read more...

add a comment |category: |Views: 47

tags: another

Pattern Focus: Singelton V2.0(lowendahl.net)

submitted by lowendahllowendahl(750) 3 years, 11 months ago

Singelton has been around for ages, it's about time someone remodernized the pattern. Utilizing generics, implict casts, template method and some reflection V2.0 of singelton now enables a developer to create a reusable Singelton class that allows for usage like: MyFactory factory1 = new StaticSingelton("Init data"); MyFactory factory2 = new StaticSingelton("Init data"); Which makes sure that factory1 and factory2 shares the same instances of MyFactory. Want to know how? Read the full article. read more...

add a comment |category: |Views: 4

tags: another

Finding the DataContext for a single Linq To SQL Object - A first atte(lowendahl.net)

submitted by lowendahllowendahl(750) 4 years ago

So what if you have an object but lost track of your datacontext? This post and a follow up, shows strategies to find the DataContext directly from your Linq To Sql objects through the INotifyPropertyChanging interface and events. read more...

add a comment |category: |Views: 0

tags: another

Composing entities in a SOA using LINQ(lowendahl.net)

submitted by lowendahllowendahl(750) 4 years ago

Decomposition of entities in a SOA can be a pain. This post eases the pain using LINQ as the technology for re-composing the entities. read more...

add a comment |category: |Views: 8

tags: another

Having Fun with Anonymous types and Extension Methods in C# 3.0(lowendahl.net)

submitted by lowendahllowendahl(750) 4 years, 3 months ago

In C# 3.0 Microsoft has added some neat dynamic features while still being straticly typed. List and dictionary initilizers is one such dynamic feature. In this post Patrik Löwendahl describes how to use some other C# 3.0 features to create a variation of the provided List / Dictionary initilizers. With anonymous types, extension methods and fluent interface dictionaries can now be simply initilized. read more...

add a comment |category: |Views: 25

tags: another

Pattern Focus: Mediator Pattern(lowendahl.net)

submitted by lowendahllowendahl(750) 4 years, 4 months ago

The mediator pattern explained as a story with two prior attempts of solving a problem which emerged into the third, using the mediator pattern. Example in C#. read more...

add a comment |category: |Views: 38

tags: another

Encapsulation and Automatic properties in C# 3.0(lowendahl.net)

submitted by lowendahllowendahl(750) 4 years, 5 months ago

With C# 3.0 MS realeases Automatic Properties as a simplified encapsulation that generates getters and setters for a similary automated backing field. But is this really the way to go? Should you have dumb getters/setters or are you violating YAGNI when doing so? What are the rational behind MS decision to do so. This post address all thoose questions. read more...

1 comment |category: |Views: 38

tags: another