by nickb · 19y ago · 0 comments
HackerNews is an ad for yc, pg's articles and talks are for publicising yc. I think the real difference b/w blatant advertising and the type Joel and pg (Buchheit, Greenspun, Yegge, maybe 37Sigs) is they impart knowledge, useful knowledge. If they did not entertain, inform and question readers wouldn't bother reading their pieces.
But I do understand the continuous 'Fogbugz' references. Maybe it's the geek in you rejecting someone telling you need something when you don't.
Maybe nickb is right. The page design also sucks making it hard to read and possibly needs some attention?
I don't think so. PG was writing essays and giving talks about startups before YC.
Of course this were insights he had accumulated through many years, its hard to keep churning out great insights on a regular basis, so I think people just get disappointed.
Also, his insights are mostly related to business and high-level decisions. When he writes about coding, his opinions seem slightly curious: exceptions suck, Hungarian notation rules and so on.
Have you actually read his article on this? I think it's very good.
http://www.joelonsoftware.com/articles/Wrong.html
Joel doesn't say that you should prefix integer variables with 'i' or use -1 as an error code (he prefers returning multiple values). He only says that every line of code should indicate as clearly as possible what it's doing so that you can still understand it six months later.
Exceptions eliminate one problem (a function can only return one value) but introduce another: it's impossible to tell by looking at a block of code where it will exit. If a series of statements might get interrupted halfway through, there needs to be an indication of this or else it's very easy to create bugs. I know this from experience.
He could solve the tainting problem by just wrapping the unsafe string in an object. This would be safer even in a dynamically typed language. His example is only relevant to very early versions of VBScript that didn't support classes.
Regarding exceptions, they are NOT supposed to be used for returning multiple values. They supposed to be used for exceptional results that cannot be handled locally. They don't have to be "invisible", e.g. in Java you have to either explicitly handle an exception or explicitly declare that you may propagate it. Using return values OTOH you may forget to handle a return value, and the compiler will not complain. His complaint is more valid wrt. C# where exceptions are indeed not checked by the compiler. But since he don't even seem to be aware of this difference, I'm pretty sure he knows about neither.
You can mitigate this by relying more on return values and less on side-effects. If the higher-level code depends on some side-effect, why not place the side-effect in the higher-level code after the function returns?
-Joel Fanboy