Eyeball.js - Lightweight Javascript MVC Framework
github.com
github.com
o_O('Post', function(){ })"
+1 for ridiculous faces in ur code.
https://github.com/paulca/eyeballs.js/blob/master/src/module...
Also, how is a 350kb lib consisting of 150 files "lightweight"?
initialize: function(model_name, callback)
It would be pretty pointless to add comments before every line of code like some people do: // here is a for loop
for (var i...)
// declare a variable
var x = 0;
If there is supporting documentation about the operation of the method, which there is in that github page, then I fail to see what would be gained by adding verbose useless comments about typical code.So, the whole whole jQuery source is just one function, because its wrapped in one?
It's not so much the lack of comments, but the whole formatting of the source. It's just hard to read.
On a lesser note, it also seems that the author is pretty new to JavaScript. Underscores in variable names instead of lower camel case, "wrong" bracing style etc. (I'm ok with this, when it's applied consistently - which it is for this lib).
https://github.com/paulca/eyeballs.js/blob/refactor/eyeballs...
The initializer function is now 'oo' which works better all round I think. There's also a certain departure from its MVC root.
Finally, this library actually does predate Backbone. If backbone was around when I first built this, I probably would have gone ahead and used it.
Javascript functions are first class citizens.
var notCrapAtAll = window.o_O;
happy?
Maybe the whole project is a joke but then it's a very elaborate one.
Why does this variable name offend you so much?
I don't like it because it's relatively hard to type and naming it in this way does not serve any goal. I'm not satisfied by just changing it because it will, at least, hinder reading of third party code and generate silly arguments between developers.
I'd rather have the developers of the framework suggest something easy to type like 'e', 'E', or 'eb'.