A Very Short Post:

I've lately come to the opinion that desktop application development is a moribund activity, which suits me quite nicely because I've never really liked any of the ways people invented to do it. So I'm getting my JavaScript on and building web applications, and more specifically, Single Page Applications.

To do this, I'm using AngularJS and TypeScript for the client-side development, and Simple.Web for the server side, and I've discovered this amazing thing: you don't need server-side page rendering of any kind. You can serve purely static HTML files, and all the things you might do with Razor on the server can be done with JavaScript MVx frameworks on the client. You can even do Windows Live authentication with a static HTML callback page, and then pass the access token to the server using AJAX.

My favourite thing about this is, I can stick all the HTML, JavaScript, CSS and images that make up my UI into a CDN with a custom domain name, and set up CORS on my service servers so they'll accept AJAX requests from that domain. Which makes serving the app lightning-fast, and reduces the load on expensive servers which have better things to be doing than shovelling static files.

The only fly in this ointment is that all the AJAX calls can be done to SSL endpoints, but unless the static files are served over SSL, there's no reassuring padlock symbol to tell the user that their data is being transferred securely. So you end up pointlessly HTTPS-ing your static content just to keep the padlock there. If anyone knows of a solution to that problem, please let me know.