C# – Designing Applications using Interface

Interface.jpg
Image credit shakespearsglobe
We always hear the word Interface when we are creating Systems whether it be in Java or C# language. We all know that Interfaces are just binding contracts between two different entity or Classes. Another reason to implement Interfaces is too have a more decoupled system or a more cleaner Separation of Concerns. But sometimes like me, has a hard time grasping the true value of Interfaces in creating a program.

Continue reading

C#: Design Patterns – Singleton

In today’s article I would like to briefly discuss one of the commonly used design pattern in software engineering which is Singleton Pattern. Singleton pattern is usually being used if you are creating a system that only needs one instance of a class and that instance will be used throughout the lifecycle of the application. Common scenarios of using Singleton pattern is for logging, database access, etc.

Continue reading

Xamarin: GETTING STARTED WITH PRISM 6 (PART 2) – Command

XamarinMainImage
Image Credit to TechCrunch

For the second part of this Getting started Xamarin with Prism series, I would like to discuss on how to use Command in Xamarin forms. By the way if you missed the Part 1 of this series you can check this article.

Command

When you say Command, for example in Win Forms it’s just an event that was fired
due to let’s say a button click or an event brought by textbox lost/on focus but in Xamarin
Commands are just methods that are directly binded from your view e.g. (Button, MenuItem, ToolbarItem) and executes the binded method in your ViewModel.

Continue reading

Xamarin: Getting Started With Prism 6(Part 1)

 

XamarinImageFromWired
Image Credit to Wired

 

In today’s article I will discuss about the basic requirements you need to perform for running Xamarin Forms with Prism 6 framework. So what is Prism by the way, Prism is a framework which originated as a XAML application framework mainly during the early days of WPF. It was previously maintained by the Patterns and Practices division of Microsoft prior to becoming an open source platform. Here are the following features we can get for implementing Prism in our Xamarin forms:

Continue reading

C#:Basic Azure Storage Table Operations

Last time in our discussion on creating Azure storage table, using our developer’s account, we have successfully deployed our Azure storage using the M.S. Azure portal. We also used a tool called Azure Storage Explorer in creating our sample Table which also contains sample Entities. For today’s article I will teach you on basic operations, e.g. (Insert, Select, delete) you can perform on your Azure Storage using a C# Console application.

Continue reading

Visual Studio 2015: Code Metrics

visual studio 2015.png

Many of us programmers  have the mentality that it’s just okay to implement codes in anyway as long as it is running. Well to tell you the truth you should already change or move away from that kind of mindset. Software development has its own guidelines like abstraction, refinement, modularity and other same concepts that you can use to guide you during coding and avoid the so-called programming pasta. One tool I use in Visual Studio 2015 is Code Metrics. For today I will show you how to generate Code Metrics on your project. Then I plan to discuss deeper on the different code metrics in the next succeeding articles.

Continue reading