Dennis 的無差別 Blog | I thought what I’d do was, I’d pretend I was one of those deaf-mutes

CAT | Java

lambdaj – Project Hosting on Google Code.

看過好幾個 LINQ like closure solution on Java 的 syntax

用 lambdaj 的實現的 “Hello World” 也可以說是最簡單和和 Programmer Friendly

Java 相比 C# 係實現 LINQ / closure 最大問題係原自 Language Syntax

在不改變 Java Language 本身嘅情況下, 最多都只係類似 lambdaj 那種 很多很多 (((會眼花) 好易打錯(的多層 static method lambdaj)) 寫法
而且大量利用 Proxy 和 static method 的情況下, 程式的可讀性會出現問題

C# 有 delegate (a.k.a function pointer), 而且 delegate 都是 strong typed 的, 有很多都可以利用它來簡化
C# 甚至加入近幾狂亂的 Expression 去簡化往日很多由  programmer 的好多手工作業 (雖然我唔知道除左 LINQ 重有咩地方會想去用 Expression….PF? WF?)
C# 加入了 Extension Method 去修正先後次序的可讀性問題

我最近在 C# 實作了動態 ExpressionTree Builder ……..對把這種功能整合到 Syntax 和 Compiler 有很深的體會, 那真的簡單很多很多很多

C# 3.0 很美, 但 Visual Studio 卻…..唉~~~ 都是 Eclipse 的錯………寫不到 C#

Java 7, 依目前我所知的, 是跟不上 C#

No tags Hide

Jun/09

27

Eclipse VE 復活!?

Life’s Passion » Blog Archive » Eclipse VE gets revived!.

Welcome back of VE in Eclipse stream after more than two years’ sleeping

, , Hide

Introduction:

A lot of us heard the word cache and when you ask them about caching they give you a perfect answer but they don’t know how it is built, or on which criteria I should favor this caching framework over that one and so on, in this article we are going to talk about Caching, Caching Algorithms and caching frameworks and which is better than the other.

Yet Another Java Blog: Intro to Caching,Caching algorithms and caching frameworks part 1.

, Hide

code_swarm

An experiment in organic software visualization.


code_swarm – Eclipse (short ver.) from Michael Ogawa on Vimeo.

, Hide

It is good for “classic Web development” to “Web 2.0 development”. It is not for moving from fat client/server  application to web based application.

It cannot not do persistent, share, or collaboration without a server. You always need (at least) one server unless a classic client/server fat application.

- “database” in Gears is a rich replacement of cookie, by using of sqlite
- GWT is “Java like syntax”, it is not Java. You cannot migrate your swing application to GWT. You can only share these soruce code in very very extreem cases.

From my point of view, RIA / AJAX are hot because they can  provide Rich user interface and can save some development time on “supporting function”.

AJAX Web application can help you that do a 3-tear application, rather a 4-tear application.

e.g.
old 4-tear :
Browser HTML <-> web app (control of GUI here)<-> web services <-> databases
AJAX 3-tear :
Browser AJAX/RIA <-> web services <-> databases

Programmers can spend less time on fighting with broad width, HTTP 1.1 specification, browser compatibility.

, , Hide

Nov/08

11

My comment on JavaFX

10 years before, Sun was too early to press RIA with Applet.
10 years after, Sun was too late to press RIA with JavaFX.

I don’t think I’ll use JavaFX. And I don’t think it will not be a success RIA.
But I think that Sun can try. JavaFX will benefit feature improvement on Swing/JMF.

JavaFX will be useful, IF it is the widely used in Netbeans it self.
They will find what’s the problem with it and fix it.

We will have a standard of describe the GUI in Java (even if another JSR to replace the JavaFX later).

JavaFX is “programming” the GUI. but not simply describe it statistically.

Personally, I prefer something like XUL even XAML over JavaFX.
I don’t see how JavaFX can abstract the UI to “any implementation”.

There is an implementation that can almost render XAML in Swing and SWT already.


Please correct me if I wrong.
Is JavaFX Script more like “the ActionScript in Flash”, but it isJava rather then ECMAScript ?

, , Hide

Oct/08

30

Effective Java – 2nd Edition

Effective Java的圖像
Effective Java – 2nd Edition

很久以前好像看過一次 1st edition。上上周0從 HKPL 借來,放了一個多星期沒有碰,這兩天有空就很快的把這本書看完了(Because I have to return it this weekend)。其實內容很多都是我很早就知道的東西,所以沒仔細看,把大多細字都跳過,只讀 subject, bold statement 和 summery 其實已經很足夠。(不過應該只限本來就很熟的人才可以這樣做)

始終這本書都比較中階入門級,沒有很廣泛很深入的去說明其他不同的場合的應對方式。

……..不知有沒有一本相對的書是說 C#? Effective .NET?

, , Hide

Older posts >>

Theme Design by devolux.org