Java or J#

Blue Jack

OSNN Addict
Joined
21 Jan 2004
Messages
103
I took a java class years ago, and I stumbled on my old book today when I was cleaning out the basement. I started thumbing through it and though it would be fun to relearn some aspects of java.

Since the course I have really enjoyed VB.Net and ASP.net. So I was thinking about forgoing the java and jumping right into J#. But to be honest, I don't really know the difference between the two, other than one depends upon the net framework.

For those of you with expirence with both, or either, which would you choose to play with (for fun)? I don't mind at all using a text editor to learn the code, I've fallen in love with textpad, but the j# does offer a nice editor.

I'm bored and I need a summer hobby. I thought about C# once again, but then I remembered the pain of playing with C++ and quickly let go of that thought. Any suggestions?
 
C# is fun! I've never used J# myself, but C# actually does away with most of the "painful" aspects of C++. You don't have to mess around with pointers, and since you're writing managed code, you don't have to worry too much about memory management either. As in the case of Java, the CLR's garbage collector does all the dirty work. ;)

If you're looking into taking up a language seriously, I'd suggest going with something mainstream like C++, Java or C#...perhaps even VB.NET. I personally don't know of anyone who uses J#, to be honest.
 
I dunno, our new customer control panel is being written in C#. Mainly for its RAD element over VC++. If MS could just add RAD to VC++ then it'd be awesome :D
 
But they are basically non-existant in properly written C++ code.
 
Thanks for the info. Honestly, I don't know anyone either that uses j#. Maybe I will give c# another try. I was trying to use it as my backend for my asp pages, but VB.Net was just so much easier.

I'm not really planning anything serious, just learn as I go and have fun. VB.NET was a lot of fun, but I ran out of ideas. Well, I had *some* ideas, but all the source code and examples for the ideas I had used C#.

I have a feeling its all going to boil down to what book I can find that looks like the most fun. Just for the love of god: no more hello worlds!!
 
PHP:
Code:
<?php

echo "Hello world!";

?>

C++:
Code:
#include <iostream>

int main() {
        std::cout << "Hello World";
}

Perl:
Code:
#!/usr/local/bin/perl

print "Hello World!";

Java:
Code:
class Main {
        public static void main(String [] Args) {
                System.out.println("Hello World!");
        }
}

Python:
Code:
#!/usr/local/bin/python

print "Hello World!"

C:
Code:
#include <stdio.h>

int main() {
        printf("Hello World!");
}

Brain****:
Code:
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.@

HTML:
Code:
<html><head></head><body>Hello World!</body></html>

Basic:
Code:
10 print "Hello World!"

SH/Bash/ksh/...
Code:
#!/bin/sh
echo "Hello World!"

Ada:
Code:
with Ada.Text_IO; use Ada.Text_IO;

procedure Hello is
begin
   Put_Line("Hello World");
end Hello;

Ruby:
Code:
#!/usr/bin/ruby
#
puts "Hello world!"

Hello world's for all the programming languages i know.
 
That's cheating NetRyder, i knew them off the top of my head.
 
I didn't claim to know them all. :D
I can actually only do these: C, C++, C#, Java, BASIC, Pascal, Scheme, LISP, Prolog, ML, Objective Caml, Perl, Python, sh/Bash/ksh, HTML, PHP, JSP, ASP.NET, JavaScript, Maple, and MATLAB.
 
X-Istence said:
That's cheating NetRyder, i knew them off the top of my head.
your Java should be 'final String[] Args' and if your C/C++ main functions have an int return type surely they should return an int ;) :p
 
[question]
how did ppl get assembly language to work, did they have someone coding it in binary first?
 
FishBoy said:
[question]
how did ppl get assembly language to work, did they have someone coding it in binary first?
You mean like chicken or the egg? ;) How did they compile the first compiler?

Good question. It probably "evolved". ;)
 
Geffy said:
your Java should be 'final String[] Args' and if your C/C++ main functions have an int return type surely they should return an int ;) :p

Final is not needed, but yes, it could be added. And no, my C/C++ programs don't need a return 0; statement, it is added by the compiler. Try it.

Code:
bash-2.05b$ cat file.cc
#include <iostream>

int main() {
        std::cout << "Hello World!";
}
bash-2.05b$ ./a.out
Hello World!bash-2.05b$

Code:
bash-2.05b$ gcc file.c
bash-2.05b$ cat file.c
#include <stdio.h>

int main() {
        printf("Hello World!");
}
bash-2.05b$ ./a.out
Hello World!bash-2.05b$

:p. Gotta learn how to write fast and easy code :p. It's in the standard that return 0; should be assumed in main, unless a return statement is found.

It can be found exactly in the following standard: 14882:1998, 3.6.1.5

"...If control reaches the end of main without encountering a return statement, the effect is that of executing:" return 0;

(Thanks to Cynic on Efnet.)
 
Last edited:
FishBoy said:
[question]
how did ppl get assembly language to work, did they have someone coding it in binary first?
Originally it was all in binary using series of switches to program it, then assembler was created which mapped common-ish english words to the binary equivalents, the assembler begat the C language and eventually the C language was able to have its compiler written in C but was first compiled using an assembler program. The history of Programming and C is all quite interesting really


@X-Istence: Cool I didnt know that about C(++)
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back