Tagcoding

Follow me

Joan Vilariño

Senior .NET Developer at Ohpen
Developer for more than 25 years and IT, gadget, mobile and electronics enthusiast working and publishing from Barcelona.
Follow me

New tools for C# 6.0. nameof(identifier) looks very , very useful!

http://www.kunal-chowdhury.com/2014/12/csharp-6-nameof-expression.html

Seed project for .NET 4.5, EF, Autofac DI and Unit testing

Follow me

Joan Vilariño

Senior .NET Developer at Ohpen
Developer for more than 25 years and IT, gadget, mobile and electronics enthusiast working and publishing from Barcelona.
Follow me

I found this article explaining how to create a good start project using .NET 4.5 with Entity Framework Code First, Autofac for Dependency Injection (DI) and Unit testing.

It can save you time when you start a new project, and it’s architecture is very well implemented from what I’ve seen.

Give it a look at

http://techbrij.com/service-layer-entity-framework-asp-net-mvc-unit-testing

ASP.NET performance tips

Follow me

Joan Vilariño

Senior .NET Developer at Ohpen
Developer for more than 25 years and IT, gadget, mobile and electronics enthusiast working and publishing from Barcelona.
Follow me

I’ve come across a little article that gives us some good advice to enhance performance in our ASP.NET applications, here they are:

Tips to improve the performance of asp.net application

    • Session State : If you are not using session state then disable it. You can disable it for the particular page instead of every pages
    • Validations : Try to use client side validation, instead of server side validation. Server side validation will make load on server
    • Use HTML Controls : Try to use html controls instead of asp.net controls
    • Use Repeater : Use repeater instead of datagrid, datalist, listview
    • Data Caching : Use data caching where you can implement it. Identify static data, which is not frequently updated and implement caching for that
    • Null Check : Always check null before accessing cache items
    • IsPostback : Always use IsPostBack on your page
    • Disable Tracing : In web config file disable the tracing
    • HTTP Compression : Make sure HTTP Compression is turned on
    • Paging : Use paging to retrieve the data, only show small subset of data, for faster page load
    • Combine CSS – JS files : Combine css & js files, it will reduce no of requests and will help to faster page load
    • CDN : Use CDN for hosting images and script files
    • HTTP Modules : Remove http modules which are not used
    • Garbage Collection : Always dispose object once you have used it
    • Avoid Exceptions : Your code should attempt to avoid exceptions to improve performance because exceptions incur a significant overhead.

Source: http://performanceimprovementaspnet.blogspot.in/2014/11/aspnet-performance-improvement.html

 

Follow me

Joan Vilariño

Senior .NET Developer at Ohpen
Developer for more than 25 years and IT, gadget, mobile and electronics enthusiast working and publishing from Barcelona.
Follow me

I found this article today, and it’s quite good. It shows the differences programming in Javascript when you do it callback oriented or promise oriented.

The article includes a repository and unit testing using Traceur for ES6 transpilation, Bluebird for promises and Mocha / Should for unit testing

Worth a read!

http://lkrnac.net/blog/2014/10/promises-vs-callbacks-comparison/

Fluent interface & Builder patterns, good mixup!

Follow me

Joan Vilariño

Senior .NET Developer at Ohpen
Developer for more than 25 years and IT, gadget, mobile and electronics enthusiast working and publishing from Barcelona.
Follow me

In this article I’m gonna explain the Fluent interface and Builder coding patterns and how to use them together to make clean and elegant code in your applications.

We will create a sample project using both patterns. You can follow the article step by step, download the project code from my public repository at BitBucket for git users, or just download the .ZIP file using this link, and start fiddling with it right away .
Continue reading

© 2018 My Coding Corner

Theme by Anders NorénUp ↑

%d bloggers like this:
Skip to toolbar