Pages

Sorting Binary Array with O(n) complexity


Welcome back, today am going to discuss about a solution I came up when solving a sorting problem given by my colleague. The problem statement is very simple and straight “Sort an Array of Binary Digits, with O ( n ) complexity (without using extra memory)”.

Novice Info: Uninstalling Software From Eclipse


Today, I am planning to present a small tip, which I wanted to share from a long time. Many of us use Eclipse for all our development needs. The main reason being, it is well organized and has the wonderful framework for adding any capabilities for building on more features to it. In my opinion the awesome feature of writing and adding Plugins and Features of the eclipse for its extended support is the main reason for its penetration into the developer market.

Importance of Data Structures and Algorithms in Programming


Today, I had a discussion with my colleague (Raveendra Chikkala), about Data Structures. It was a really interesting and motivating discussion, and today I wanted to share it with all of you. I have never taken the complexities of the algorithms seriously till date in my day to day programming, though I cared a lot on the design patterns and worked hard on making the system loosely coupled and having high cohesion.

Gist of the discussion is as follows:

Question: Why do we need to think of Data Structures, what do you mean by Data Structures. I know we use the data structures to store the data, and faster retrieval.

Singleton Pattern

As a programmer you should have come across many design patterns, in this blog entry I would like to spend some time on Singleton Design pattern. Before, further discussion on Singleton pattern, let us try understanding what is Design Pattern, and why do we need to learn about these patterns.
A Design pattern, is a specification defined to solve a particular problem. In our day to day programming we will be trying to solve several problems, design patterns are those solutions which are adopted by many developers around the globe to solve those specific problems you face today. Now its time for you to adopt some of those in your code, instead of fighting out your own solution for the problems you have on your table.

Novice Info: Difference between Classes, Interfaces in Java–Part 2


In my earlier post about Difference between Classes, Interfaces in Java I have explained about the differences in theory. Current post will be discussing about the practical differences that lets you make the decision on when to define a Class or Interfaces.
I am going to discuss about a 5 simple principles to be followed for creating a Class or an Interface. These principles will guide you in taking a right decision while defining the Types.

Novice Tip: Hacking MySql case sensitive objects


Any Table / Object created in MySQL installed on unix system are case sensitive. So, some of the queries might break, when you move from windows (dev) to unix (prod). In this post I will be discussing about the configuration changes that will make sure that your queries are not broken.

Novice Info : Java Classes Demystified


In my previous post, I have explained about the differences between a Java Class and an Interface, in this post we are going to dwell deep into Java Classes. I will be covering the following concepts in this post.
  • What is a Class
  • What happens when you create an object of a Class
  • What are different types of classes in java
  • Generics in Classes

Difference between Classes, Interfaces in Java


Everyone of us, before writing a java program will create a Class and then add some methods to it. Before starting the conversation and going into the details of the differences between Classes and Interfaces, let us see the meaning, constructs / syntax of the Classes and Interfaces.