Jump to content

Featured Replies

Posted
I'm looking for a language I can make some real-world applications with...I already know some Java and some C#, but I can't decide which to delve into. Any opinions?
I would go with C# for a multitude of reasons. It is generally significantly faster (and less bloated) than Java and the language is designed much better (unless, of course, you enjoy writing 9 different versions of the same function because Java's generics suck ass). You can also download the express edition of Visual C# from microsoft (http://msdn.microsoft.com/vstudio/express/visualcsharp/). It has a built in window/form designer, which most free Java IDEs don't even have (Eclipse *might*, I'm not sure). Unless you absolutely need platform independence (which you probably don't) I would go with C#

There is no real point in picking whichever of the languages is "faster" (each is faster at respective tasks) as neither of them are compiled to object code anyway.

 

So simply from the point of strong programming; there are lots and lots of free and open source libraries available for the java platform (So for a given task, a large amount of the code has probably already been done for you) . It puts much more high density object orientated design patterns to use than c# (.net) making complex applications easier to develop, at the cost of making very simple programs slightly more complicated.

 

As for blackllotus, I have never had any problems with the generic functions in java, perhaps you should read the documenation more thoroughly.

 

In conclusion, try them both out and see which you prefer.

 

:wow: :wow: :wow: :wow: :wow:

  greeneyes said:

There is no real point in picking whichever of the languages is "faster" (each is faster at respective tasks) as neither of them are compiled to object code anyway.

 

Java code at best will be as fast as C# because C# does not have to be totally platform independent. C# can use the windows api (albeit indirectly through the .NET interface), so things like the windowing framework run many times faster than java's swing or awt.

 

  greeneyes said:

As for blackllotus, I have never had any problems with the generic functions in java, perhaps you should read the documenation more thoroughly.

 

Lets look at the javadoc for the Arrays header, I find...

 

static int binarySearch(byte[] a, byte key)

static int binarySearch(char[] a, char key)

static int binarySearch(double[] a, double key)

static int binarySearch(float[] a, float key)

static int binarySearch(int[] a, int key)

static int binarySearch(long[] a, long key)

static int binarySearch(Object[] a, Object key)

static int binarySearch(short[] a, short key)

static <T> int

binarySearch(T[] a, T key, Comparator<? super T> c)

 

So much for so-called "genericity". Even though Java 5 has autoboxing, the previous versions don't so any application that has been in development for a reasonable length of time won't be able to take advantage of this. If you truely want your java class to be "reusable" you will have to supply like ten different versions of the same "generic" method so older apps can use it. The Java language itself is incomplete and the libraries, although extensive, are massively bloated in their attempt to be "platform independent" (for example, Swing).

  blackllotus said:
If you truely want your java class to be "reusable" you will have to supply like ten different versions of the same "generic" method so older apps can use it. The Java language itself is incomplete and the libraries, although extensive, are massively bloated in their attempt to be "platform independent" (for example, Swing).

 

Older apps have already be written so why would they use a generic method that is being written in the present tense.

 

Swing is much more powerful than System.Windows.Forms (which are merely a wrapper around 7 year old windows controls). But yes it is slow to load.

  greeneyes said:
Older apps have already be written so why would they use a generic method that is being written in the present tense.

 

I'm talking about applications written by companies, which may need to be maintained for many years. A company isn't going to waste time porting a huge enterprise application (Java's primary market) to every new version of Java, however they may still want to maintain and update it.

Btw Kelba I guess what you can gather from this thread is that you should choose the language that you enjoy using most since there is no consensus as to which language is "better".
  Tokenwtf said:
vB is probably the best language out there.

 

Lol. VB 6 is good if you like write-once use-once software and enjoy static programming. VB.NET is good if you like using a poorly designed language over the same interface that you could use two better languages that actually have good design (namely C++ and C#). VB is not even fucking basic because it's a strongly typed language.

  blackllotus said:
Lol. VB 6 is good if you like write-once use-once software and enjoy static programming. VB.NET is good if you like using a poorly designed language over the same interface that you could use two better languages that actually have good design (namely C++ and C#). VB is not even fucking basic because it's a strongly typed language.

 

its doubtful that he was being serious. Having said that vb does have its merits.

Guest
This topic is now closed to further replies.