A class represents the code to be executed, whereas data represents the state associated with that code. State can change; code generally does not. When we associate a particular state to a class, we have an instance of that class. So different instances of the same class can have different state, but all refer to [...]
Entries Tagged as 'programming'
Understanding Java Class Loading
December 9th, 2008 · No Comments · programming
Tags:
The Problem With Logging
December 5th, 2008 · No Comments · programming
As programmers we need to log certain information inside our code.But this post from ‘Coding Horror’ blog describes some things you need to know about logging.
When it comes to logging, the right answer is not “yes, always, and as much as possible.” Resist the tendency to log everything. Start small and simple, logging only [...]
Tags:
Five Things People Hate About Their Favorite Language
November 17th, 2008 · No Comments · programming
If they can’t find five things to hate about their favorite tool, they
don’t know it well enough to either advoc ate it or pull in the big dollars using it.
Read more on stackoverflow….
Sphere: Related Content
Tags:
inotify - Linux File System Activity Monitoring
November 10th, 2008 · No Comments · c programming, linux, linux tips, php, programming, python, ruby
inotify is a Linux kernel subsystem which monitors Linux file system operations, such as read, write, create and delete. It was included in the mainline kernel from release 2.6.13 (June 18, 2005). It is more efficient than busy polling from a corn job and it’s an extensions to Linux file system to capture the file [...]
Tags:
Enterprise Web Services with WSO2 WSF/PHP 2.0.0
October 3rd, 2008 · No Comments · php, programming, wsfphp, wso2
WSF PHP 2 Webinar Sep 2008View SlideShare presentation or Upload your own.
Sphere: Related Content
Tags:
Get You Twitter Friends Time Line Using libcurl
September 13th, 2008 · 2 Comments · c programming, personal, programming
This weekend I am doing simple project to display twitter time line on ‘Conky’ widget. For that first I need to write a simple program which will print the twitter time line of my friends. First I tried to use python-twiiter API and failed due to strange Python error. After that I started to implement [...]
Tags:
Recursion, Non-Recursion and Tail Recursion Test using GCC -O2 optimization
August 20th, 2008 · 1 Comment · algorithms, c programming, programming
I got very positive response for my previous post that published test results of Recursion algorithm efficiency testing.
Bluestorm and Alex has responsed to above post asking me to try gcc -O2 optimization level. I tried -O2 optimization and here is the results for factorial of 5 using different factorial algorithm implementations:
Here is the results for [...]
Tags:
Recursion, Non-Recursion and Tail Recursion Test
August 20th, 2008 · 11 Comments · c programming, programming
Because of the responses I got from readers for previous post ‘Efficiency of Algorithms: Recursive vs Non-Recursive’, I did some test using RDTSC instruction available in Pentium class CPUs. I measure time taken to execute factorial function implemented in different ways 10000000 times. Factorial function is implemented in non-recursive, recusive and tail-recursive manner(Tail recursive version [...]
Tags:
JavaScript __noSuchMethod__ feature
August 19th, 2008 · No Comments · JavaScript, programming
Today I found this document while reading the Ajaxian. This ‘__noSuchmethid__’ of JavaScript object is same as Ruby’s ‘method_missing’ feature.
Example from above document:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
wittyProjectName.log = function log (message, type) {
if (type == 0) {
// log an error
}
else if (type == 1) {
// [...]
Tags:
Efficiency of Algorithms: Recursive vs Non-Recursive
August 18th, 2008 · 8 Comments · programming
Before analyzing efficiencies of Recursive and Non-Recursive algorithms of same complexity we have to define what are Recursive and Non-Recursive Algorithms.
We can define recursive algorithm as an algorithm which calls itself with “smaller (or simpler)” input values, and which obtains the result for the current input by applying simple operations to the returned value for [...]
Tags:

