Refactoring nightmare Entity Framework query with performance in mind – Part III

One of key problem solving methodology, PDCA (Deming circle), distinguishes 4 separate stages one should do in order to approach any problem: Plan - identify what the problem is and plan best way to solve itDo - implement your solution trialallyCheck - inspect, whether your solution brings better resultsAct - if results are better, implement your solution and make it new standard. If not, recreate the cycle for another potential solution PDCA cycle. Fot: Wikipedia At this point…

Czytaj dalejRefactoring nightmare Entity Framework query with performance in mind – Part III

Refactoring nightmare Entity Framework query with performance in mind – Part II

I heard that first step to solve a problem is realizing you have one. It took me a while to get there. In the routine of everyday life there is always something more important, more urgent. Investing time in reworking things - especially things you'd like to leave behind you - is never an easy decision. But once you make it, you are already over the hump and things start to fall into place.. Taming the monster The…

Czytaj dalejRefactoring nightmare Entity Framework query with performance in mind – Part II

Refactoring nightmare Entity Framework query with performance in mind – Part I

I think every dev has a code he's not particularly proud of. Sometimes you start with relatively simple code, but as the time passes you keep adding functions and after some time you realize you've created a monster! You feed it as it still works and does its job, but an idea to refactor it just gives you a headache.. You learn to live with it and as you stay out of each other's way, all is fine..…

Czytaj dalejRefactoring nightmare Entity Framework query with performance in mind – Part I