DarenHan's Blog

I am a Dot net asp.net developer working with VS 2005 and SQL 2005 now.

August 2006 - Posts

My friend told me a recent coding issue he had been asked during interviews., which i find it interesting so sharing it here.

Scenario 1:

for (i=0, i <N, i ++)

{

   if (condition 1)

    {   dostuff1       }

  else

    {  dostuff2   }

  }

 

Scenario 2:

if (condition 1)

  {    for (i=0, i <N, i ++)

         {   dostuff1();

           }

}

else

{

      for (i=0, i <N, i ++)

         {  

           dostuff2();

        }

}

 

What are the pros and cons of using either one of these approaches? Please feel free to leave comments...It keep me thinking for a while but i got the answers....hehe...

Posted by darenhan | 4 comment(s)

http://articles.techrepublic.com.com/5100-10877_11-6106800.html?tag=nl.e101

interesting read...

Posted by darenhan | with no comments
http://www.callcentermovie.com/movie/movie2.html
Posted by darenhan | with no comments

JavaScript Collector is an offline searchable snippet database stuffed with over 200 ready-to-use JavaScripts with the installation package, which you can preview within an instance!

http://www.snapfiles.com/get/jscollector.html
Posted by darenhan | with no comments

My fren told me they are integrating the ecom gaming site into their current system.....wanting to use the same database and all the background code....

He told me they like to migrate the database such that the permission of the stored procedures and linked server get lost everytime...the way they create new stored procedure is to drop and recreate....lol

Anyway, he told me his life is bad...he is under 4 bosses ...testing managers asking programmers to do work, write test cases and do functional testing....is it already bad that programmers are the lowest breed and yet they had to handle such people?

I guess his CEO is blind to employ such people...they pass work to programmers and knock off early....get tea breaks etc....good riddance to them all.

 

Posted by darenhan | with no comments