Apr302008

TDD, Rhino.Mocks

I am pretty new to testing your codes using nunit and rhino.mocks. i am having lots of problems and thank to Tom Opgenorth, i solve each of these slowly. From today, i will be sharing the difficulties i have in my TDD world. I am pretty new to testing, so a

To test every single function in your code, the whole programming paradigm has to change. you have to break your code into smallest available pieces that allows to you to write test functions. It seemed to me at the beginning that you lose some performance doing so but with today's hardware, you concentration should be on maintable, working, bug free, tested code. So in the next posting, i will share one of my simple class, and how i used nunit to test simple things.



Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Apr212008

Google's inaccurate search results

I am writing a search page for our campus using google search applicance. Within my application i called a httprequest to google's mini machine, and parse the returning xml file. Depending on the number of results returned from google (it is a parameter in the xml file) i am creating the pagination. However it wasnt working, i was debugging my code, and reading google's documentation. Guess what, google never tells you how many search results there are, it just guesses the number of search result but as soon as you click on other pages, you might get nothing :), and different estimation. I tried this with google, search anything at google, and note down the number of results , and click page 2; the number of results are changed right :)

waoov so they are just guessing baby...



Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Apr202008

Lots of things going on

I am kinda busy in the last few weeks. Lots of things happening at the same time :). I've started teaching asp.net ( a free class ) every saturday at California State University, San Bernardino. This class keeps me kinda busy, also i adopted a new hobby : baking bread :)). I really enjoy it, and every week i try to bake 3 different types of bread. Below are some photos :)

 



This week,it was my 4th of class. At the first class, there was a lot of people, nearly 25 people, but the more advanced classes become the less people show up. So at the last class, it was between 8-10 people now :). Dramatic change ha !!  I try to post the agenda, questions, assignments in the forum : http://www.iedotnetug.org.  By the way this is a really good user group, if you live around san bernardino, redlands, riverside etc, please join our meetings.  By the way, let me upload some more photos :) below is two photos from my classes :

 



hopefully i will be writing more ...

 



Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Apr022008

Silverlight

I was writing a simple silverlight application to test my basic understandings of silverlight. My app will make get http request to a page, and lists the items on the silverlight listbox component. Of course it didnt work :), cause i used HttpWebRequest which is synchronous. Microsoft removed the synchronous web request from silverlight 2.0, and i have no idea why :)

so, what i did is, created a simple aspx page, which does the webrequest , and silverlight makes the request to my aspx file. So i dont to deal with crossdomain.xml files on the other hosts and things become easier :)



Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses