slo2ols

Stories kicked by slo2ols

How to cook a loop(osmirnov.net)

submitted by splovesplove(24) 10 months, 1 day ago

With coming of Linq we rarely write loops. Actually, the most part of data fetching tasks, those earlier was done by loops, today could be simply done by Linq-to-Objects. Nevertheless, the loops are widely used for different scenarios and a developer should try to write a good loop. This post was written for beginners, but I hope that experienced developers will find in it something useful. read more...

1 comment |category: |Views: 35

tags: another

Entity Framework: One step closer to LOB apps(osmirnov.net)

submitted by slo2olsslo2ols(618) 10 months, 13 days ago

Not so long ago I wrote about the problems of using Entity Framework (EF) in LOB applications. Just a few days EF team has announced June version. This release solves some of the problems I have described, so I could not pass by and decided to write this post. In it I 'll do a brief review of main features in the context of LOB apps. read more...

add a comment |category: |Views: 75

tags: another

Expression cannot contain lambda expressions(osmirnov.net)

submitted by slo2olsslo2ols(618) 10 months, 28 days ago

Try to open any of Watch / Immediate and Locals windows of Visual Studio in debug mode and to add lambda expressions, and you will see this message. Own reasons exist for it and they are very detailed in these posts. Unfortunately, the posts also lack information about resolving this problem. While developers are confronted daily with the need to filter collections in debug windows and the support for lambda expressions would greatly simplify their work. read more...

add a comment |category: |Views: 92

tags: another

To repeat or not to repeat yourself?(osmirnov.net)

submitted by slo2olsslo2ols(618) 10 months, 29 days ago

What do modern developers if they are forced to write repeated code? Of course, they follow DRY principle and try to write generic code that covers as much as possible cases and can easily be extended to the rest. But sometimes such a change is complex, inefficient, or simply impossible. Here template engines come into play that allow the developer to set the rules and get your service code. I propose to try to take the advantages of both these approaches. read more...

add a comment |category: |Views: 51

tags: another

Why Entity Framework is still not ready for LOB apps(osmirnov.net)

submitted by slo2olsslo2ols(618) 11 months, 13 days ago

I work hard and write about ORMs. Especially about Entity Framework. Naturally I have accumulated a list of problems that I hope the developers will solve in the near future. As now their solution is too expensive. Under expensive solution I mean a set of hacks that are difficult to maintain. Let’s start. read more...

add a comment |category: |Views: 17

tags: another

DynamicObject: AOP for the poor(osmirnov.net)

submitted by slo2olsslo2ols(618) 11 months, 18 days ago

Use of AOP without help of third-party frameworks is difficult and often all of their functionality is not needed. In this post I want to share an interesting example of how I replaced AOP in its typical problem for a dynamic type. read more...

add a comment |category: |Views: 48

tags: another

Using Protocol Buffers on .Net platform (Part II)(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year ago

The last time we familiarized ourselves with Protocol Buffers and tried to use them in .Net application. Today, we continue to discuss and answer remaining questions. Specifically let's talk again about portability and using of protobuf-net in WCF. read more...

add a comment |category: |Views: 32

tags: another

Using Protocol Buffers on .Net platform (Part I)(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year ago

Today we will talk about using Protocol Buffers on .Net platform. I will tell and show you what it is and why it is needed .Net developer. A format of the post is different from the usual format and it is designed as a discussion. What I think should improve the understanding of the material by readers. read more...

add a comment |category: |Views: 85

tags: another

Boosting Stackoverflow.com(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year ago

If you are readers of my blog, then you know that I write a lot of ORMs. Naturally, I could not miss a post of Sam Saffron about developing by him own lightweight ORM called Dapper. For those who do not know Sam, I want to point out that he is one of the key developers of Stackoverflow. In addition, before he wrote the post it was known about Stackoverflow's architecture that it was included the Linq-to-Sql. This is the main reason why I, like other developers, began to study the source code for Dapper. As it turned it a little, or rather just one file. Perusing it I thought whether it can be done even faster or not? Boost Sam's code was not simply too high quality it was written. Results are in this post. read more...

add a comment |category: |Views: 62

tags: another

Introduction to BLToolkit (Part III): The success story(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 1 month ago

We have already talked about that BLToolkit can serve as a substitute as ADO.NET, and LINQ to SQL. Time to talk about the unique capabilities of this ORM. In this post I will tell about how to expend BLToolkit and open secrets of its performance. read more...

add a comment |category: |Views: 87

tags: another

Introduction to BLToolkit (Part II): With LINQ to SQL's taste(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 1 month ago

In the previous post we talked about what the BLToolkit was originally created as a high-level wrapper on the ADO.NET. Today we'll talk about why BLToolkit is an ORM and its similarity with LINQ to SQL. As I promised, we will carefully consider a support of Linq. read more...

add a comment |category: |Views: 60

tags: another

Introduction to BLToolkit (Part I): ADO.NET Wrapper(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 1 month ago

Last year ORMeter site made ​​a lot of noise. Its authors have done what many asked in various forums. They compared the performance of majority popular ORM on .Net platform. As a result developer's opinions were divided. Someone said that tests are out of touch with reality, someone has found another argument for infinite holy wars, someone thought that the site just advertise own product, etc. But there was another result. The developers around the world found out about such ORM as BLToolkit thatin almost all tests proved to be a leader. It is time to get to know it better. read more...

add a comment |category: |Views: 176

tags: another

What is your developer's position?(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 2 months ago

"I seek Senior Developer position" - something like this begins Objective section in most CVs. The point is not that a company is looking for a developer precisely on such position and that the developer appreciated not only themselves but also other developers of this company, when he wrote his CV. In today post we will describe how to make this assessment developers and recruiters. read more...

add a comment |category: |Views: 5

tags: another

Procrustean repository(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 2 months ago

We have already examined the Repository pattern. For example, here and here. Today, let's see how many examples of this pattern force a developer thinks that any repository must include concrete methods and nothing more. Often it is correct and you have pure DDD application. But what if your data source differs from database and has specific methods to modify data? read more...

add a comment |category: |Views: 23

tags: another

Tracking database changes (Part II): Complex audit(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 2 months ago

The main drawback of a simple audit is that it is impossible to determine what values have had the account at any time. We keep only the final state. And if we need a change history, we have to come up with something better. Let's do that. read more...

add a comment |category: |Views: 15

tags: another

Tracking database changes (Part I): Plain audit(osmirnov.net)

submitted by slo2olsslo2ols(618) 1 year, 2 months ago

For any serious application working with a database is often necessary to consider a tracking changes system. Each solves this problem in its own way, but honestly I'm surprised how a few modern ORMs can offer us for it. Let's look at this situation more closer. read more...

add a comment |category: |Views: 327

tags: another