|
Dear
Software Developers,
This CPTTM Software
Developer newsletter is to bring
useful news to
you, software developers in Macau, for references without obligations,
so that you can do your jobs easier and better! Hope you like it. if
you'd like to unsubscribe or recommend your friends to
subscribe, just email me at kent@cpttm.org.mo.
Old
issues are available here.
Topics
in this issue:
Google
Web Toolkit: Superb way to create interactive web GUI
Believe it or not: I
downloaded Google
Web Toolkit (GWT), read its doc and used it to create a
web page containing input boxes, buttons, tabs and dialogs (see the
screen shot) all in one hour!
Why is it so easy? The GUI components are
constructed entirely in Java code. For example, to create the Add
button, the code is:
Button add = new Button("Add"); add.addClickListener(new ClickListener() { public void onClick(Widget sender) { int n1 = ...; int n2 = ...; int sum = n1+n2; ... } }
As GWT provides components for tab panels,
dialogs, menus and etc, it is very easy to build up such a web page. In
this particular case, the entire program is only 35 lines!
Another interesting feature is that the Java code
above (including the code to add the two numbers) is actually compiled
into Javascript to be executed in the browser. It means during
execution it is running on the client and thus can deliver a very high
interactivity. For example, adding the two numbers doesn't involve any
AJAX calls or network overhead. This is very much like RIA, but you
don't have to write Javascript as in Silverlight or
Flex. To allow you to debug the code easily, it can also be run in a
special mode called "hosted mode" so that the Java code is executed
directly and that you can trace it in the IDE.
What if you need to, say, save some data into the
database on the server? In that case you can easily invoke Java methods
on the server.
Given these powerful features, I'd say GWT is the
best option to develop highly interactive web pages. For web
applications that involve different pages working together, Wicket is
probably the best bet. To learn more about GWT, click here.
Introduction
to LINQ
We're glad to have our instructor, Mr.
Francisco Leong, to contribute a tutorial on LINQ, which is like
allowing you to write SQL in C# or VB code directly. This has a lot of
implications: static type checking, auto-completion, the
ability to call C# or VB functions in the query and
refactoring in the query. Now, follow
Francisco to go through a simple example to get started.
Eclipse
plugin for the Spring framework and JBoss
If you use the Spring framework, you may check out
the spring IDE plugin.
It provides auto-completion and validation for bean definitions.
If you use JBoss (Hibernate, JSF, Facelets, EJB3, etc.),
check out the JBoss
IDE plugin. Both are very cool.
Get
MS development tools for free (if you're a college student)
This includes Windows 2003 server, Visual Studio
2008 Professional and Expression Studio (a Photoshop competitor) . For
more info, click here.
New
features of ASP.NET 3.5
ASP.NET
3.5 was released in Nov 2007. Now it provides built-in
support for AJAX and LINQ and comes with even more components such as a
data pager. If you're stilling using the old ASP, you should seriously
consider ASP.NET. It will give you a lot of useful components, visual
GUI editing and it is much easier to maintain states with the pages.
To learn ASP.NET, you may attend our official
Microsoft ASP.NET course: Developing
Microsoft ASP.NET Web Applications Using Visual Studio.NET (2310).
Upcoming courses
for software developers
In addition, there are interesting courses that
make your kids love IT:
Feedbacks
Any
questions, ideas or experiences to share? Contact me at
28781313 or kent@cpttm.org.mo. We also
have two other newsletters: CIO newsletter
and Network
administrator newsletter,
your friends may like to
subscribe.
Until
next time,
Kent
Tong
|