Category: Coding Corner

  • Reverse Engineer Your Way to Modernized Code

    Many software developers are tasked with completely refactoring legacy code into new code bases using modern paradigms. An effective approach can be Model-Driven Engineering. With this approach, the old code is reverse engineered so that its functionality and hierarchy are fully understood. From this point of understanding, a clear model is formed. Then, as Rick […]

  • learn LINQ in 5 minutes

    Translating SQL to LINQ can prove difficult for new and experienced C# developers. This post contains common SQL queries written in LINQ. I hope it’ll serve as a reference when writing LINQ queries. I’ll use a MS SQL database and Entity Framework for my examples. However, these examples can be extracted to other ORMs and […]

  • LINQ vs Lambda vs loop – A performance test

    I was wondering about the benefits of using Linq over Lambda or vice versa for data filtering. I knew that the for loop was the fastest. But I was really interested to know whether lambda expression had any advantage over traditional LINQ syntax. For my understanding, both LINQ and lambda were same. Lambdas are the […]

  • Pass Data from View to Partial View using session without using model

    One of the place I had to pass a value from a view to a partial view but I was not supposed to alter the model. Hence. I went back to the roots and used session to pass the value between the views. Whats important here is that, as it is a session value, you can […]

  • Freeze or lock rows and columns

    To keep an area of a worksheet visible while you scroll to another area of the worksheet, you can lock specific rows or columns in one area by freezing or splitting panes. When you freeze panes, you keep specific rows or columns visible when you scroll in the worksheet. For example, you might want to […]