高清生活 living HD

Icon

這是我的生活日記,記下特別的人與事情,把頃刻的感覺與思念留下來

type it, feel it

Code is poetry

Filed under: .js, Programming, Web Programming, lifeStyle

GWT+AIR, will it happen?

AIR brings all kind of web-tech together onto a universal runtime that runs in most of the platform nowadays. Consider we have Flash, Html, Css, Local-file I/O, Local-graphic accel., offline-online-interoperatibility and we have Eclipse as the IDE.

However AIR’s Html part is consideredly weak, it’s just a webkit browser and that’s all. It doesn’t promise to control the web content and functionality and solve the Ajax problems that we experienced, e.g. history, keyboard, browser compatibility, security, etc. In this point, why not let us introduce the ready & matured solution – GWT – to handle this part?

Filed under: .js, Programming, Web Programming

Change

  • “Ruby on Rails is a fantastic MVC-ready framework which is much easier for developer than using PHP.”
  • “AIR and Flex approach more Java than Javascript, the main reason is that JS is single-thread only, which is not good for desktop apps.”
  • “Leopard has a ready-to-use environment for developer – the Xcode toolset, including Debugger and Organizer.”

Filed under: .js, Apple, Programming, Web Programming

Javascript Diff Algorithm

The red brown spotted fox jumped leaped over the rolling log.

Filed under: .js, Web Programming

如果面試時,說自己是Javascript Expert,哪怕會被暗地裡嘲笑吧。

  • 因為在這 10個WEB P仔裡,9個也說會Javascript的年代,說自己是Javascript Expert這好像沒啥吸引力吧。不過假若這是你的唯一強項呢? ...只能感歎(感性地慨歎)自己能力有限。
  • 換另一種角度。假若這真的已經成為了Basic skill,那又實在沒有強調的必要。
  • 再換角度。假若你強調是外間沒有真正了解及低估此技術,而自己的境界及領會均與眾不同,哪又會否被認為是在故弄玄虛?
  • JavaScript as a Languagehttp://ejohn.org/blog/javascript-as-a-language/   
  • JavaScript:The World’s Most Misunderstood Programming Languagehttp://www.crockford.com/javascript/javascript.html (JavaScript objects can have private variables and private methods.)
  • Javascript is supported in Quartz compositions. It’s also possible to use Javascript to access classes in the Cocoa Objective-C framework on the Mac.” 

Filed under: .js

JavaScript Coding Guidelines for Mac OS X

JavaScript Coding Guidelines for Mac OS X – 24 Pages,足夠玩殘你。JavaScript IS SUITABLE FOR: 

  • Web pages or app.
  • Dashboard Widgets
  • Apple’s JavaScript Core framework, like Installer
  • iPhone app. 


  • var myFunctionVariable = function ( variable ){// code to execute within this function}
  • Once a function is defined within a variable, it can be passed as an argument into any other function. Within the receiving function, call the function variableby placing parentheses after the variable’s name andoptionally including arguments, like this:
  • function myFunction ( myFunctionVariable ){myFunctionVariable( “aString” );}
  • 死未Function 即 Variable, Variable 即 Function。簡直系人神境界。
  • 然後。。。Getters and Setters!myObject.__defineGetter__( “myGetter”, function() {return this.myVariable; });myObject.__defineSetter__( “mySetter”, function(aValue) this.myVariable = aValue; });myObject.mySetter = someVariable; 
  • 接著上。。。Inheritance!MyChildObject.prototype = MyParentObject.prototype; This copies all of the parent’s functions andvariables to your object!! 
  • Avoid evaluated statements. Using the eval function disables performanceand memory optimizations  in the JavaScript runtime.

Filed under: .js, Apple, Web Programming

Mouse Madness

又在研究jQuery…1. 新版本(1.1.3)改善了bind及unbind會在IE引起infinite loop的問題.2. 關於mouse event, 這個網頁可算是Bibble: Javascript Madness: Mouse Eventshttp://unixpapa.com/js/mouse.html3. 這裡也有詳細的Javascript Event說明:JavaScript 语言参考手册http://www.8esky.com/handbook/JavaScript/evnt18.htm

Filed under: .js, Web Programming

2007-May to Mid June Review

1. Apollo runtime + jQuery will let the web change2. 我們的教科書 – Say black when black, white when white. But who can always keep saying the truth?3. Why do we need Virtual Machine? What tasks we can archive better and faster with VM? What things we cannot do without VM? And that we can do from now on?4. How to earn money other from work?

Filed under: .js, Reading, lifeStyle

jQuery1.1

Filed under: .js, Web Programming

GWT,YUI,dojo,jQuery中挑了jQuery

GWT,YUI,dojo,jQuery中挑了jQuery


来源:CSDN 发布会员:新书城收集整理 发布时间:2006-12-2 人气:17

想搭建一个框架是使用AJAX的,首先考虑到的就是Google web toolkit,看了一下它的文档,就是将所有的dom元素封装成Java对象了,写起代码来,因为有IDE的帮助,而且凭着静态语法的特点,出错的机率 就小了。但是有这样一个问题,比如说想给页面上随便增加一点东西的话,却不能随便编辑html文件,因为GWT生成的代码并不是那么好读,也就是说,每次 要修改一下页面,就要重新再编译一下Java代码。这点可不好。后来就改用YUI了,YUI的example 倒是非常的丰富,但用了总感觉不舒服,后面想想,才明白是因为它的api设计得不好调用,代码不能写得很简洁。没得说,又去试了一下dojo了,感觉是简 洁得多了,api用了感觉挺舒服的。写页面的时候,想用一下prototype的$,之前还以为dojo是基于prototype写成的,结果试了半天, 才发现并不是这样,正巧又在网上看了一篇介绍jQuery的,试了一下,就迷上它了,然后就把dojo从项目中移走了。   仔细回想了这四个框架,想想自己为什么会选中jQuery。才发现,因为jQuery的源代码是最简洁的,结构上也是最容易全部掌握了,写 JavaScript代码的时候,总是希望所有的代码都是在自己的手里面控制的,这种想法,跟一年前的想法一模一样,当时AJAX刚火的时候,也想去试一 些开源的框架,但用了一段时间以后,就放弃了,全部使用了自己设计的框架,因为框架掌握在自己手里面,舒坦。  JavaScript库丰富固然好,但是越丰富,自己就越不了解全部层次,内心就越不安。不懂这是不是大多数人的通病。可是仔细想想,为什么Java的开源库用得这么自在,为什么JavaScript的就自在不起来呢。 本文地址:http://www.newbooks.com.cn/info/61944.html

Filed under: .js, Web Programming

C

T

  • 還是忍不住要裝WIN7 DRIVER到VAIO Z本本! 1 month ago
  • 「為建而建」的項目,是為了公益還是為私利? 1 month ago
  • Windows 7を契機 1 month ago
  • 超時空アンセム2009 息をしてる - 息をしてる 感じている By 飯島真理/FIRE BOMBER(福山芳樹&チエ カジウラ)/May'n/中島愛 1 month ago
  • 香港陳水扁 1 month ago
  • 「友好的解決方案」(amicable settlement) 1 month ago
  • 我們窮一生去學習,認清事實,目的只不過是裝備自己去扭曲事非。然後騙了別人,迷失了自己。 1 month ago
  • 天体戦士 1 month ago
  • さらに秋山未来、板橋るみ、里見茜、須田朱音、澤本幸 秀、藤沢直希のギャル系モデル男女6人で構成されたRomeoがJulietをプロデ ュース。 1 month ago
  • 相比起iPod nano 5代, Sony MD機當年(MZ-DH10P, 2005年推出) 已經可以影相... 1 month ago