Language/IDE Comparisons, Part 1.

March 12th, 2006 § 0 comments

Every once in a while, I’ll post up some new headaches, awesome-ness, or just differences that have come up for me using Java(1.4.2)/Eclipse (3.1.2) and C#(1.0)/Visual Studio 2003. Here are some to start:

IDE Features:
-Eclipse’s refactoring and perspectives are really helping me fly through the code and find what I need to find.
-Visual Studio 2003’s (VS2003) CTRL+Tab is much easier than Eclipse’s CTRL+F6 to move around open files.
-Eclipse’s support for JUnit testing, CTRL+X or CTRL+D, then T.
-VS2003’s support: a separate application, blech.

Parenthesis and curly braces:
-Eclipse auto closes it for you, VS doesn’t.
-VS2003 auto indents after you close it, Eclipse doesn’t.

Text navigation; CTRL (+ C) left and right
-Eclipse selects by word-“humps” i.e. thisClass has 2 humps, oneTwoThree has 3, etc.
-VS selects by word alone.

Langauage Features:
Verbatim string literals:
-They are a billion times prettier regular string literals. C# has them, Java doesn’t.

CSharpSqlStatement = @“SELECT *
FROM table1 t1
WHERE t1.column1 = ‘seacrhText’
ORDER BY t1.column1″;

javaSqlStatement = “SELECT * “
+ ” FROM table1 t1 “
+ ” WHERE t1.column1 = ‘seacrhText’ “
+ ” ORDER BY t1.column1″;

Try copy and pasting a statement from the SQL editor over to your code, then formatting it so Java can understand it. With C#, Copy and Paste inside parenthesis and let it know its a string literal with a ‘@‘.

Tagged , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve this: Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What's this?

You are currently reading Language/IDE Comparisons, Part 1. at thomas nguyen.