Thread: C#/vb/java

  1. #16
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Quote Originally Posted by sean_mackrory
    Don't take anything Kleid-0 says too seriously.
    but his avatar is funny...

  2. #17
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    Quote Originally Posted by cgod
    There are rumours going around that C# is faster at running Direct X apps than C++ is this true will C# take over C++ for game development?
    Hm...many people don't trust to .NET Framework, neither do I. I just think it's waste of space for installing runtime libraries...

    But Microsoft made another mistake in C sharp popularity: it can't be completely ported on Linux, MacOS, etc. And 'cause world is "switching" to open-source, the programming language, made for only one OS won't get far.
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  3. #18
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    it can't be completely ported on Linux, MacOS, etc. ... made for only one OS
    How do you figure? Microsoft itself is involved in a project to port .NET to BSD systems, and Mono's getting pretty good. The only thing that can't be ported is Windows.Forms. The whole idea behind this project was a common run-time-compilation language for many systems.

  4. #19
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    >>Hm...many people don't trust to .NET Framework, neither do I. I just think it's waste of space for installing runtime libraries...<<

    how about some evidence for your claim? Did you install the SDK package for Java - well, there you go.

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  5. #20
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    Quote Originally Posted by Sake
    >Java, you'll have more self-esteem that way.
    How can learning Java give you more self-esteem?
    Ok my first real language was VB.NET (QBasic doesn't count lol), I used to get discriminated, fellow programmers were racist against me! "Hey it's that VB.NETer let's beat him up!". Then when I switched to C# to build my confidence, I could see my friend laughing at me because he's sssoooo cool with C++ (since it's harder and all). With C# you have the great VS.NET to make it nice and fun, but even when I did something cool, it wasn't C++ :(, it wasn't difficult.

    So the reason I say more self-esteem is because when I learned Java, I could say to his face: "I know Java, and you don't, and yeah :(", and it would hurt because it's the new standard! I'm a bad person :(

  6. #21
    Registered User Sake's Avatar
    Join Date
    Jan 2005
    Posts
    89
    Quote Originally Posted by Kleid-0
    Ok my first real language was VB.NET (QBasic doesn't count lol), I used to get discriminated, fellow programmers were racist against me! "Hey it's that VB.NETer let's beat him up!". Then when I switched to C# to build my confidence, I could see my friend laughing at me because he's sssoooo cool with C++ (since it's harder and all). With C# you have the great VS.NET to make it nice and fun, but even when I did something cool, it wasn't C++ , it wasn't difficult.

    So the reason I say more self-esteem is because when I learned Java, I could say to his face: "I know Java, and you don't, and yeah ", and it would hurt because it's the new standard! I'm a bad person
    Thank you for the explanation, I understand your reasoning now.
    Kampai!

  7. #22
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    Quote Originally Posted by axon
    >>Hm...many people don't trust to .NET Framework, neither do I. I just think it's waste of space for installing runtime libraries...<<

    how about some evidence for your claim? Did you install the SDK package for Java - well, there you go.
    hm...no I didn't....
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  8. #23
    Banned
    Join Date
    Oct 2004
    Posts
    250
    Ive decided to learn C#, VB doesnt seem worth learning because Microsoft seems to be pushing it as a hobby language. Im also looking for some good C# books has anyone know a couple they would recomend?

  9. #24
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    No cgod go Java, because....aahh I'm too lazy to explain, but the book is called: Head First Java by K&B. You'll LOVE this book, you'll want to ride your bike to a park everyday just to enjoy the reading material. After reading that book, you'll be able to learn C# at a much much better pace. You've gotta trust me, Head First Java by K&B, AAHHH!!!!

  10. #25
    Banned
    Join Date
    Oct 2004
    Posts
    250
    C# looks eays allready its like learning C when you know C++ just a couple of changes in the syntax

  11. #26
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    The syntax of C#, and Java are almost identical, compare these hello world's:
    Code:
    // Java
    public class myFileName
    {
       public static void main(String[] args)
       {
          System.out.println("Hello world from Java");
       }
    }
    
    // C#
    using System;
    
    public class Anything
    {
       public static void Main()
       {
          System.Console.Iforgot("Hello world from C#");
       }
    }
    
    // C++
    #include <iostream>
    
    int main( )
    {
       cout << "Hello world from C++"
    }

  12. #27
    Banned
    Join Date
    Oct 2004
    Posts
    250
    JAVA doesnt have header files either?

  13. #28
    Banned
    Join Date
    Oct 2004
    Posts
    250
    Just compiled my first C# program
    Code:
    using System;
    
    public class TheClass
    {
    	static void Main()
    	{
    		string message;
    		Console.WriteLine("Enter buffer");
    		message = Console.ReadLine();
    		Console.WriteLine("Buffer is ");
    		Console.WriteLine(message);
    	}
    }
    not much lol but it works...

  14. #29
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    Nope, Java uses import just like C# uses using. Including files is not what they do because they both use their own virtual machine.

    C# - .NET Framework
    Java - The Java Virtual Machine

    Example, let's say I wanted to output something on the console, here are two ways I could do that in Java:
    Code:
    import System.out;
    
    println("Hello World");
    Is the same as..
    Code:
    System.out.println("Hello World");
    The only reason to use import in Java or using in C# is so that you don't have to type so much.
    Last edited by Kleid-0; 01-28-2005 at 08:41 PM.

  15. #30
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    Quote Originally Posted by cgod
    Just compiled my first C# program
    Code:
    using System;
    
    public class TheClass
    {
        static void Main()
        {
            string message;
            Console.WriteLine("Enter buffer");
            message = Console.ReadLine();
            Console.WriteLine("Buffer is ");
            Console.WriteLine(message);
        }
    }
    not much lol but it works...
    ^^^^
    That is beautiful!! Maybe you should stay with C# if you really like it. Try your first Java program!!

    First download the Java SDK:
    http://java.sun.com/j2se/1.5.0/download.jsp

    Click on Download JDK, & download the offline Windows version. Next open your command prompt (Start-->All Programs-->Accessories-->Command) or you can HOLD Windows Key and hit the R button. Next type in "cmd.exe" to open the command prompt quickly.

    On the command prompt (after installing the JDK of course) type javac, make sure that is working. Next type in java. If you get "command not there" message, you'll have to add the Java SDK bin folder to your PATH environmental variable on Windows.

    Now before I go any further, are you going ok with this so far?

Popular pages Recent additions subscribe to a feed