325 karma · joined June 24, 2008
There were also some docs in other disciplines and they were all incredibly good. Based on that experience I think cuba is hardly "punching far above its weight", but reflecting great care, passion and responsibility as they do in other fields... We just assume a lot of things about cuba. I sure did before.
Maybe instead of trying to use lua as another language, you should totally embrace "the lua way" and then you'll understand why their tables/metatables is the way it is.
It's not that complicated, swaping between the two. they're basically the same if you don't use breaking printable blocks. So you just change:
tm = _.template(string);
tm(context);
to tm = new Thulium({template : string}).parseSync().renderSync(context);
It's different in that you do the initialization, parsing and rendering in different steps. TBH, with smallish templates, I found Thulium to be about 10µs faster. Which in most cases, is negligible. So if you're already using underscore, you probably shouldn't change everything. But if you need extra features like wrapping the output of a function in form tags or something like that, you can do it really easily with thulium. (Porting some of our helpers from EJS to Thulium meant a reduction of many lines of code and complexity.)Quick Edit: This is one of the reasons why I love discourse, it encourages metadiscussion in a separate part, and while it doesn't keep it from contaminating, it seriously helps a lot to focus it and guide it.
(EDIT: Also of note is the fact that this change was from a year ago, and the previous one was in 2003 ... So. Yeah)
The algorithm has changed. The web has changed. Naturally, google has changed.
Quick Edit: Seems to me that this is more about "Hey, don't forget there's also this" and taking the chance to "teach a quick lesson" about how dumb the concept of stealing ideas is and not to fear competition.
The nice thing about the zero to the stronger student without consequence to the weak student is that they didn't go down together, which tends to make the affected more likely to go confront the issue.
Sure, what I'm saying is not based on any hard data except my years at uni and the fact that a physics professor in my campus did the exact same thing.