about modulejs

17 views
Skip to first unread message

yuanyan

unread,
Mar 30, 2011, 6:15:57 AM3/30/11
to modulejs
modulejs - modular javascript framework

modulejs is a modular and Object-Oriented javascript framework that is
designed to write a high maintainability and reusability of the
javascript code.

yuany...@gmail.com

==Features

* HTML document query/traversing/manipulation
* Lightweight selector engine
* Event handling
* Animation
* Cookie/localStorage storage
* Language extensions
* Ajax/JSONP request
* Template engine
* Rich utility class


License

(The MIT License)

Copyright (c) 2010-2011 yuanyan yuany...@gmail.com

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

lifesinger

unread,
May 12, 2011, 8:28:14 PM5/12/11
to modulejs
思路认可,但为何 dom / node 等模块选择重新造呢?

YUI3 也是这个思路,颗粒化,模块化,但现在又演变成了一个庞然大物。

个人觉得,dom 操作库,可以开放地接受 jquery 即可。jQuery 本身是一个高度内聚的模块,体积
大是因为浏览器兼容本身的复杂性,同等功能下,jquery 是最小的了。轻量级的,也有 Zepto 等,
在 dom 操作领域重新造轮子,很难突破。

其他模块,我的想法也是尽可能的去包容社区现有的流行类库,比如 lang 模块,引入 underscore
就好。

从完美角度考虑,的确存在重复,比如 jquery 除了核心的 dom 操作,还提供了 each, isFunction
等辅助功能,这和 underscore 里的部分功能是重合的。在一个页面里,同时引入 jquery 和 underscore,
存在重复代码,"不完美"。然而,我们真的在乎这一点重复吗?个人觉得,"适量重复"可能比"零重复"
更现实也更完美。

Anyway,任何为梦想的努力都是值得敬佩的。期望看到 modulejs 更进一步的发展。

玉伯


On Mar 30, 6:15 pm, yuanyan <yuanyan....@gmail.com> wrote:
> modulejs - modular javascript framework
>
> modulejs is a modular and Object-Oriented javascript framework that is
> designed to write a high maintainability and reusability of the
> javascript code.
>

> yuanyan....@gmail.com


>
> ==Features
>
> * HTML document query/traversing/manipulation
> * Lightweight selector engine
> * Event handling
> * Animation
> * Cookie/localStorage storage
> * Language extensions
> * Ajax/JSONP request
> * Template engine
> * Rich utility class
>
> License
>
> (The MIT License)
>

> Copyright (c) 2010-2011 yuanyan yuanyan....@gmail.com

曹元彦

unread,
May 17, 2011, 6:53:39 AM5/17/11
to modu...@googlegroups.com
感谢玉伯的关注,非常赞同"适量重复"可能比"零重复"更现实也更完美,社区已经提供了很多而且又相当不错的library,当初modulejs的定位也有基于此考虑,所以在提供一些轻量级模块的同时,modulejs也有封装一些其他优秀的功能更全的js库让用户更方便的使用,如选择器引擎Sizzle,模板引擎jMarker,矢量图像raphaeljs等等,这样让用户有更多的选择。 

未来modulejs也会更开放的接受一些社区中优秀的library推荐给用户,再次感谢玉伯的建议。

元彦
Reply all
Reply to author
Forward
0 new messages