Mohamed Alla Pitchai

Greenhorn
+ Follow
since Oct 18, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohamed Alla Pitchai

Hello Joe,
It is possible to get the code snippets from Google and complete a complex program. I don't have any doubt in this. However I too agree that a novice can't do that. It requires some experience in programming.

For instance, if a task is given to read the records of employees from a file, sort the records based on the Employee salary field and store the sorted records into a different file. Let us assume I have to write it in some language say PERL which I don't know.

There are two approaches now in front of you.

In the first approach, One is learning the important language constructs which is PERL in our case(I am not asking one to be an expert. Just learn). It will take say 3-5 days and then implement the solution. Let us say implementing it will take another 2 days. So we have the solution in hand say in 7 working days.

The benefit of this approach is you have the solution at the same time you learnt some new language. The negative side is you have a solution in 7 days which is bit longer.

The second approach is, google it for the PERL code snippets. For example,
to achieve the task, 1) we want to know how to read the records from file, 2) how to parse each records with delimiter, 3) how to store it in an array, 4) how to sort an array, 5) how to write the records in the sorted array into a file. So once we get the code snippets for these subtasks from google all we can do is just assemble the code and run it.
All you require is some analytical skills.

The benefit with the second approach is that you have some solution for a given problem in 1 hour and you get a good appreciation from your Manager.
The negative is that you don't know the langauge. In other words, you don't feel like you accomplished some task. In other words, a mental satisfaction.

Thanks & Regards,
Mohamed
11 years ago
Thanks Herb. Very good information. Yes we have to strike a balance between our deep learning and providing solutions to Employer quickly.

Thanks,
Mohamed
11 years ago
It is not the question of who is better programmer. The thing is he always take the approach of finding solution first irrespective of the fact whether he knows it or not. Nowadays it is very easy to find the solution with the help of Google. I personally don't agree with this approach. In this approach, one is looking for just solution not learning. My approach would be learn and implement if you don't know certain technology.

The Management does not worry about the quality code. They worry about just the implementation. If there is a problem in the code, then they may revise it with a quick fix or they will fix it in the next release (in 1 or two weeks down the line).

For instance, he does not know language PERL. But he wrote medium complex code by taking the PERL code snippets from Google. It gives some sort of illusion to others that he know every thing which is not real. All I can say is that Google knows everything. not this guy.

My Question is, Is it the right approach ?

Yes my methodology is holding me back because I am taking time to investigate, design the solution and implementing the solution instead of just jumping into providing the solution.

Thanks,
Mohamed
11 years ago
Hello All,
I would like to know what you guys are thinking about the following discussion.

I worked in a big MNC company few years back and we used to develop the application in a structured manner. We usually follow the Waterfall approach to develop the application. So each release can take upto 4-6 months. So I have some room to think, understand the problem and learn the technologies (if I am not familiar)

Later I joined in a company in US and we were developing a website for contact centers. The guy who worked with me in that team is so fast in getting things done and eventually the manager tends to like him more than me. I generally follow a structured approach (understanding the problem, designing and implementation). Also If I am not familiar with a language that is required by the work then I usually learn that and then apply it to my work. So it takes some time to give the deliverables. But for the other guy whatever the complex task is given he will have a solution in a day. He usually gets the information from google and get the task done. Even if he does not know a language he use to get the code snippet from google.

So I often wonder even he might have a solution in a day if a problem in rocket science is given.

Obvioulsy his strategy worked well and our Manager always rely on him and started to sideline me.

My question is that Do you guys think that his approach is the right approach in the developer's point of view ? Or is it the practice called "Agile" ? But I believe that even Agile approach has some standard procedures to follow.

Do you guys think that his approach always will work ? What will he do if Google all of a sudden removes the search capability or stop working ?

I am not saying that he is a dumb guy. He has good programming sense and he is good in certain technologies but not all. But he is very good in getting things done without the structured approach (even if he is not familiar with certain technologies).

I rely on Google and appreciate Google only after knowing or understand the basics behind the technology. I don't blindly always rely on Google.

Do I have to change my strategy to be an indispensible person in the company or to get excellent rating from my Manager? My friend in this discussion got excellent rating whereas I got only good rating.

What you guys think ?

Please let me know.


Thanks & Regards,
Mohamed
[ November 20, 2008: Message edited by: Mohamed Alla Pitchai ]
11 years ago
Hello,
I am a certified SCJP 1.4 programmer and would like to upgrade my certification to SCJP 1.6. Can I directly appear for SCJP 1.6 upgrade exam by skipping SCJP 1.5 upgrade exam ?

If I appear and pass SCJP 1.6 upgrade exam what certificate I will get ?Will the certificate say that I am a SCJP 1.6 professional ?

Thanks,
Mohamed
Hello,
I am a certified SCJP 1.4 programmer and would like to upgrade my certification to SCJP 1.6. Can I directly appear for SCJP 1.6 upgrade exam by skipping SCJP 1.5 upgrade exam ?

If I appear and pass SCJP 1.6 upgrade exam what certificate I will get ?Will the certificate say that I am a SCJP 1.6 professional ?

Thanks,
Mohamed
12 years ago
Guys,
How SCJP 1.5 upgrade exam differs from SCJP 1.5 ? I recently passed SCJP 1.4. exam. Do I have to take either one of SCJP 1.5 exam (upgrade vs non upgrade) to show myself competent ?

Also I don't see any difference between SCJP 1.5 and SCJP 1.5 upgrade exam except in the fees. The former one costs $200 and the later one costs $100. Why is this difference ? But it seems the exam objectives are same for both the exams.

Any clarifications are really appreciated.

Thanks,
Mohamed
Hello,
Can we write a variable name with Hex or Octal notation ?

I tried the following.

int \u00C1 = 10;
int \u0041 = 15;
System.out.println("number is " + \u00C1);
System.out.println("number is " + \u0041);

and it works fine.
But when i tried to include the following statment the compiler throws me error.
int \101 = 10; //octal value for 'A'
Not sure why it is throwing error ? Does it mean we can write the variable name only through the octal representation ?

Thanks,
Mohamed
12 years ago
Why do we want to do the 2's complement ?
12 years ago
Hello guys,
Consider the following code snippet.

int x = 241;
byte y = (byte) x;

System.out.println("y is " + y);

I am getting the output as -15. How did the result come as -15.
Please explain.

Thanks,
Mohamed
12 years ago
Hello,
I am not able to get the parameters in my handleActionRequestInternal() method when I submit my form using "GET". But when I use the method "POST" I am able to get the parameters passed.

The following is the snippet from the JSP

<form name="globalform" method="get" action="<portlet:ActionURL/>" id="gs_form">
<div id="gs_basic_search">
<input type="text" name="keyword" id="gs_search_text_input" value="" />
<button name="submit" type="submit"> <img src="/images/buttons/search_button.gif" alt="submit search form" /> </button>
</div>

After submitting, in the handleActionRequestInternal() I tried to get all the parameter names I passed in from the form and iterate them for display.
The following is the code which does this.

Enumeration e = request.getParameterNames();


while(e.hasMoreElements())
{
String s = (String) e.nextElement();

System.out.println("passed element is " + s);
}

For the "POST" request the above code returns names of all the passed parameters. But for "GET" it is not displaying anything. Not sure why.

Environment:
-------------
IDE: Netbeans 6.0
Server: OpenPortlet Portlet Container 2.0 Beta


Any good suggestion is really appreciated.
12 years ago
Hello,
I have been hearing that we have to program to interfaces and not to the implementation. My question is what will happen if we program to implementation. In otherwords, why we have to program to interfaces ?

For instance, if class A has a dependency on class B and class B has a method called display() which System.out the string "hello".

In main method of Class A, an instance of Class B (say b) is created and b.display() is called. We get the output "hello". Now i changed the display() method in class B to display "hello world" instead of "hello". I just compiled the class B but not class A. Now when I run the main method it shows "hello world" and not "hello". So my understanding is that Class A not depends on Class B right?. In otherwords, the changes to class B won't affect class A right ? Then what's wrong with programming to implementation ?

I will appreciate if anyone gives proper explanation.

Thanks,
Mohamed
12 years ago