C, C++, Java, Objective C? What should I learn?
From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.
| Announcements | Posted on | |
|---|---|---|
-
C, C++, Java, Objective C? What should I learn?
There's so much to choose. I want to go onto do Computer Science at uni after I finish my A2s next year. In uni it's most likely they'll specialise in java, so I don't see any point in learning that now.
But out of C, C++ and objective-C, which is the best to learn right now? (in my spare time). -
Re: C, C++, Java, Objective C? What should I learn?I'm curious; is Object C similar/closer to C# or C++?(Original post by estel)
That depends on what you want to do with it. iOS / OSX programming? Choose Obj-C.
Otherwise do C++ over straight C, or C# if you're developing on Windows.
In terms of?(Original post by beepbeeprichie)
C++ is much faster than Java. -
Re: C, C++, Java, Objective C? What should I learn?how so? I would say the consumption of memory that's making Java slow; in one source, Java consumed more memory than C and C++ combined.(Original post by beepbeeprichie)
Speed of execution.Last edited by kka25; 23-07-2012 at 20:17. -
Re: C, C++, Java, Objective C? What should I learn?Not necessarily, various modern Java implementations can be compiled into the native instruction set, either in advance or on a JIT basis.(Original post by beepbeeprichie)
Speed of execution.
In general, how good the code is (algorithmically speaking), is more important in terms of execution speed. -
Re: C, C++, Java, Objective C? What should I learn?
[QUOTE=JGR;38665808]Not necessarily, various modern Java implementations can be compiled into the native instruction set, either in advance or on a JIT basis.
[QUOTE]
In general, how good the code is (algorithmically speaking), is more important in terms of execution speed.</QUOTE]
I'm not disputing that but ceterus paribus c++ is faster than Java.Last edited by beepbeeprichie; 23-07-2012 at 20:27. -
Re: C, C++, Java, Objective C? What should I learn?If I could go back, I would have started off with C/C++.(Original post by Kardy)
There's so much to choose. I want to go onto do Computer Science at uni after I finish my A2s next year. In uni it's most likely they'll specialise in java, so I don't see any point in learning that now.
But out of C, C++ and objective-C, which is the best to learn right now? (in my spare time).
Therefore, that would be my advice to you. Even if your uni teaches Java, there's plenty of transferable skills from one language to another, and besides, being familiar with more than one language is always a bonus (perhaps to your final year project or future job prospects!). -
Re: C, C++, Java, Objective C? What should I learn?Really? I thought it came from Oak?(Original post by NightStrider)
Well, Java is written in C++ - that should tell you something -
Re: C, C++, Java, Objective C? What should I learn?I think he means that the Java VM is written in C++. So ultimately when you run Java code, it's running on top of a platform developed in C++.(Original post by kka25)
Really? I thought it came from Oak?
According to http://en.wikipedia.org/wiki/Oak_(programming_language) Oak was the predecessor to Java, not what the VM was written in. -
Re: C, C++, Java, Objective C? What should I learn?Lol, ironically, from the wiki link:(Original post by Psyk)
I think he means that the Java VM is written in C++. So ultimately when you run Java code, it's running on top of a platform developed in C++.
According to http://en.wikipedia.org/wiki/Oak_(programming_language) Oak was the predecessor to Java, not what the VM was written in.
but at the end, the piece of code that runs the whole thing came from C++ ; DThe team originally considered using C++, but rejected the idea for several reasons -
Re: C, C++, Java, Objective C? What should I learn?
based on my poll that i just did (http://www.thestudentroom.co.uk/poll...s&pollid=34000) most people are suggesting c++
-
Re: C, C++, Java, Objective C? What should I learn?
Why don't you learn a scripting language like lua/ruby/python you will be able to get things done a lot faster if you are just making something small and im guessing you dont care about execution speed if you are just learning.
If you have your heart set on the above then I suggest C, but it will make much more sense to you after studying assembly and operating systems. You will have a lot more fun with a higher level language for now I believe. -
Re: C, C++, Java, Objective C? What should I learn?
Definitely C, its the one language that basically everyone working with computers needs to know. C++ is more 'practical' in some sense, but all the OO stuff gets in the way of the parts that are most important to learn (pointers, and how to write fast code). Besides you'll learn enough about OO in java and software engineering classes. If know C and Java then you basically know C++ anyway.
Last edited by poohat; 26-07-2012 at 03:08.