Posts Tagged component
[Flex] 剖析不同的 Components Sizes (measured by lines of code)
身為flex developer ,應該要對自已每天都對著的framework 有多一點的了解。 (分明就沒有了解啦),看到了之後有點嚇人…..原來advanceDataGrid 是第一位。。。。大家要小心使用的呢~
有個developer 就分析了不同component 的lines of code,當然,愈長的code 就一定會花更多的時間的呢~而devleoper 都應該儘量留意使用和使用的方法。
以下是 3.0.0 的分析:

幾千行沒什麼大不了? 錯!
先看看: AdvanceDataGrid 的inheritance
UIComponent
ScrollControlBase
AdvancedListBase (4,553 lines of code, 8,573 total)
AdvancedDataGridBase (1,184 lines of code, 2,084 total)
AdvancedDataGridBaseEx (4,503 lines of code, 7,428 total)
AdvancedDataGrid (5,385 lines of code, 8,432 total)
你要全部加起來,about 15,605 行code. (若加上comment and whitespace –26,517!). 相等於7﹪ of flex framework. [已經不計入UIComponent, ScrollControl Base 了]
值得留意的是ListBase 是第二大的class…… (所以很多人都會少用list control, 至於datagrid…無法子……都要用的呢….不過現在是大量採用….暫時都未有問題)
長的code 除了慢之後,debug 都會是一個很大的問題,你用了advancedatagrid 之後,如果是framework 本身 (當然你是不知道的呢) 有問題,then …you are in trouble…..因為一個問題而看30000行code? 似乎不大可能的。
不同component 的Full List 對於optimization 方面來說真是十分有用。你可能不能避免,但你會小心使用。
應該要說句公道說話,始終flex framework 還是很新的,所以framework 還有很多地方要improve, optimize. developer 自己要留意一下自己的coding 方法。避免自己的apps 變成一隻蝸牛。
[Flash] 指南針
Posted by Chowky in Flash, Opensource, RIA on September 15, 2009
一個用flash 開發的指南針。
當你drag 指南針的時候,指針就會自動指向北。
這個effect 方面是利用actionscript 3 的tweening class.
Chowky 個人比較喜歡 tweenmax 的library。因為只要一句actionscript 就可以做到很不的animation。
(這個post 都比較數學呢~~,要atan…… 要這樣計角度來做,原來真的不簡單呢~)
[Mootools] Image Zooming Component
Posted by Chowky in Jquery, Mootools, Opensource, Utilities on May 6, 2009
這個zooming effect 真是不錯,可惜的是,不能自動generate thumbnail,若chowky 有500張相,豈不是要……
不過resize thumbnail 已經有很多tools 可以做到。
雖然有很多gallery 都已經有這個效果 ,不過可能是幾張相,沒有必要使用一個gallery component。
chowky 認為是lite 之選擇,多的話始終要用回gallery 的。


License: MIT
Source:
http://www.byscripts.info/scripts/javascript-dynamic-image-zoomer



Recent Comments