Tuesday, March 24, 2009

Picture Picture Project

So what do you do when you have access to a laptop that nobody wants to use anymore, and some extra time on your hands?  I had always wanted to make my own digital picture frame out of a laptop, for a few reasons.  One, laptop LCD's are usually higher quality than the ones that come in digital picture frames you buy in the store.  Secondly, the screens are larger than any that are generally available from pre-built digital picture frames.  And finally, I wanted to have the images in the frame come directly from Flickr... which is a feature that only comes with really expensive frames with WiFi.  I decided to call it "Picture Picture", in honor of Mr. Rogers.

As it turns out, my uncle had bought a Dell laptop from HSN several years ago (without my permission), and then never really used it all that much.  Eventually it ended up in a drawer... and so then it eventually ended up in my hands.

The first part of the project was actually all about software configuration.  My goal was to have a system that didn't need a keyboard or mouse.  I'm still working on refining the software I wrote to get pictures from Flickr, so that code is not included in this post.  However, I will reveal that the software comes in three parts.  The first is the viewer application itself.  It reads a configuration file that has settings for background color, image duration, a Flickr user name, and a list of tags from the user name to display.  I'm also adding the ability to automatically suspend the laptop at night, and then wake up a designated time in the morning, but the bugs in that are not quite worked out yet.

The second piece of software is a simple ASP.NET application, so that I can log into the picture frame from my browser to change any of the settings above.  The ASP.NET application then saves those settings to the configuration file.  The viewer application has a file watcher on that configuration file, so that when it changes, it automatically reloads the configuration settings.  The third piece is actually just a simple Windows Service that acts as a watchdog, and if the application goes away for some strange reason, it automatically restarts it.  The beauty of this setup, is that I can add pictures to my frame simply by tagging a picture in Flickr with any tag I choose.

With all that said, there were some other software changes I made to the laptop before I tore it apart.  Because it was a cheap HSN laptop, it had Windows XP Home, which isn't capable of running IIS, which I would need for my ASP.NET application.  Fortunately, there is a well documented hack for getting IIS running on Windows XP Home.  I also installed Tight VNC on the laptop, in case I needed to do any more complicated administration after I tore it apart.  I would have just used Remote Desktop, but Windows XP Home can only be an RDP client, not a host.  I also created a share on the laptop where all my custom application software was copied so I could easily upload new versions of my software afterwards.  Finally, I created a separate user to auto login when the laptop turned on, and then added the viewer application I wrote to the Startup menu for that user.

Now comes the fun part... tearing apart the laptop.  All the pictures from this post are on Flickr in this set.  You can click on any picture for a larger version.  Some of the pictures also include extra notes which point out small details in the picture worth looking at.  I went to the Dell support website, where they are kind enough to have detailed service manuals on all their laptops, which include directions on how to replace all the internal components.  This makes tearing apart the laptop a breeze.  Here is the LCD out of the laptop, as well as all the case parts I won't be needing anymore:

LCD Out of Laptop Throw Away Parts

I was very concerned with carefully supporting the LCD in the frame.  I used foam core as a backer, and then surrounded the LCD with foam core as well.  I used simple Elmer's glue to glue the surrounding foam core to the back piece of foam core:

Front of Foam Core for LCD Back of LCD

You'll notice that there is a foil section that runs on the back of the LCD.  This actually sticks out quite a bit.  That's why there is a cut in the back of the foam core.  The parts of the foil that stick out extra fit into that cut out of the foam core.  There is also a small hole in the foam core back, for the LCD cable to fit through.  I used no glue, or any other physical fasteners to attach the LCD to the foam core.  It's a friction fit.  I cut and fit the foam core around so it would be just tight enough, but wouldn't put pressure on the display.  The mat is just another layer when I put together the frame sandwich.  I used no glue there either, so you can see a little gap if you get up close to the frame.  At some point, I may either use double stick tape, or possibly put glass in front to remove the gap.  The next two pictures are the LCD fit into the foam core housing, and then a picture with the mat on top:

LCD in Foam Core LCD with Mat

For mounting the motherboard, I simply cut a piece of masonite to the appropriate size.  I used some old standoffs and screws that I had from a previous desktop computer build I did last year.  I also cut a small slot in the bottom for the LCD cable to come through.

The other tricky part was remounting some of the motherboard parts.  The problem is that many of the components (like the CPU heat sink, and the LCD grounding cable) actually had screws which passed through the motherboard, and then screwed directly into the plastic case.  So one day I went to my local hardware store, and spent some time test fitting nuts until I found nuts that fit.  These aren't standard sizes, so my only choice was to bring all the parts to the hardware store and use good ole fashioned trial and error.  You can also see that I attached the speakers from the original laptop too.  I don't have any use for them now, but maybe some day I'll add a video to my frame and then I can use those.  I also added some extra foam core to the back of the masonite for added thickness.  The frame that I chose was very deep (almost two inches so there was room for all the components plus circulation).  Unfortunately, I had to add thickness in some areas so that the springs would still work:

Back of Frame Back of Motherboard Mount

The last detail was attaching the WiFi cable to the frame itself.  The original laptop had the WiFi card attached via a wire to a sheet of aluminum foil in the cover which served as the antenna.  Since my frame was made out of metal, I sanded off the paint on the inside surface of the frame, and attached the antenna to the frame.  Now my frame is actually the WiFi antenna:

Antenna Attachment

And finally, here is the completed frame hanging on the wall:

Finished Picture Frame

The total build cost was about $55.  This included a custom cut frame and mat (the majority of the cost), along with foam core, masonite, and random nuts from the hardware store.  Once I finish adding all the features I want to the viewer application, I plan on posting the completed code here as well, so stay tuned!

#    3:32 PM by Nick | 2 Comments |
 Tuesday, December 30, 2008

How Geeks Misunderstand Economics and Marketing

As high quality technologists (which I assume all my readers are ;) ), most of us are usually fairly specialized in our field.  In other words, we're very good at what we do for a living, and that often comes at a price at not knowing other things, even if they have some importance on our business.  For instance, we may be very good at programming in C#, Java, etc. and can tell you the classes in the BCL by heart, or list off the GoF patterns from memory, but couldn't figure out how to make money selling software if we tried.  I quickly thought of that as I was reading this article in the New York Times on the cost of text messaging vs. what we are charged:

TEXT messaging is a wonderful business to be in: about 2.5 trillion messages will have been sent from cellphones worldwide this year. The public assumes that the wireless carriers’ costs are far higher than they actually are, and profit margins are concealed by a heavy curtain.
...
Professor Keshav said that once a carrier invests in the centralized storage equipment — storing a terabyte now costs only $100 and is dropping - and the staff to maintain it, its costs are basically covered. "Operating costs are relatively insensitive to volume,” he said. “It doesn’t cost the carrier much more to transmit a hundred million messages than a million."

Once one understands that a text message travels wirelessly as a stowaway within a control channel, one sees the carriers’ pricing plans in an entirely new light. The most profitable plan for the carriers will be the one that collects the most revenue from the customer: unlimited messaging, for which AT&T and Sprint charge $20 a month and T-Mobile, $15.

The entire premise of the article is in essence to say, you the consumer are being ripped off, because text messages cost nearly nothing to transmit, while it costs you the consumer significantly more to actually send them.  There is even a reference to an investigation spurred on by Sen. Herb Kohl.  Clearly, the intent is to suggest that we're being "gouged".  Unfortunately, this perpetuates the myth that the price of a good or service needs to somehow be directly related to the cost of production, and that charging more than some percentage higher than the cost is somehow wrong or illegal.  Worse yet is when these improper assumptions lead to regulation which then hamper the ability of businesses to market in new and innovative ways.  But I'm being too generic here.  Let's look at specifics.

If I write some software package and offer to send it to you on a CD for $50 (plus S&H), is that justified?  After all, it costs less than a dollar (maybe even a quarter) to actually burn a CD these days.  Worse yet, what if I charge you the same for an electronic download which cost even less to distribute?  You and I know that there is nothing wrong with that, because we naturally think of all the time and effort it took to actually write the software itself.  Part of what we charge reimburses us for our initial time, when we weren't making any money on the yet completed software.

Look at a different example, in the gaming industry.  Companies charge $50 - $60 a copy for games on the Xbox 360, PS3 and Wii.  A significant amount of that cost is actually wrapped up in licensing fees that go to the console maker (Microsoft, Sony and Nintendo).  Are those licensing fees too excessive?  At first glance, it may seem so.  However, when you look at the business as a whole, you see that its simply a marketing technique.  That's because the console maker actually take a significant loss on each of the consoles it makes in order to get enough gamers in the market.  They then try to recoup that money through licensing fees on the games themselves.  In other words, the higher cost of the games is used to subsidize the console.  You can't separate the cost of the game from the cost of the console.  If they charge less for games, then the consoles would have to be more expensive.

Many people want to demand "a la carte" pricing from cable companies, but that too would come at a price.  Many channels are simply not watched enough to pay for themselves if they were priced on their own.  They only exist because they can be bundled with more popular channels in a package.  Cable companies are able to offer a wider variety of channels for smaller niche audiences because they charge more money than normal for popular ones.

Similarly, it is unfair to look at the cost of text messaging on its own.  In fact, cell phone companies work similarly to game console manufacturers in that they actually take a hit on the phone itself, in exchange for your cell phone contract.  Text messaging is likewise used a constant overall revenue stream, while the companies take losses in other areas.  Looking at text messaging as a whole ignores other areas of the business that may take a loss, or a much smaller profit.  If you force companies to charge less for text messaging, then other services may be made more expensive in order to make up the difference in profitability.  Worse yet, some services that are offered at a loss may be eliminated because people would be unwilling to pay their true cost, which might cost customers.

Of course, the real problem, once again, is the view that the price charged for a good or service needs to be directly related to the cost in providing it.  However, the reality is that the cost of a service is only limited to the willingness for people to pay for it.  There is nothing wrong with that.  It merely places a value on your desire for a service.  As soon as a company starts charging more than you value the service, you simply stop paying for it.  The actual cost in providing it is only relevant so long as the company can charge enough to stay in business.

#    2:53 PM by Nick | No Comments |
 Wednesday, December 10, 2008

Sending Secure Mail

As part of my current re-evaluation of my computing systems, backup processes, and so forth, I've also started to take serious efforts at securing some of my data.  Along with those efforts, I wanted to make sure that all of you were aware that I do use PGP for sending secure email.  If any of you ever feel the need, you can download my public key from the PGP server.  You can also find a link to my PGP key on the left side of my blog.

#    9:36 AM by Nick | No Comments |
 Wednesday, November 19, 2008

Q: What is the Difference Between a GUID and a UUID?

A: Marketing

News has broken out that NASA has successfully tested a deep space version of the internet:

The US space agency NASA said it successfuly conducted a first test of a deep space communications network modeled on the Internet.

"This is the first step in creating a totally new space communications capability, an interplanetary Internet," Adrian Hooke, NASA's manager of space-networking architecture, technology and standards, said in a statement.

The US space agency said Jet Propulsion Laboratory engineers used software called Disruption-Tolerant Networking, or DTN, to transmit dozens of space images to and from a NASA spacecraft some 20 million miles (32.4 million kilometers) from Earth.

NASA said the software protocol, which must be able to withstand delays, disruptions and disconnections in space, was designed in partnership with Vint Cerf, a vice president at Internet search giant Google.

DTN sends information using a method that differs from the normal Internet's Transmission-Control Protocol/Internet Protocol, or TCP/IP, communication suite, which Cerf co-designed, NASA said.

Like many things in computing, there tends to be stupid "religious arguments" among geeks about certain things.  Windows vs. Linux.  MS SQL vs. Oracle vs. MySQL.  You get the idea.  People will even argue about whether GUID is supposed to be pronounced "Goo-id" or "Gwid".  Now you can answer... neither!  It truly is supposed to be a UUID... a Universally Unique Identifer.

#    8:48 AM by Nick | No Comments |
 Thursday, November 13, 2008

If Only This Were a Joke

This was the Dilbert in my daily pull off calendar yesterday:

Dilbert111208
#    8:41 PM by Nick | No Comments |
 Thursday, October 09, 2008

King of Useless Comments

There is a lot of debate among programmers about the proper way to comment your code.  One type of commenting that is sometimes more difficult, is how to comment code that is related to a bug fix.  We've all encountered the types of comments where the programmer states the obvious:

int i = 0;  // Initialize an integer to 0

But "bug fix comments" can sometimes really be longer than necessary.  Here is a typical example of what I'm talking about:

//######################################################
//#
//# Bug #: 1234
//# Date:  10/2/2006
//# Name:  John Smith
//#
//#######################################################
MethodCallAddedToFixBug();
//#######################################################

This type of commenting drives me nuts for a couple different reasons.  For one, it takes up a huge amount of screen space, which breaks up the flow of the rest of the function, and makes it hard to understand.  Can you imagine if a single method had 3 or 4 of these "bug fixes" in them?

Secondly, for all that space taken up on screen, what information did we get?  We got a name, a date, and a number.  What was the defect?  How did this method call actually fix the defect?  We don't know.  Now, if you feel the need to add a comment when you insert code to fix a bug (and I can be convinced pretty easily that there is value to doing that), why not this?

// JS 10/2/2006 - Added call to fix Bug 1234.  This method includs missing validation logic that was causing exception
MethodAddedToFixBug();
Was that so hard?
#    10:02 PM by Nick | 1 Comment |
 Monday, October 06, 2008

You Can Also Find Me On StackOverflow

Like most of the engaged developer community, I have discovered StackOverflow, the marvelous creation of Jeff Atwood and Joel Spolsky.  You can see my profile here.  So far I like the site.  The purpose of the site is to be the anti-Experts Exchange.  We all know Experts Exchange, and we all hate it's existance with a vengence.  It's the ultimate Walled Garden, and it sucks in Google furiously, so that its hard to actually find the answer to a question.  StackOverflow looks to succeed with developers where Experts Exchange has frustrated us all greatly.

I've yet to ask a question on StackOverflow, but I have spent a little time answering some questions, and even earned myself some of the easy badges.  It's a nice little ego stroke.  And overall, I really like the site.  It it easy to use, uncomplicated, and rewards people nicely, and at the same time seems to get the best answers to float to the top.  But it's also my nature to criticize a bit, and so here are the things I don't like about StackOverflow so far:

No Way to Link Duplicate Questions:  StackOverflow is sort of like a big Forum from the 1990's, but with extra "social networking" and "web 2.0" juju sprinkled in.  What that really means is that the user habits of a forum are likely to emerge very quickly, but that the site itself is just easier to use.  Because really... web 2.0 really just translates to good usability... not necessarily good user habits.

Probably the largest problem faced by a Forum moderator is the need to post a big post at the top of the forum that is called "FAQ - Read this First Before Posting" which is then largely ignored by everyone who goes on the forum so they can re-ask the question that was already answered in the FAQ.  In fact, odds are pretty much guaranteed that someone has complained about this already in the StackOverflow feedback area, but I'm too lazy to find it.  And there in lies the problem.  Once someone finds it, it would be nice if there was easy web 2.0 juju to link those together.

You can't prevent people from submitting duplicate questions because people are inherently lazy.  They don't want to go to the trouble of actually searching before asking, and maybe that's ok.  But by the same token, if someone is active in the community, they will eventually notice the same questions popping up again and again that they have already answered.  It would be nice to give them the ability to link questions together, rather than simply copying the same answer again... or worse, not bothering to answer the question again, because that gets frustrating, and in the end it doesn't serve the person asking.

How Many Profiles Do I Need?  StackOverflow is still in beta, and they are requesting input into new features, and also help with bugs.  They also have a nice blog where you can read up on the latest news.  But you'll notice that those two sites use different engines to run them.  That means that if I want to fully participate in the StackOverflow community, I need to not only register with the main site (using OpenID - YEAH!) but also with UserVoice for their bug/feature too (which doesn't use OpenID).  And since their blog is not linked into main site either, if I leave a comment on a blog post it doesn't connect up with my main profile.  This seems very strange to me for a site that is encouraging feedback by giving you points for helping.  No points for commenting on the blog?  No points for giving feedback on the site itself through UserVoice?

I understand the desire to not re-invent the wheel for a feature that is not core to your site.  After all, they went about the task of creating a site for answering questions, not blogging or bug tracking.  But at the same time, it would have been nice if they could have at least picked 3rd party software that adhered to the same principles as their core site... one of which being ease of sign up (though OpenID).  I don't know of a bug/feature site that use OpenID off hand, but I do know that DasBlog now supports OpenID.

And really, how much different is a blog post from a question?  And how much different is a feature request from a function?  I would think that they could have fairly easily incorporated all those features together, and encouraged even more feedback.  As it is, I don't want to post on their feedback site because I don't want to have to re-register again.

I'm sure more will come to me as I use the site more, but those two things jumped out at me almost immediately.

#    10:28 AM by Nick | No Comments |
 Saturday, September 06, 2008

Codeapalooza Coverage

I drove down to Wheaton, IL for the Chicago .NET User Group's Codeapalooza.  They have a lot of sessions, and its impossible to see all them, here is the coverage of the ones I chose to go to.  I'll be updating this post after every session, so feel free to check back throughout the day.

SQL Server 2008 for Developers by Sam Nasr:  Best Quote - "I drank the punch a long time ago, so I only really know Microsoft stuff."  Covered quite a lot from platform features, to T-SQL, data types and reporting services.

Talked about new data auditing features, but then mentioned the four common fields that everyone adds to a table (CreatedBy, CreatedDate, ModifiedBy, ModifiedDate) but didn't really talk about how the two work together, or if the new data auditing features is a standardization of that classic DBA paradigm.  Auto Synchronization of data with a SQL Server Compact Edition database.  Cool!

Definitely some cool new T-SQL features, like the ability to pass in an entire table into a stored procedure.  Would that really simplify writing bad code?  FileStream Object Storage looks cool as a good alternative to binary blobs, with better management than just storing a path as a string in a table.  Finally you can create and initialize a variable in one statement!  Plus some new operators like +=, and the ability to insert multiple rows in one statement.  Both of those are a long time coming.  Intellisense!!!  Thankfully the Intellisense improvements are with SQL Server Management Studio 2008, even if you're connecting to a 2005 Server.  Very nice.  There is of course more (like grouping sets), but some of that stuff is beyond me since SQL is not exactly my forte.

HierarchyID looks very much like an XML Data Document (especially with the methods), but it doesn't support moving to XML built in.  Very strange.  But for creating tree structures in your data, it looks very cool.  Nasr concentrated on using it for organizational charts, but tree structures are a very common solution to a lot of programming problems.  This simply creates first class support within T-SQL for a common database paradigm for a parent child relationship with an ParentID field.

WPF Demystified by Dave BostBest Quote - "Where are the designers?  It's hard to tell, I don't see a turtleneck or a beret."

WPF in and of itself is a huge topic, so you're not going to cover it in an hour.  So this was treated more as a showcase of what WPF can do.  He interestingly focused on developer vs. designer, and how that is handled by WPF and new technologies (no more battleship gray).  Focused, once again, on the fact that .NET 3.0 runs off of the .NET 2.0 runtime (in other words... there were additions... but not changes).  Important note... the .NET 3.5 SP1 requires .NET 2.0 SP1 runtime.  You cannot run 3.5 SP1 applications on the 2.0 standard runtime (without the service pack).

Unfortunately... this talk wasn't as in depth as I'd hoped.  It really was the same overview presentation I'd seen many times.  Here's XAML... Windows Forms isn't dead... etc.  There is Expression Design, Blend and Web (which replaces Frontpage... Frontpage is Dead!).  There is also Expression Media.  Lots more tools in that family than I was aware of (with virtualization so they can run on Mac).  Best question:  "Is this Standards Based, or Standards Compliant?"  Excellent spin!  I always ask about SVG because XAML looks so similar to SVG.  Not surprisingly, nobody at Microsoft seems to realize (or is willing to admit) that XAML was invented 10 years ago and was called SVG.

He shows some cool sample XBAP applications on the internet that demonstrate the power of XAML.  The coolest was the British Library's "Turning the Pages".  You can use it to virtually read their collection of precious old books which are normally under glass and unavailable to regular library visitors.  There is also Vertigo's Family.Show which is a XAML application to visually represent a family tree.  And of course, don't forget Scott Hanselman's Baby Smash which is great for keeping your kids out of trouble when they start pounding on your keyboard.

So how do you start?  Learn XAML first, and then find out what parts of XAML work in WPF and in Silverlight.  The goal by Microsoft is to make Silverlight and WPF more similar.  Its not always possible because the browser environment restricts us in many ways.  Then he worked through one of MSDN's Virtual Labs, which you can do to also.

Of course, Expression Blend doesn't have built in integration with source code control.  Supposedly it's coming, but I consider that a must have if you want designers and developers to work together well.  I also don't like how the XAML designer in Visual Studio is so pared down.  It forces developers (who don't have a designer on staff) to buy two applications.  Doesn't Microsoft realize that developers are cheap?!

ADO.NET Entity Framework with Fakher Halim:

This guy has his presentation almost way too prepared.  He might as well have been reading off of a teleprompter.  Maybe not good for this type of group.  Actually, we never really got to see much code at all.  He mostly explained why we should be using something like the Entity Framework.  For God's sake, this guy is drawing a keyboard and mouse on the white board!  I wish they had brought somebody in to actually talk about the Entity Framework.  This dude is a PhD, talking at such a high level that it's useless.  A wasted hour.  I feel sorry for this guy because he's got to watch people file out one by one.

As it turns out, this guy was also sitting in the front row of the WPF talk I mentioned earlier, and he kept on asking questions that were totally off topic and taking us away from what were were all there to talk about.  He kept complaining that forms weren't looking like forms any more, and that we were breaking the old fashioned user experience paradigm.  At some point, old dogs have to learn new tricks.

ADO.NET Data Services with Jim Fiorato:

This is all new to .NET 3.5 SP1 (and used to be called Project Astoria).  It's a pattern to present data on the web in a way much simpler than SOAP.  The results of data calls in web services are definitely not human readable.  So web services are great, but they're not easy to consume unless you're in Visual Studio and possibly Java.  This fits really well with the new MVC and JSON technologies coming around.

Data Services can either return data in an ATOM format or in a JSON format for use in Javascript.  I'd never really seen JSON before, but he had an example of a data structure in JSON... and it's super readable.  This all fits very well with the newer paradigm of RESTful services coming around.  I'm going to the REST presentation later, so this will bookend very well with that.

This has not been a good afternoon for presentations.  This guy has a Mac Book, and for some reason couldn't get it to work with the projector.  So they had to bring in another laptop, and get Virtual PC installed... and well... the presentation isn't as good as it could have been.

Once he finally got everything up and running, he basically created an Entity Framework project and exposed it value a WCF service using ADO.NET Data Services.  Essentially all this does it allows you to translate a URL into a LINQ query seamlessly.  He spent half the time just typing URL's into a web browser and showing the results.  No code for parsing the URL, or any code written.  All that query string functionality comes built in out of the box.

The idea of a query interceptor was pretty cool, in that you can now perform extra logic before the query takes place and then modify the query based on that logic.  For instance, you can modify a GET to only return data based on someone's permissions.  There was an excellent question on Transaction support.  For this model, there is no real support for Transactions.  At that point, you are best going to full blown Web Services.  This is great really only for fast read only data access.

Rest and JSON using WCF and ADO.NET Data Services with Larry ClarkinBest Quote - "You can explain any software concept using Star Trek.  After all, Capt. Kirk was the first blogger."  It's tied with "The new Hello World is - Let's build a blog!"

We had low expectations to begin with since he came into the room and said "Well, I haven't finished my presentation yet."  Way to represent Microsoft Larry!  And true to form, he actually started out by not talking about REST and JSON, but instead started talking about photography... specifically showing Sea Dragon.  Looked pretty cool.  Deep Zoom is actually part of this, and is built into Silverlight.  It is similar to Google Maps in that it delivers the different pieces of resolution in tiles, but it is much smoother.  It might actually use the new JPEG 2000 in order to do part of the render.  He also showed Photosynth (which I hadn't heard about).  It allows you to splice together different angles of a location, and using the EXIF data out of the picture along with spatial recognition, it creates a 3D scene.  One note that Larry mentioned is that you shouldn't use cropped photos, because the focal length is not synced with the result of the crop, and that screws up the software.  Finally he showed AutoCollage, which loads a whole slew of photos and tries to auto create a collage based on what the software thinks is interesting.

So this ended up being a much more overview look at REST (Representational State Transfer) and JSON (Javascript Object Notation), and even some old school (at least in the .NET time frame) serialization.  Of course, I remember writing MFC serialization code in C++.  He started by showing what the XML Serializer will do for you out of the box... which has been available since .NET 1.0.  I do think he spent too much time talking about existing technologies, when the topic was supposed to be REST and JSON.  Though the attributes you can apply to the classes to control XML Serialization also apply to REST serialization since REST is still XML, though much simpler than SOAP.  Is REST better than SOAP?  REST is much simpler than SOAP, but SOAP has more features for transactions and such.

Why JSON?  Well for one, it avoids the angle bracket tax.  However, its also great for use with Javascript since all parsers know how to deal with JSON.  After all, it's called Javascript Object Notation.  So there is no need to parse the data on the client side, so application development is faster and easier.  It's also faster to run on the client running Javascript.  But don't use JSON for a thick client or for Server-Server communication.  For that, you ought to be using XML (through SOAP or REST).

Then he showed some code on how to deliver JSON through a WCF service.  Overall though, he gave a great overview presentation.

#    10:10 AM by Nick | 2 Comments |