27.10.07

Programming Question

Question:

Write a function/subroutine in a language that you are familiar with that will replace all occurrences of "we" to "you" in the following phrase: "If we try our best, and we devote our full energy to the task, we will succeed". You must do this without using the Replace function.

Answers:

Applicant 1:

string txtvalue;
string txtvalue2;

txtvalue = "If we try our best, and we devote our full energy to the task, we will succeed".
txtvalue2 = "If you try our best, and you devote our full energy to the task, you will succeed".

txtvalue = txtvalue2;

return txtvalue;

Applicant 2:

string x = "If we try our best, and we devote our full energy to the task, we will succeed".'
string y = "you";

x.ChangeValue("we", y);

return x;

The different meanings of Object oriented programming...

According to Java references:
"Objects are software bundles of data and related methods. Software objects are modeled after real-world objects in that, they too, have state and behavior. A software object maintains its state in variables and implements its behavior with methods"

According to one of the applicants (in his own words):
"Object oriented programming is a concept of programmer which he will learn from experience, from comments of friends, suggestions, outsourcing from the internet that He will enhance his/her skills in programming by his/her own self or by the asking from others. And oriented programming is where you already know the basics where somebody/someone teaches you how to do the codes and when you learn the basics to try to learn more by yourself and learn some advance programming by your self."

*****

8.10.07

Welcome Back Kat! :)

Welcome back Kat! I missed you! :) after one day in singapore, dito ka na ulit! hehehe! para ka lang nagpunta ng probinsha hehe.

Eco!!!

Say hello to my new pamangkin, Eco! :D