December 2009
22 posts
Sanity for your git workflow →
Separating layout and content is a mistake. Content should be inextricably...
– Dustin Curtis
3 tags
Arc style multipage webapps in Haskell →
Arc is a sort of dsl for writing webapps.
1 tag
When can I use... →
Find out what technologies are usable for a set of browsers
2 tags
Using .Net Expressions
One of the most powerfull parts of c# that totally went past me until a month or so ago, are Expressions. Simply put, if you create a lambda expression:
Func<int,int> square = x => x*x
You can call it as a function:
square(2); //returns 4
But if you forecefully declare it as an expression:
Expression<Func<int,int>> square = x => x*x
You have created an...
2 tags
Fooling the c# compiler
Summary: Don’t cast to interfaces unless you really have to. Use var in a foreach loop.
In my version of Visual Studio the code below will compile without a warning or error. However, it will throw a runtime exception.
foreach ( IDictionary x in new List<IList>() ) {
}
To compare: the as-you-type-checker is smart enough to catch the sillyness of
foreach ( IDictionary x in new...
Another leak, the worst so far →
Another leak, the worst so far (via). “Arweena, a spokes-elf for Santa Claus, admitted a few hours ago that the database posted at WikiLeaks yesterday is indeed the comprehensive 2009 list of…
Semantic Versioning →
A name and specification for a common versioning scheme. This allows you to say “In our project we use semantic versioning” and people will know what to expect.
I’m also going to maintain a ‘denormalisation dictionary’ documenting every...
– Simon Willison
If you can’t focus on your core work […] due to a boundary of a given...
– Frans Bouma
A solid html parser →
@subroutine: I agree, it should be built in.
Silverlight 4 demos from my PDC Keynote now... →
Shared by Jauco
The html youtube jigsaw is pretty impressive
[In addition to blogging, I’m also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] Last month I gave a Silverlight 4 keynote at the PDC conference. You can watch my keynote online
Semantic Versioning →
Semantic Versioning. Tom Preston-Werner provides a name, specification and URL describing the relatively widely used Major.Minor.Patch versioning system. This is really useful—by giving something…
Any() versus Count()
→
I know that I shouldn’t use count, but count() == 0 is just hardwired into my brain somewhere.
Sarcasm and the Internet work great together.
– Drinian on hacker news
1 tag
Richard Stallman, Linus Torvalds, and Donald Knuth engage in a discussion on whose impact on computer science was the greatest.
Stallman: “God told me I have programmed the best editor in the world!”
Torvalds: “Well, God told me that I have programmed the best operating system in the world!”
Knuth: “Wait, wait, I never said that.”
Crockford, webhosting, online dating, JSON, alert →
This is a fun story that has a security and performance point to it.
Earlier today, Dion Almaer tweeted:
Wow, Doug added an alert() to http://www.json.org/json2.js which just alerted a LOT of…
Make Google Chrome Open with Permanently Pinned... →
On Mono and C# 4.0 →
John Resig - ECMAScript 5 Objects and Properties →
My Presentations in Europe (December 2009) →
Shared by Jauco
Had je vast al gezien, maar toch
This past week I’ve been traveling around Europe giving a bunch of presentations (approximately 5 hours in each country) – Norway on Tuesday,…
Any sufficiently advanced damage control is indistinguishable from ethics
– Eliezer