Blog Home  Home Feed your aggregator (RSS 2.0)  
Java lagging behind .NET - Manuel Abadia's ASP.NET stuff
# Wednesday, March 7, 2007

Recently I was pointed out by a friend that a new version of the Hibernate Reference book was released. I have already read the old version of this book, called "hibernate in action" but as it was half the size of the new book, I decided to read this one too. Even if the content is heavily based on the previous version, a lot of parts have been rewritten and it is a lot more clear now (or maybe it is just that I'm a better hibernate user...). Also, I found out that someone is finally doing a book about NHibernate:

I didn't want to talk about the book in this post. What really caught my attention was the improvements in the Java 1.5 language. I haven't coded anything in Java for quite a few years (the last version I used was 1.3). In that time the Java language didn't have any important changes but the version 1.5 has added a lot of useful things to the language: Generics, Metadata, Boxing/Unboxing, Enumerations and variable number of arguments.

Does some of this sound familiar to you? Java implemented Generics a bit before .NET Framework 2.0 but all the other stuff was already present in the first version of the .NET Framework. Also, something that I can't live without now is Properties and Java doesn't has them. Simulating properties using a get_/set_ methods is nothing more than a dirty hack (you can also simulate OOP in assembler...)

I have been an early .NET adopter since the beginning of the .NET Framework and a lot of my friends were jumping on me about that, because in their opinion Java was a lot better, the .NET Framework was crap, etc. Now they have to shut up ;-)

The local companies here are also using more .NET than Java and I have read some studies that said that both technologies are similar but usually is less expensive to develop with .NET (unfortunately I haven't found the links). Also, if you consider the new features added since the release of .NET Framework v2.0 (WPF, WF, WCF, ASP.NET AJAX Extensions, LINQ, DLINQ...) clearly Java is lagging behind .NET.

Wednesday, March 7, 2007 1:04:30 AM (Romance Standard Time, UTC+01:00)  #    Comments [4]   General | Java | Microsoft .NET Framework  | 
Friday, March 16, 2007 3:12:09 PM (Romance Standard Time, UTC+01:00)
"Simulating properties using a get_/set_ methods is nothing more than a dirty hack"

Did you know that properties in .net are converted to get_property() and set_propert() methods? So actually, properties are a hack around normal getters and setters, but I prefer to call it syntactic sugar.
Friday, March 16, 2007 3:32:16 PM (Romance Standard Time, UTC+01:00)

of course I know. IMHO in .NET a property is not a hack, it is an abstraction. You can also simulate polymorphism in assembler using pointers but assembler is by no means an object oriented paradigm.

For me syntactic sugar are automatic properties introduced in c# 3.0. Properties in c# 1.0 and c# 2.0 are not syntactic sugar, they are a concept that does not have counterpart in the Java language although it is simulated using the get_/set_ methods.
Friday, June 29, 2007 2:40:15 AM (Romance Daylight Time, UTC+02:00)
We chose to build our (pretty cool) P2P collaboration application entirely in Java; one of the things we were worried about initially was whether Java was going to be a "build once, debug everywhere" experience as some skeptics had warned us about. Here's what we found:
Tuesday, February 17, 2009 5:13:51 AM (Romance Standard Time, UTC+01:00)
JavaEE and XML,Eclipse,Linux is a the ultimate technology for Enterprise Applications its a standard contributed by big companies and the community. It has all the features a big Business needs easily maintainable thru configurations, mostly xml. It has robust transaction management, Persistence technology like jpa nowadays,Very good Security Technology. Java has AOP (.NET does not have this important feature).

Java technologies are less redundant and overlapping because of the JCP (Java Community Pricess).
I tried using .net its so crappy setting up verions and apis are changing alot you dont have the chance to upgrade if you code from .net 1.0.

With java all or most apis are not deleted in the package implementations of libraries are constantly enhanced by many key players liek Apache Software Foundation - Commons and APR technologies and many other Java contributers.

Infinite number of Java Heads are Better than One.
All comments require the approval of the site owner before being displayed.
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

[Captcha]Enter the code shown (prevents robots):

Live Comment Preview
Copyright © 2020 Manuel Abadia. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.