"SUN, Beach, Belle, I'm coming", Wonderful Trip~~~
7.31, the last weekend, I go to FeiCui Island resort with my friends.
We are all the guys born in the 70's, and formed a 70's@Weekend club together. We always play football, eat, outgoing in the weekend.
This Saturday, we got up at 3:00 and set out at 5:00. We arrived at ChangLi at 8:00. After buying some water, beer, banger from the supermarket near the railway station, we take a taxi to FeiCui Island. When we arrived, we were deeply entranced with the lookout of the beach. We played football in the beach, bask in the warm sunshine, swim in the sea. During the night, we sleep in the tent, chat with others, and enjoy the Moon in ShiWu:-). The second moring, we got up at 4:30 in order to see the sunrise, but due to the cloudy sky, we miss the sunrise spectacle.
By the way, One of my friend WUBAI really long for the trip, he is a fun of football and wanna to show us his skill in the beach. But his company ask him to work overtime in Sunday, so he didn't go with us, what a pity~. Here, I would like to reference one word of him to be the title "SUN, Beach, Belle, I'm coming:-)". Hope this would not be seen by his girlfriend :P.
( 2004年08月02日, 06:15:28 下午 GMT+08:00 ) Permalink 评论 [4]
Feeling about Java
Before joining Sun, I am the developer in windoze platform, and C++ is my favourite programming languages, I like it very much. I finished nearly all my project with it, even my graduate thesis. I implemented a simple cross-platform component model (LEO) in my gradudate thesis, and design a large project base on it. LEO is just like XPCOM of Mozilla, hehe, but a simple and light one I think.
After join Sun, I have the chance to use Java, a great programming language after a long time of "language drought". To be frank, I am not the fans of Java before, because I think it's a simple C++. I ever told my friends that maybe these guys can not fully understand and use C++ well, so they invent Java. But after read some books ("Thinking in Java" & "Effective Java") about Java and use it for about 2 months, I begin to realize what ridiculous I was.
Java's aim is to simply the programming work, is to help the programmer to develop more efficient(with J2SE1.5, you can understand Java Team's guys are really care about how to simply our developer's job). Most important, Java is the language of internet, sound good, right? C++ is more like the system programming language, it is a powerful and very expressive language. But it is also difficult and programmer-unfriendly. With it, you can and you must manage every thing(like "new" & "delete" issues).
To summarize Java's advantage I feel:
1) Cross-Platform: :-)It sure is the first reason;
2) GC: hehe, I never need to remember when and where to delete;
3) Single inherit and container: Even better with generic types in container; I am really a fan of C++'s Stand Templete Library, but it's more nature in Java because of it's single inherit(sure I admire A.Stepanov, he can implement this in C++, great guy~);
4) Interface: this is the true Component & binary-compatible languages;
5) Import instead of include: same reason, binary but not source code compatible; Even better with static import in tiger;
6) JavaDoc: I seldom comment before, but now often;
7) Many useful librarys: besides Java's own package and technology(such as Jave Web Start), JUnit, Ant are all great work I think, help me much;
8) Exception Handling: Every method must declare the exception and every caller must catch it, hehe, good error-handling approach;
9) Java & Pattern: The last one I want to imension is Java & Pattern, Java is so well implemented with well-known patterns, such as use observer pattern(Event Listener), decorator pattern(Reader). Also there's some bad-implemented, such as Stack:-), it should be composite but not inherit.
Today, one of my friends ask what I am doing in Sun, I tell him I am writting a desktop application in Java. He is really supprised with my answer, "what? Can java be used to write desktop application? I bet it must be slow...". En, Many friends of mine are using Java, but mainly J2EE. Every time talk about the desktop application, "slow" must be the comments. But I think, VM are more and more powerful, machines are faster, memory are larger, Java can also be used to write large desktop applications(dont't forget it can cross-platform, hehe). YongZhong office is a good example.
Mark two pretty interesting Java vs C++ performance benchmark:
http://www.kano.net/javabench/
http://developers.slashdot.org/developers/04/06/15/217239.shtml?tid=108&tid=126&tid=156
( 2004年08月02日, 09:03:48 上午 GMT+08:00 ) Permalink 评论 [20]

