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. 20 2798
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
"Dan Leifker" <dl******@leifk er.comwrote in message
news:KI******** *************** *******@comcast .com...
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.
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.
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.
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/cs...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
>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/cs...on-pascal.html
Well now that just has to be the IDE... Visual Studio is just so 1990's
"mc" <lo**@www.ai.ug a.edu.for.addre sswrote in message
news:4f******** *********@bigne ws5.bellsouth.n et...
>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.
"Nobody" <no****@shaw.ca wrote in message
news:lyYAj.6645 7$pM4.24579@pd7 urf1no...
Well now that just has to be the IDE... Visual Studio is just so 1990's
What kind of IDE do you prefer?
>
"mc" <lo**@www.ai.ug a.edu.for.addre sswrote in message
news:4f******** *********@bigne ws5.bellsouth.n et...
>>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.
On Sat, 8 Mar 2008 10:26:56 -0500, "mc"
<lo**@www.ai.ug a.edu.for.addre sswrote:
>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.
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#. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: darwinist |
last post by:
What PHP Represents
There is no shortage of complaints one could make about php as a
language, and although the list does shrink with each release, some of
them are inherent to the origins and development process of this, the
most popular of the web-based, server-side, glue-languages.
That said, most descriptions of what is good about php, fail to do it
justice. Although they are generally enthusiastic and sometimes
fanatical, no...
|
by: David MacQuigg |
last post by:
I'm concerned that with all the focus on obj$func binding, &closures,
and other not-so-pretty details of Prothon, that we are missing what
is really good - the simplification of classes. There are a number of
aspects to this simplification, but for me the unification of methods
and functions is the biggest benefit.
All methods look like functions (which students already understand).
Prototypes (classes) look like modules. This will...
|
by: Maurice LING |
last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic
typing, is there any other real reasons that Python is slower than Java?
maurice
|
by: Ray |
last post by:
Hello there,
I've been programming in Java for about 8 years now, but lately I've
been hearing a lot about Python and I'm really interested in learning
more about it. I've read the tutorial, and some books (core python
programming is one), but there's one thing that's still missing: how to
use Python the "Python" way.
I found learning C# was a breeze for me because the language shares a
lot of concepts and notions with Java--I can...
|
by: N.Davis |
last post by:
I am very new to Python, but have done plenty of development in C++ and
Java.
One thing I find weird about python is the idea of a module. Why is this
needed when there are already the ideas of class, file, and package?
To my mind, although one CAN put many classes in a file, it is better to
put one class per file, for readability and maintainability.
One can then create packages and libraries, using groups of files, one
| |
by: redefined.horizons |
last post by:
I've traditionally been a Java developer, although I play around with
LISP. I recently migrated to Linux and I was exploring Mono as an
option for development on Linux. However, I've had some problems with
the maturity and support when working with Mono. So I was considering
Python as an alternative development language.
Is Python actively developed and supported on Linux? Would it be a
viable option for cross-platform application...
|
by: wellstone9912 |
last post by:
Java programmers seem to always be whining about how confusing and
overly complex C++ appears to them. I would like to introduce an
explanation for this. Is it possible that Java programmers simply
aren't smart enough to understand C++?
This is not merely a whimsical hypothesis. Given my experience with
Java programmers --- the code they write and the conversations they
have --- Occam's Razor points to this explanation. For example,...
|
by: Xah Lee |
last post by:
in March, i posted a essay “What is Expressiveness in a Computer
Language”, archived at:
http://xahlee.org/perl-python/what_is_expresiveness.html
I was informed then that there is a academic paper written on this
subject.
On the Expressive Power of Programming Languages, by Matthias
Felleisen, 1990.
http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
|
by: himilecyclist |
last post by:
My State government organization has written a PHP/MySQL application
which has been in production for about 6 months and has been highly
successful.
We are now embarking on a similar database application, but one with
much higher security concerns (birth data). Prior to beginning the
project, we met with an oversight committee who strongly advised
against PHP and suggested Java. Their concern was that PHP could not
be trusted to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |