Setup SonarQube for C# Projects

Recently I have started to use SonarQube and I have to say that I like it. In this post I will talk about this tool and the process of installation and configuration. My objective is to analyse C# projects.Setup_SonarQube_for_ C# _Projects_img1

SonarQube is an open source platform for continuous inspection of code quality. It  uses various static source code analysis tools like Checkstyle, PMD or FindBugs to obtain metrics that can help improve the quality of our programs’ code.

Continue reading

Advertisements
Posted in Continuous Integration | Leave a comment

Creation of Components in Angular 1.5

With Angular 1.5 we can divide our application into components, making use of the .component () method. Before we could do it by using directives but this way the code is better adapted and prepares us for the jump to Angular 2.

The fundamental difference between directives and components is that, while directives receive a function, just like controllers or factories, the components receive an object. It really is similar in the sense that the directives at the end should return an object and the components directly serve that object to the component () method.

Continue reading

Posted in AngularJs | Tagged , | Leave a comment

Onion Architecture

The term Onion Architecture or Architecture onion was coined by Jeffrey Palermo in the year 2008 because of the big problem that comes with the style N Layers that is the unnecessary coupling that is generated between the layers and between several responsibilities of infrastructure (database, services Web, mail servers, ftp servers, etc). This architecture’s main aim is to address the challenges faced with 3-tier architecture or n-tier architecture, and to provide a solution for common problems.

Continue reading

Posted in Architecture | Tagged | Leave a comment

AngularJS Custom Directives for dummies

AngularJS directives are the commands which communicate with angular library and tell angular to do a job on the HTML tags, they extends the functionalities of the HTML elements. AngularJS provides many built-in directives e.g. ng-app, ng-model, ng-repeat, ng-controller etc. Thus, ng-model is used to do data binding. AngularJS also gives us the ability of writing our own custom directives, We can extend the abilities of HTML’s template to do anything, we can imagine.

Continue reading

Posted in AngularJs | Tagged , | Leave a comment

Factory Design Pattern Real Word Example

Factory pattern is one of the most used design patterns. The Factory pattern is a design pattern used to define a runtime interface for creating an object. It’s called a factory because it creates various types of objects without necessarily knowing what kind of object it creates or how to create it.

Continue reading

Posted in Architecture | Tagged , | Leave a comment

Implementation of Repository and Unit of Work Patterns using EF

The repository pattern is closely related to data access and allows us to have an abstraction of the implementation of data access in our applications, so that our business logic does not know or is uncoupled to the data source. In a nutshell this means that the repository acts as an intermediary between our business logic and our data access logic to be centralized in a single point, and thus be able to avoid redundancy code. This abstraction of the data access allows us to decouple and test a simpler way our code, since being uncoupled we can generate unit tests more easily.

Continue reading

Posted in Architecture | Tagged , , | Leave a comment

Asp.net Cache Implementation with a Fallback Function

The power of caching in ASP.NET is exposed via the Cache object. Using the Cache object which is in the namespace System.Web.Caching, you can store any serializable data object, and control how that cache entry expires based on a combination of one or more dependencies.

Continue reading

Posted in ASP.NET | Tagged , | Leave a comment