8 ms·
Has Joel Spolsky Jumped the Shark? (2006)
- JPKab 14y agoFrom the comments on the article: "However, instead of upgrading to ASP.NET, they decided to.. write their own proprietary language that compiles down to VBScript/PHP/JavaScript." Atwood then goes on to call it "crazy town." Am I the only one who thinks that this decision might've paid off down the road for them? It sounds like he was just trying to code his app in a way that it would work in multiple types of server stacks, rather than trusting that MS wouldn't break their backwards compatibility again after doing so with ASP.net. Maybe I'm wrong. I'm curious what the people who know way more than me think about this. I knew next to nothing about web apps in 2006, other than dabbling in PHP as a side note in a MySQL class.
- noblethrasher 14y agoSome people overestimate the difficulty in writing a compiler. A single developer could have probably done it in six to eight weeks (seriously).
- eksith 14y agoWell "compiler" in this case is really "high-level code generator" instead of "low-level code generator". So yeah.
- noblethrasher 14y agoThere's not much difference since generating the abstract syntax tree is usually the hardest part. Once you've done that, it's just a matter of generating a string representation for each node in the tree for the given target language.
- chollida1 14y agoReally? I've worked on compilers for a long time and the AST generation is typically the easiest part. Optimizations, and different target backends are easily an order of magnitude harder. That's why every new language typically begins as a simple AST tree walker, that's the easy part. They can they "graduate" to byte codes and then to asm generation if appropriate.
- DoubleCluster 14y agoDid you ever try to translate one language into another? Usually it's just generating the AST that is the hard part, then you can just spit out code and let the compiler for the target language do the hard stuff.
- chollida1 14y agoHmm, for me it's always been tougher trying to determine what the source language should compile down into. AST generation is usually simple. It's the conversion to the other language that usually get's difficult.
- c3d 14y agoAgreed. fortunately, there's LLVM for the back end now. And XL for the front end/AST
- noblethrasher 14y agoThat's fair. But in my world “compiler” and “optimizing compiler” are very different things. Also, targeting different backends is drudgery but I never thought of it as being hard.
- chollida1 14y ago> That's fair. But in my world “compiler” and “optimizing compiler” are very different things Ah, ok. In that case, I'd agree.
- gecko 14y agoI'm not clear where people get this idea from. In the case of Wasabi specifically, it uses Code DOM, which can generate IL, C#, and VB.NET out-of-the-box, and can be extended fairly easily to target other platforms as well.
- spolsky 14y agoBy way of background -- at the time that we created Wasabi's predecessor, Thistle, we had a large code base in VBScript that only ran on Windows, and almost no developers. Thistle was done by a summer intern in eight weeks and got us PHP FogBugz running on Unix for 8 weeks work, which almost doubled our potential market. At the time, Fog Creek consisted of three people and one summer intern. We couldn't afford to rewrite all of FogBugz in some other language... even if there was a language (in 2003) that was reasonably portable between Windows and Unix, which there wasn't. (Yes, we considered PHP. That would still have been a full rewrite, and PHP on Windows was crappy and increased the system requirements in a way that our customers wouldn't have liked). Yeah, a Lexus is better than a Camry, but not everyone can afford Lexuses. So saying "you idiot, why are you driving that crappy car, it's obviously crappy" is not particularly insightful... the question is, if you can get 90% of the bang for 10% of the bucks, that's a pretty good decision as a startup, even if it seems strange. What's more interesting about the reaction is that so many average programmers seem to think that writing a compiler is intrinsically "hard," or, as Jeff wrote in 2006, "Writing your own language is absolutely beyond the pale." To me this sounds like the typical cook at Olive Garden who cannot possibly believe that any chef in a restaurant could ever do something other than opening a bag from the freezer and dumping the contents into the deep fryer. Cooking? With ingredients? From scratch! Absolutely beyond the pale! Compilers aren't some strange magic black art that only godlike programmers are allowed to practice. They're something you learn how to create in one semester in college and you can knock out a simple one in a few weeks. Whatever you think about whether it's the right thing or not, if you think that a compiler is too hard to do as a part of your day job, you may want to invest some time in professional development and learning more about your craft.
- perishabledave 14y agoI think the neat thing I learned from my compilers class is that writing a compiler isn't insurmountable. The problem is, however, that writing a compiler for a full-featured language is quite an investment in time and thought. Given that languages have developed quite significantly since 2006, if you had to make the same decision in this day, what would you do?
- jerf 14y ago
- rglullis 14y agoI have a theory about this. It has to do with the fact that Fogbugz started as off-the-shelf software, where companies would buy the CD and install the software on their own servers. The hosted version came much later. Considering that most of the original code base was using ASP (there was no .NET when they started), this meant that all of their source code had to be shipped with the product. They couldn't just ship binaries. So part of me wonders if the Wasabi idea was a way for them to have obfuscation and some protection against piracy and competitor knock-offs.
- mbreese 14y agoI'm pretty sure it had more to do with supporting Windows and Linux server installs. I know we looked at FogBugz for an internal use, but at the time it was Windows only. Since we were a Linux shop, there was no way it was going to work.
- rglullis 14y agoI don't know... if Linux support was their only goal, there were other options that could be taken into consideration. I'm reasonably sure that around 2005 there were some solutions that made it possible to run ASP on Apache. At the time, even Mono/XSP was somewhat viable. [1] [1]: http://www.codeproject.com/Articles/9738/Introduction-to-Mono-ASP-NET-with-XSP-and-Apache http://www.codeproject.com/Articles/9738/Introduction-to-Mon...
- mbreese 14y agoYeah, but I wouldn't have installed that on my server, it would have been too awkward and a support challenge for FogCreek. So, I think the idea was to support deployment on a standard runtime for each platform: PHP on Linux, ASP on Windows.
- gecko 14y agoWasabi nowadays uses Mono, and until very recently, whether it was legitimately viable was a matter of opinion. Technically speaking, its garbage collector made it ill-suited to long-running processes (such as web servers), and its performance was far worse than the Microsoft CLR--frequently two to five times slower. Ideologically, we also met resistance; many Linux system administrators seem far more reticent to install Mono compared to PHP. Both have improved recently, but back in 2005, Mono was not a sane option.
- cllns 14y agoFor reference: Jeff Atwood and Joel Spolsky founded Stackoverflow two years later. [1] http://www.codinghorror.com/blog/2008/04/introducing-stackoverflow-com.html http://www.codinghorror.com/blog/2008/04/introducing-stackov...
- spolsky 14y agoWow, ancient history, but this later became a standing joke, and Jeff mostly recanted. See http://pvm-professionalengineering.blogspot.com/2010/05/jump-shark.html http://pvm-professionalengineering.blogspot.com/2010/05/jump... (although why that site exists, I cannot say.)
- olalonde 14y agoDoes anyone know if FogBugz's codebase is still in Wasabi? edit: Apparently it is, as of 2010. http://fogbugz.stackexchange.com/questions/210/is-fogbugz-7-written-in-net-or-still-wasab http://fogbugz.stackexchange.com/questions/210/is-fogbugz-7-.... Also, a 2011 Quora answer by Spolsky: "Much of the FogBugz code is still in Wasabi but a lot of it is in C# now." http://www.quora.com/Joel-Spolsky-Are-you-still-using-Wasabi-for-building-FogBugz-and-what-would-you-pick-today-if-you-were-starting-from-scratch http://www.quora.com/Joel-Spolsky-Are-you-still-using-Wasabi...
- gecko 14y agoFogBugz' core is still in Wasabi, but nearly all new code, including one hell of a release coming out soon, is in C#. The Wasabi core is gradually dwindling into an API shell, which will itself probably disappear at some point in the future. If you prefer to think of it this way: on any given FogBugz page load, you'll hit Wasabi, but the time spent in Wasabi will be increasingly tiny. Kiln is pure C#/Python, Trello is pure CoffeeScript, and so on. Wasabi solved a porting issue. It wasn't designed for and isn't used for new stuff.
- nilkn 14y agoSpolsky himself left a comment buried in the discussion on that article: > Let's put it this way. You have these constraints: > (1) Six years of code already written in VBScript > (2) Needs to run on customers' Windows and Unix servers > (3) Minimize tech support costs > (4) Many customers refuse to install new runtimes on their servers, either because of IT policies or out of stubborness > What would be your solution? Anyway, whether it was a good solution or not, I don't quite understand the need that some people had to pick on someone so harshly. I never really followed Spolsky's blog but as far as I can tell it was pretty tame and respectful. Am I missing something? Edit: Also, a compiler from one high level language to another is not the hardest thing in the world to write. We've got college kids these days writing new languages that compile to JavaScript. Maybe this was viewed as more of an extraordinary engineering feat back then or something.
- rodly 14y ago> I don't quite understand the need that some people had to pick on someone so harshly. I never really followed Spolsky's blog but as far as I can tell it was pretty tame and respectful. Am I missing something? Fierce discussion isn't harsh, it's just that the underlying topic is so interesting that people feel inclined to pick apart the pros/cons extensively until they arrive a brick wall of pure disagreement.
- roc 14y agoI don't think the arguments against were hinged that much on difficulty. Mostly it stemmed from supportability, correctness, having to train all your new hires on your new language, etc. Sometimes, sure, the right move is the least worst decision. But that doesn't excuse it for being a bad solution in general.
- akavi 14y agoCreating a new language is trivial (Hell, I've made one). Creating a robust, well-designed, full-featured, peformant language is very much not. And that totally ignores the absolutely massive benefit of having a community around your language of choice. Libraries, bug fixes, googleability, a pool of programmers to hire from, etc, etc, etc.
- nhashem 14y agoReading the entirety of Spolsky's post was especially interesting for me to to read: http://www.joelonsoftware.com/items/2006/09/01.html http://www.joelonsoftware.com/items/2006/09/01.html Interesting to see Joel's comments on web stacks built with Python and Ruby back in 2006, and even taking a snipe at Lisp. I really can't decide whether web development has fundamentally advanced in every way in the past 5-8 years, or whether it's essentially the same.
- spolsky 14y agoKeep in mind Ruby on Rails had been out for less than a year at the time I wrote that, and the only thing I said about it was that brand new frameworks are not the kind of thing that enterprises like to bet the farm on.
- reinhardt 14y agoAs opposed to things like, say, brand new languages that compile down to VBScript. The whole Wasabi story sounds eerily similar to this classic Daily WTF: http://thedailywtf.com/Articles/Classic-WTF-We-Use-BobX.aspx http://thedailywtf.com/Articles/Classic-WTF-We-Use-BobX.aspx
- stingraycharles 14y agoAs long as you either control the whole stack, or the stack is built on top of components that are considered mature, there is not much of a problem there.
- deleted 14y ago[deleted]
- JPKab 14y agoI don't think you get it: enterprises don't want to put new runtimes, platforms, etc on their hardware, EVER. As far as the enterprise IT dude is concerned, the VBScript is VBScript. He doesn't know or care how it was created, as long as it runs on the Windows box the 2006 corporation demanded he use. It seems to me that Joel was just trying to code once, and have the app run for customers who were tied to Windows only (and PHP ran like shit on Windows back then). Keep in mind how difficult it can be to deploy software in a large enterprise. It's never technical difficulty, its bureaucratic. Go to ACME Widgets, Inc., try to install Ruby on a server, and see how many weeks/months of hell you have to go through to stand it up.
- loumf 14y agoHere's more of the back-story to why they created the ASP->PHP compiler in the first place: http://www.joelonsoftware.com/articles/FogBugzIII.html http://www.joelonsoftware.com/articles/FogBugzIII.html
- lnanek2 14y agoIf customers prefer to run bug tracking software internally, then you are giving up a lot of customers by only offering external hosted solutions. If customers prefer one stack to another for internal solutions, then you are giving up a lot of customers by saying you only work on PHP or some other stack. If you just look at Joel's decision to write in something compiled to different stacks that can be run internally from a technical perspective, yeah, it sucks. But if it doubles the number of people who will buy your solution, then it may not suck from a business perspective. Software is all about spending a fixed amount to produce it and then selling it over and over and over. If you double that fixed amount and double the over and over and over, you doubled your profits. Writing once and compiling to two things is less work than writing the same product in two different code bases as well. That sounds good and ignores things like buying a magazine ad becomes more efficient because more people who see the ad are potential customers. As an engineer, I sure as hell wouldn't want to work on a system written in Wasabi. But as a business person, or an employee getting equity or options, it might make sense.
- xer0x 14y agoGold. Thank-you for posting this. I missed this.
- DenisM 14y agoSpolsky has been pumping out great, engaging content in his blog for years; I remember spending countless hours with my friends arguing over it. Then he wrote a couple of mediocre posts and stopped blogging altogether. Had it ended there, it would have been merely an astounding feat of self-awareness. But it didn't end there. Joel had then converted his entire audience to seed Stack Overflow - the one invention that had the biggest impact on the programmer productivity in the 21st century. That's one hell of way to jump the shark, a gold-medal level performance. We would be lucky beyond measure if that sort of "disaster" happened to us every four years, or even each decade. But we're not so lucky. Hats off to Joel Spolsky.
- lubos 14y agoI hope you are aware Stackoverflow was actually created by Jeff Atwood. Joel just gave the initial idea something along the line like "let's make something like ExpertsExchange but less evil" Not to mention, Stackoverflow was seeded initially by Atwood's audience (since he was the developer of the project to start with). I know because I was one of the first users back in private beta.
- DenisM 14y agoOk. I still think its one of he best ways to jump the blogging shark - donate your audience to where it matters the most.
- lubos 14y agoJoel didn't donate anything. Donations are given without return consideration which is hardly the case here since Stackoverflow was his business.
- jessaustin 14y agoSo does Spolsky get credit for SO or not? You can't have it both ways.
- furtivefelon 14y ago
- andrewvc 14y agoFogBugz in general is terrible. I use it everyday, and it's remarkable insofar as how amazingly bad the UI is. I was shocked to finally use software by Joel, who's essays I'd been reading for years, and discover that it was terrible.
- JohnsonB 14y agoThe pricing model is also something from another era. It's an incredibly unattractive option for small teams just starting out, especially when compared to all the reasonably priced high quality options out there (github etc.)
- shaggyfrog 14y agoI was excited a few years back to finally get FogBugz set up for my new company to use on a project, only to find it incredibly frustrating to use, and dropped it like a stone. The lesson I learned is that people who write a lot of interesting things about software development (I've read almost everything on Spolsky's site) don't necessarily create good software themselves.
- canthonytucci 14y agoOne of the worst non-free tools I've ever had to work with. Have been extremely skeptical/critical of anything I read of his after dealing with fogbugz. Edit: toned it down.
- gnosis 14y ago"I was shocked to finally use software by Joel, who's essays I'd been reading for years, and discover that it was terrible." Spolsky's writings have always seemed to me to be completely vapid and obvious, at best. To see what a great reputation he has among pointy-headed bosses and developers alike is a sad comment on the state of the industry. That his company writes crappy software should surprise no one.
- andrewvc 14y agoWell, I guess I'm just an idiot and a fool. You must be great to work with.
- shawndumas 14y agoHere is some detail on the kind of stuff Wasabi does: "[H]ow to translate [this bit of VBScript] a(1), which could mean "look up the 2nd element of array a" or "call the default method of the object a passing the argument 1" depending on what type a contains at runtime? This really matters, because we use arrays, and because we use the built-in class RecordSet all over the place, doing things like rs(1) which is short for rs.Item(1).Value, and since VBScript is latebound there is no way to know what code to generate in PHP until runtime, and that's too late! The only correct thing to do in PHP would be to generate code that checks the type of a, and decides, at runtime, whether to do an array lookup or a method call. This is messy and slow and would suck big rocks in the kinds of tight loops where you tend to be using arrays. How did we fix it? Well, thanks to Hungarian notation, so callously dissed by developers who do would not recognize a superb coding convention if it walked up to them on the Shanghai Maglev train and shook their pants leg, every recordset at Fog Creek starts with the letters "rs". And Thistle looks for the rs and say, "ah, this is a recordset, you're not looking for an array value, you're calling the default method," and generates fast code. Based on your age you will either call this an evil hack (if you're young) or an elegant hack (if you're old); in either case it's a huge optimization made possible by the fact that Thistle only has one program to compile. Outside of Fog Creek it wouldn't work. All hail Hungarian notation!" http://www.joelonsoftware.com/articles/FogBugzIII.html http://www.joelonsoftware.com/articles/FogBugzIII.html
- mikeash 14y agoI like how making it so that variable names determine whether or not the compiler generates correct code is labeled an "elegant hack". To borrow his phrasing, this makes me wonder if Joel would recognize an elegant hack if it walked up to him on the Shanghai Maglev and shook his pants leg.
- cpressey 14y agoI would barely call this a hack at all; it's only a hack under the view that it feels icky to evolve a programming convention into a language construct. Languages have been treating (parts of) variable names as part of the type system for ages: Fortran, BASIC, Perl, ...
- wglb 14y agoAnd he was so convinced that Joel had jumped the shark that he went into business with him.
- metaphorm 14y agoi'm asking in advance for a little indulgence as I trot out my language snobbery: I had to check that the blogpost wasn't an April 1st submission because the entire premise of writing a toolchain to get cross-platform compatibility out of Visual Basic has get to be April Fool's material. The fact that the language is interpreted from VB into other languages that might generously be described as "partially good" (like JavaScript and PHP) just takes this whole thing over the top. in other words my mind is blow (as per Atwood's comment) that the goal of cross-platform compatibility wasn't achieved in a sane way, like just using Java or Python.
- c3d 14y agoAt Taodyne, we also developed our own language. That lets us do that: http://www.youtube.com/watch?v=9vv18SFljzA http://www.youtube.com/watch?v=9vv18SFljzA. No other language fits the bill. Try that in Javascript or PHP and see if you can fit the whole thing in 15 minutes (the YouTube upload limit) Sometimes designing your own language is just the right thing to do.
- danpalmer 14y agoHaving read the linked post by Jeff, the post first mentioning Wasabi by Joel, and the follow up to it, I'm not sure I can see what all the fuss is about? There are a few things that I think sound wrong, things like performance comparisons with Ruby, although I wasn't doing web development in 2006, and I'm sure it was a very different time. However I don't think Jeff was entirely fair to Wasabi. He picked on it compiling to VBScript, but I think Joel explained clearly that it was only one of the possibilities, and in fact PHP5 would have been a perfectly good target to compile to. I think we have a lot more choice now for web applications, and therefore I don't think it's justified to write your own compiler and language in-house anymore for something like this. However at the time, I think what Fog Creek did with Wasabi was a good decision, and actually quite inspiring.