C or Java ? Pleas help meee ...

This is a discussion on C or Java ? Pleas help meee ... within the C Programming forums, part of the General Programming Boards category; Hello everybody, I would like to learn how to program a computer and the aim is: I want in the ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    25

    Red face C or Java ? Pleas help meee ...

    Hello everybody,
    I would like to learn how to program a computer and the aim is:
    I want in the future to develop a software which can process data and store it into database and also making calculations and statistics with this data like the personal informations, log in and log out information, ip and computer name of the computer manuplated the database, numbers, calculations, images, ...

    I want just to use all free software (programming language, compiler, IDE, SDK, DBMS, OS, analyse diagrams, ..) everything free except hardware :-).

    Which language should I begin with and which language should I use after having the basics.

    Do I need other skills like algorithms, maths, networking, logic, ... ? pleas explain me and thank you so much in advance
    Last edited by bchaib; 12-16-2007 at 07:28 AM.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    5
    im pretty bad at maths, but i love programming, i suppose its a handy thing to have but programming is mostly logic. you'll pick up algorithms as you learn, i program in c, hence why im posting here lol... ive never used java.

  3. #3
    Registered User t3chn0n3rd's Avatar
    Join Date
    Dec 2007
    Location
    kansas city
    Posts
    25

    I like C programming language

    Code:
    /*  A simple C program*/
    include<stdio.h>
    int main()
    {
    printf("Hello to C forum")
    }

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Hello world, compliant with both C89 and C99 would be as follows:

    Code:
    #include <stdio.h>
    
    int main(void)
    {
    	printf("Hello, world!\n");
    	return 0;
    }
    In Java it would be as follows:

    Code:
    public class HelloWorld
    {
    	public static void main(String a_szArgs[])
    	{
    		System.out.println("Hello, world!");
    	}
    }
    Both languages have their purposes. Asking on a C forum is going to get you answers to learn C, unless they don't want you in the ranks of C programmers.

    And yes, you need some skill in math. Basic high school algebra is generally sufficient to get started and do quite a few things while learning the language.

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I'd go with Java, it has more standard library support for the things you're trying to do, and is probably easier to use since you don't have to worry about memory management.

    (Not that C doesn't have libraries for this stuff, but you'll have to hunt them down and figure out how to use them, and there are really no standards for design or coding style so each one can be different. This is one thing that Java really got right.)

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,668
    C vs Java isn't that fair a comparison, is it? Maybe it would be fairer to compare C++ vs Java. If it's C vs Java, Java is probably better.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Quote Originally Posted by Elysia View Post
    C vs Java isn't that fair a comparison, is it? Maybe it would be fairer to compare C++ vs Java. If it's C vs Java, Java is probably better.
    Blanket statements from diehard fans of one particular language usually aren't very useful.

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,668
    Perspective said it all, no?

    Quote Originally Posted by Perspective View Post
    I'd go with Java, it has more standard library support for the things you're trying to do, and is probably easier to use since you don't have to worry about memory management.

    (Not that C doesn't have libraries for this stuff, but you'll have to hunt them down and figure out how to use them, and there are really no standards for design or coding style so each one can be different. This is one thing that Java really got right.)
    C lacks good libraries for this a lot of things and is harder to boot. I think anyway.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    Quote Originally Posted by Elysia View Post
    and is harder to boot. I think anyway.
    You do not need to boot a C. Enough if you know how to boot your computer...
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,668
    Never heard of the expression "harder to boot"?
    Means that something is also harder.
    "and is harder to boot" --> "and is also harder."
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Asking this on a C board is nutso. Use whatever language is the best tool for the job. If you cannot figure that out on your own then perhaps neither language is appropriate for you.

    Forget your project and just learn to program in a language. Then you can start determining how you want to utilize the language for your project. You are kind of trying to run before you can even walk.

  12. #12
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Quote Originally Posted by Elysia View Post
    C lacks good libraries for this a lot of things and is harder to boot. I think anyway.
    For everything he mentioned, I imagine there are C libraries available. The choice of language is more than just standard libraries.

  13. #13
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,668
    Unless we go by the "use the right tool for the job" analogy, in which case Java might be better.
    Still, one could just learn both of them, since they both have advantages/disadvantages and get the best of both worlds. Especially in case you'd want to do something else than web a little later on or once in a while.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #14
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Given the choice between C & Java, I'd have to go with Java, even though it is the ugly step-child of C... Also, from what I see on Monster.ca and other job sites, I'd say you'd be a lot more employable learning Java.

  15. #15
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    I would rather suggest its upto OP decision on which ever langauge he is comfortable . He should go along with that.

    @OP: Question your self which language i am more comfortable with? If you can get the asnwer for that u wouldn't be think so much. By the time you get the right suggestion from other people, u might have finished your software developement.

    ssharish

Page 1 of 5 12345 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C#, Java, C++
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-05-2004, 02:06 PM
  2. The Java language is being expanded
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 06-11-2004, 09:07 PM
  3. Java woes
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 07-06-2003, 12:37 AM
  4. How to use Java with C++
    By Arrow Mk 84 in forum C++ Programming
    Replies: 2
    Last Post: 02-27-2003, 03:12 PM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 02:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21