Code 1: OOPS, class or object.
Nov03

Code 1: OOPS, class or object.

Welcome to CodeSpread! “I am not a computer science graduate” Yes! This was my innocent submission when i started my career in IT. I must admit it now that i did use this as an excuse and so do many people to avoid responsibility. I was searching for short-cuts and mugging up things to complete the work assigned to me. But between, i felt that this is not a long-term strategy and i might get entrapped sometime. Recession can make you learn everything boss!! Later, I wanted to learn but instead of trying very hard,i was not able to understand anything. One of my friend used to teach me and still i was not able to meet the expectation. In sometime, i realized that why i was not able to understand anything. It’s because I was not able to relate to its existence. When someone used to explain a simple question “What is a class?” , I could not resist to ask  why we need it and where can i find it. I know few people might think that I am complete dumb but they will certainly agree that when we don’t ask basic/simple question,no matter how silly they seem, we are just inviting bigger problems ahead. Even the same reaction i have seen from people explaining a ‘class’. I am not saying that i am a good programmer but after all this, i devised my own way to understand the concepts. I started with the dictionary meaning of OOP [object-oriented programming] . We are talking about a programming concept whose basis is object. And we know that we all are objects, may be living or non-living so the origin of this language is from our environment only. We also know the dictionary meaning of class and in real life, I am a living object which might belong to human class, middle class, gentlemen class, software developer class etc. I can have attributes and behavior of n number of class. So, if i try to define class then i can say its a generic structure or a generic template which defines some attributes and behavior. For example, Middle class can have fields like monthly expenditures,monthly savings etc. and behavior like paybill(), dropandpickchildrenfromschool() etc. Middle class doesn’t have an existence on its own. I am a living object exist as a middle class person in this world and I give meaning to all the fields and perform the behavior associated with middle class. I hope this article will help someone like...

Read More
Interview : a question mark?
Oct28

Interview : a question mark?

I like going for interviews for two simple reasons: I found that this is the simplest way to remain updated with the latest knowledge. If we look at the IT trend, daily new software are getting launched and technologies are getting updated.It is a bit difficult to predict which technology is going to be considered as the next hot skill. Although blogs,tech news, forum discussions keeps us updated about new arrivals and their positives and negatives but an interview can only indicate what is the latest skill, companies or organizations are expecting from the candidate. It definitely tells us where we stand. I can recall few questions which simply put a question mark on my knowledge. They are basic questions but got neglected during the preparation. These questions were asked during .Net,c# interview. Write 15 control names which you have used in your project. I was able to recall some 12-13 control although i have used many more controls. HTML generated for controls like Timer, dropdownlist etc. Message codes like 404,301,200. Abstract class can be written same as Interface with all methods as abstract then what is the difference. If given a choice, which project you will create ‘website’ or ‘webapplication’ and why? Why we are still worried about memory consumption, when garbage collection is there? Write few examples from your project where you have applied OOP? These questions are not difficult but requires some basic attention during the development. What...

Read More