Tales from the Evil Empire
Bertrand Le Roy's blog
-
JavaScript local alias pattern
Here’s a little pattern that is fairly common from JavaScript developers but that is not very well known from C# developers or people doing only occasional JavaScript development.
-
The fastest way to resize images from ASP.NET. And it’s (more) supported-ish.
I’ve shown before how to resize images using GDI, which is fairly common but is explicitly unsupported because we know of very real problems that this can cause. Still, many sites still use that method because those problems are fairly rare, and because most people assume it’s the only way to get the job done. Plus, it works in medium trust.
-
What happens to C# 4 optional parameters when compiling against 3.5?
Here’s a method declaration that uses optional parameters:
-
RSS feeds in Orchard
When we added RSS to Orchard, we wanted to make it easy for any module to expose any contents as a feed. We also wanted the rendering of the feed to be handled by Orchard in order to minimize the amount of work from the module developer.
-
Netbook vs. iPad
Troll bait!
-
Ban HTML comments from your pages and views
Too many people don’t realize that there are other options than <!-- --> comments to annotate HTML. These comments are harmful because they are sent to the client and thus make your page heavier than it needs to be.
-
A C# implementation of the CallStream pattern
Dusan published this interesting post a couple of weeks ago about a novel JavaScript chaining pattern:
-
NoSQL is not about object databases
NoSQL as a movement is an interesting beast. I kinda like that it’s negatively defined (I happen to belong myself to at least one other such a-community). It’s not in its roots about proposing one specific new silver bullet to kill an old problem. it’s about challenging the consensus.
-
FluentPath now on CodePlex
My FluentPath library is now available on CodePlex. I’ve also modified the code so that it can now be compiled against .NET 3.5SP1 and not just .NET 4.0.
-
Binding a select in a client template
I recently got a question on one of my client template posts asking me how to bind a select tag’s value to data in client templates. I was surprised not to find anything on the web addressing the problem, so I thought I’d write a short post about it.