Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

What do Java programmers feel is missing from C#?
I may be opening a can of worms and don't want to start a religious war,
but...

What features of Java do Java programmers miss when working in C#?

Other than, of course, great portability.  C# has more limited
cross-platform portability (Mono).

I'm thinking more about data structures and ways to express algorithms.



Report this thread to moderator Post Follow-up to this message
Old Post
mc
03-08-08 11:58 PM


Re: What do Java programmers feel is missing from C#?
mc wrote:
> I may be opening a can of worms and don't want to start a religious war,
> but...
>
> What features of Java do Java programmers miss when working in C#?
>
> Other than, of course, great portability.  C# has more limited
> cross-platform portability (Mono).
>
> I'm thinking more about data structures and ways to express algorithms.

I sort of liked fall-thru in switch statements, but I'm the first to
admit that it can lead to unreadable code.

The Java Language Reference mentions something called a Duff's Device,
which I never really understood and which C# would probably frown on
anyway.  :)

dleifker


Report this thread to moderator Post Follow-up to this message
Old Post
Dan Leifker
03-08-08 11:58 PM


Re: What do Java programmers feel is missing from C#?
"Dan Leifker" <dleifker@leifker.com> wrote in message
 news:KIWdnbA267Pogk7anZ2dnUVZ_iydnZ2d@co
mcast.com...
> mc wrote: 
>
> I sort of liked fall-thru in switch statements, but I'm the first to admit
> that it can lead to unreadable code.

Actually, I think the switch statement is the most awkward thing in C#,
largely because it isn't the Fortran-like thing from C that it looks like.
I wish C# had adopted the Pascal case statement.



Report this thread to moderator Post Follow-up to this message
Old Post
mc
03-09-08 04:03 AM


Re: What do Java programmers feel is missing from C#?
mc wrote:
> I may be opening a can of worms and don't want to start a religious war,
> but...
>
> What features of Java do Java programmers miss when working in C#?
>
> Other than, of course, great portability.  C# has more limited
> cross-platform portability (Mono).
>
> I'm thinking more about data structures and ways to express algorithms.
>
I am just esthetically prefer Java. I think Java is simpler language.
There is no properties, no defined operators, no delegates - for me it
makes everything more clear. I know only one language that is comparable
in transparency - C.
I also liked Java collections Api and general API more - just preference.
Java has checked exceptions and this makes dealing with exceptions more
easy - you mostly know which exceptions you can expect.
JavaDoc - is more clear that C# XML Docs, and in my opinion leads to
better quality API descriptions.
I prefer Java Strict package / folder structure to unclear C# conventions.

Report this thread to moderator Post Follow-up to this message
Old Post
Mishagam
03-09-08 04:03 AM


Re: What do Java programmers feel is missing from C#?
mc wrote:
> Actually, I think the switch statement is the most awkward thing in C#,
> largely because it isn't the Fortran-like thing from C that it looks like.
> I wish C# had adopted the Pascal case statement.

But I seem to recall (good grief, I learned Pascal in 1981) that the
Pascal case statement had no default/otherwise/else, right?  Well, I
don't think it did on that creaking Univac we used, but I just Googled
it and and I guess other flavors of Pascal did support it.

See also Brian Kernighan's famous paper about Pascal at:

http://www.cs.virginia.edu/~evans/c...-on-pascal.html

One bit of trivia about the Java default (I think) is that it can occur
anywhere in the case sequence, even at the top.

cheers
dleifker

Report this thread to moderator Post Follow-up to this message
Old Post
Dan Leifker
03-09-08 04:03 AM


Re: What do Java programmers feel is missing from C#?
>> I wish C# had adopted the Pascal case statement.
>
> But I seem to recall (good grief, I learned Pascal in 1981) that the
> Pascal case statement had no default/otherwise/else, right?  Well, I don't
> think it did on that creaking Univac we used, but I just Googled it and
> and I guess other flavors of Pascal did support it.

Yes... when I say Pascal I really mean Turbo Pascal and Delphi.  Early
Pascal was impoverished in some ways, as Kernighan pointed out in the paper
you cite.

> http://www.cs.virginia.edu/~evans/c...-on-pascal.html




Report this thread to moderator Post Follow-up to this message
Old Post
mc
03-09-08 09:20 AM


Re: What do Java programmers feel is missing from C#?
Well now that just has to be the IDE...  Visual Studio is just so 1990's



"mc" <look@www.ai.uga.edu.for.address> wrote in message
news:4fyAj.4184$by3.1171@bignews5.bellsouth.net...
>I may be opening a can of worms and don't want to start a religious war,
>but...
>
> What features of Java do Java programmers miss when working in C#?
>
> Other than, of course, great portability.  C# has more limited
> cross-platform portability (Mono).
>
> I'm thinking more about data structures and ways to express algorithms.
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Nobody
03-10-08 03:02 AM


Re: What do Java programmers feel is missing from C#?
"Nobody" <nobody@shaw.ca> wrote in message
news:lyYAj.66457$pM4.24579@pd7urf1no...
> Well now that just has to be the IDE...  Visual Studio is just so 1990's

What kind of IDE do you prefer?


>
>
>
> "mc" <look@www.ai.uga.edu.for.address> wrote in message
> news:4fyAj.4184$by3.1171@bignews5.bellsouth.net... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
mc
03-10-08 09:02 AM


Re: What do Java programmers feel is missing from C#?
On Sat, 8 Mar 2008 10:26:56 -0500, "mc"
<look@www.ai.uga.edu.for.address> wrote:

>I may be opening a can of worms and don't want to start a religious war,
>but...
>
>What features of Java do Java programmers miss when working in C#?
>

I miss the slow performance of Java and overall lack of productivity
and the vast amount of crappy offshored leftover code I used to work
on.

I get so much more done in C# it leaves me longing for that crappy
Java environment I left behind.

Report this thread to moderator Post Follow-up to this message
Old Post
Harry Walters
03-11-08 03:02 AM


Re: What do Java programmers feel is missing from C#?
Harry Walters wrote:
> I miss the slow performance of Java and overall lack of productivity
> and the vast amount of crappy offshored leftover code I used to work
> on.
>
> I get so much more done in C# it leaves me longing for that crappy
> Java environment I left behind.
I did a quick Google search for "java c# benchmark" (try it yourself)
and it seems that it's only that offshored code that is slow and crappy
and not Java itself, because all benchmarks I could find concludes that
Java is way faster than C#.

Report this thread to moderator Post Follow-up to this message
Old Post
Robert Larsen
03-11-08 09:00 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Java archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:03 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.