Skip to content

Languages

Go Maps Introduction for Beginners
By

Maps are unordered collection of key value pairs. In other languages they are known with various names viz. hash tables, dictionaries and associative arrays. Here’s an example of a Key-Value pair – Working Days of the week denoted by integer keys. Key Value 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday In the […]


Go Programming – Arrays and Slices
By

Arrays are collection of similar items that share a common name. A common scenario would be a case where you want to store student’s scores in an exam. Array Declaration var score 3[int] The above can be read as – Score is an array of type integer that can hold a maximum of 3 records. […]


Golang Switch Case with Sample Code
By

Switch Case statements are an efficient alternative to if…else construct. Both the constructs i.e. if…else & switch case are similar and used to select & execute one of many available code blocks based on certain conditions. So, when to use switch case? When the number of alternatives/options are high (say more than 4) an if else looks […]


Code Example – If Else in Go Programming
By

Google’s Go programming language (Golang) is gaining momentum and IMHO it has the potential to become one of the most popular languages in near future. It’s clean, simple and at the same time addresses a few of the challenges of modern computing. There’s no statistics to support but Go is getting popular with programmers of […]


Exception Handling and Using Transactions in WCF Service
By

Exception handling – WCF perspective WCF service is a programming paradigm that offers a common platform for writing service contracts using Microsoft provided CLR environment where heterogeneous platforms/clients technology may consume these contracts. So propagation of exception details occurred in service to the client applications must happen in a platform-agnostic manner so that a client […]


An Introduction to ASP.Net MVC – Working Code Sample
By

The objective of ASP.Net MVC design pattern is separation of concern i.e. segregation of three building blocks of any application – 1. Model – comprises the business objects or the raw entities 2. View – the representation / interaction of the entities with the real world 3. Controller – the heart of any application where the business rules […]


A Short Guide – Exception handling in C#.Net
By

Introduction Exceptions can be defined as a deviation from the expected flow of a program caused by logical, I/O or environmental issues. So the concept of structured exception handling enables programmers to identify and safeguard themselves from those potential code regions that might get subjected to any of these factors. In some cases, when an […]


Google Go Programming – For Loop Adventure
By

You might have heard about Google Go programming language. It’s a new programming language, just about 5 years old, which is getting loads of traction among the developer community. I am personally trying this from a couple of weeks and found it appealing. First thing first, Go is concise and neat – unlike most of […]


Security Requirements of a Java Application
By

Securing an application now a days is not an easy task.  To secure an application there are steps that we can take to mitigate the risk of security failures. In Java, security of an application is related to running our application under some protection of a security manager. To do this we must have a […]


RMI (Remote Method Invocation) in Java
By

Distributed applications are a vital necessity of our times. For creating distributed applications in Java we use RMI (Remote Method Invocation) and EJB (Enterprise Java Beans). We can access files by calling the methods from any machine (known as Remote Machine) on Internet. Java was designed with the distributed environment and it can be transmitted over […]