Archive for May, 2008

Programming Interview Question #4 from Dev102

Over at Dev102, they are running a weekly series of programming job interview questions. Here is this week’s question:
How would you implement the following method: Foo(7) = 17 and Foo(17) = 7. Any other input to that method is not defined so you can return anything you want. Just follow those rules:

Conditional statements (if, switch, […]

Use Unique Element Names in your XML

The Problem
It seems to me that this should be fairly obvious, but you should use unique element names in your XML. I only bring this up because I recently ran into some XML code at work that breaks this guideline. Here is an example of what I’m talking about (Keep in mind that this is […]

Using jQuery & JSON with ASP.NET

There was a recent post on Encosia about how to use jQuery to interact with web services. In this article I will expand on a couple of the points and add a few new wrinkles
Creating the Web Service
The first thing that we need to do is to define our web service. I am using ASP.NET […]