Tuesday, February 28, 2017

Interview Questions

1) When will you use composition and when you use inheritance?
2) What data structure have you used in CLX rule engine?
3) How do you get storage array status?
4) I have 2 threads one should print odd numbers and another should print even numbers, how would you do it?
5) What is live migration in CLX?
6) What advantages composition has than inheritance?
7) What design patterns you used in your projects?
8) What is observer pattern?
9) What is MVC?

A quick view on Design Patterns

A quick view on Design Patterns:

https://csharpdesignpatterns.codeplex.com/

Thursday, February 23, 2017

Common Type System (CTS) in .NET

Common Type System (CTS) is the powerful unified way of making all types as objects. Object is the base class for any type in C#. Object is reference type though.

Here is the quick snap of the CTS:






















C# types are broadly classified as: Value type & Reference type. This classification is based on size of types. Value types basically stores value at the given memory location (mostly in stack) whereas Reference types stores data on managed heap.

Value Types:
int
float
char
struct

Reference Types:
.NET framework class library
User defined classes, interfaces, delegates, events, array, string

C# design goal is to UNIFY every types into OBJECTS. Hence, all types are derived from System.Object. When we assign any value into object, the conversion happens IMPLICIT and the process is called BOXING.

Whereas when we try to pull data from boxed object into particular type, we need to type-cast the data into the container type which is called UN-BOXING. The type casting is much required here as the object type would have assigned any other value by any other thread.

1x1 - Java Vs JavaScript

Key differences between Java and JavaScript: Java is an OOP programming language while Java Script is an OOP scripting language. Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only. Java code needs to be compiled while JavaScript code are all in text.

TypeScript is OO scripting on top of JS

Wednesday, February 22, 2017

Pointer Arithmetic!

Pointers are so powerful programming construct in C++. If it is used wisely then you could achieve so many things with ease; if not used correctly then you have to pay for it. Here is one worth point of note:

// Pointer arithmetic/offset works as per the element/casted element TYPE




Tuesday, February 21, 2017

.NET Framework Vs .NET Core

The .NET Framework is used to develop Windows applications using WPF and Windows Forms and Web applications using ASP.NET MVC.

.NET Core is open-source, cross-platform and supports UWP and ASP.NET Core libraries. UWP is used to build Windows 10 targeted apps and ASP.NET Core is used to build Web apps for Windows, Linux, and Mac operating systems.

Universal Windows Platform (UWP), is a platform-homogeneous application architecture created by Microsoft and first introduced in Windows 10. The purpose of this software platform is to help develop Metro-style apps that run on both Windows 10 and Windows 10 Mobile without the need to be re-written for each


A Simple Explanation on 'Internet of Things' - IoT

What is IoT?
Simply put, this is the concept of basically connecting any device with an on and off switch to the Internet (and/or to each other). This includes everything from cellphones, coffee makers, washing machines, headphones, lamps, wearable devices and almost anything else you can think of.

The relationship will be between people-people, people-things, and things-things.

How does this impact you?
Say for example you driving car and listening music and got a phone call what if your music go low automatically as soon as you connect the call and get back to original volume when you finished the call?, What if your alarm clock wakes up you at 6 a.m. and then notifies your coffee maker to start brewing coffee for you? What if your office equipment knew when it was running low on supplies and automatically re-ordered more? What if the wearable device you used in the workplace could tell you when and where you were most active and productive and shared that information with other devices that you used while working?

On a broader scale, the IoT can be applied to things like transportation networks: "smart cities" which can help us reduce waste and improve efficiency for things such as energy use; this helping us understand and improve how we work and live.

How does this impact IT sector?
IoT is expected to impact the way e-commerce companies' function, besides revolutionizing Mobility, Big Data, Analytics, Devices and Business Processes. While there will be numerous opportunities, a career in IoT will require niche skill sets. 

IT firms require integrated capabilities to handle hardware devices/sensors, embedded software, networks, web applications and application software. Knowledge of Engineering, IT and communication is essential to create a successful IoT business. Advances in wireless networking technology and increase in storage and computing power will make data analysis possible at a large scale with less cost. 

Future of IoT?
Currently, the Indian government is working on an ambitious plan to create USD 15 billion IoT industry in the next six years. With Cisco's Internet Business Solutions Group (IBSG) prediction that 50 billion devices will be connected by 2020 and with the constant increase in the Internet and smart phone usage across the globe, IoT is bound to grow and so will the job opportunities in the area.