And palmerdabbelt, thanks a lot, will definitely check that book out! (hopefully I can find it free online)
I want to learn to C - Page 2
Blogs > Arnstein |
Arnstein
Norway3381 Posts
And palmerdabbelt, thanks a lot, will definitely check that book out! (hopefully I can find it free online) | ||
Marradron
Netherlands1586 Posts
| ||
palmerdabbelt
United States46 Posts
On April 24 2012 03:29 Arnstein wrote: Thanks everyone! And palmerdabbelt, thanks a lot, will definitely check that book out! (hopefully I can find it free online) If there's anything else I can do to help feel free to send me a PM. | ||
hoot00
United States77 Posts
Which one should I learn? | ||
blade55555
United States17423 Posts
On April 24 2012 03:25 GogoKodo wrote: Learning C will not teach you the "wrong stuff", whatever that is, and C is definitely useful. From what I read when I was teaching myself programming most people agreed that learning C first would give you bad habbits that will cause many problems in c+ and what not. | ||
sieksdekciw
240 Posts
On April 23 2012 23:22 TheToast wrote: 1. Honestly, you're probably best off learning C#, 2. Java (not actually all that different from C++), that would actually be useful for programming apps and cross-platform software. What is this, I don't even??! C and C++ don't have any ACTUAL applications nowadays? A quick look here :http://www.thewindowsclub.com/what-is-android-operating-system-a-beginners-read A beginners read on this article shows that: `Android OS consists of over 12 million lines of code written in C / C++ / Java and XML.` `Java is not that different from C++` Have you ever seen Java code and have you ever seen C# code. That is right, they look alike Hello world in C#: class Hello { static public void Main() { System.Console.WriteLine("Hello World"); } } Hello world in Java: class Hello { public static void main(String[]args) { Systen.out.println("Hello World"); } } Hello world in C++ #include <iostream> int main() { std::cout << "Hello World!" << std::endl; return 0; } You better go to school, kids, cause if you don't you will end up saying in forums that Java is (not that different from C++, actually). Shame on you for being outright stupid. | ||
divito
Canada1213 Posts
| ||
olabaz
United States298 Posts
I was told by a lot of people not to learn C but I feel like it'll be a fun exciting language that will help me in the my future studies of physics. Haters gonna hate! | ||
TheToast
United States4808 Posts
On April 24 2012 05:43 sieksdekciw wrote: What is this, I don't even??! C and C++ don't have any ACTUAL applications nowadays? Okay, you're just putting words in my mouth. I never said C++ didn't have applications. I was implying that C didn't have that many real world applications in terms of development of desktop applications. You do know he was talking about C and not C++ right? You better go to school, kids, cause if you don't you will end up saying in forums that Java is (not that different from C++, actually). Shame on you for being outright stupid. They're both object oriented programming languages, just because the syntax isn't the same doesn't mean they are drastically different. And if you want to discuss this further, try it without the attitude maybe? | ||
sieksdekciw
240 Posts
On April 24 2012 06:20 TheToast wrote: Okay, you're just putting words in my mouth. I never said C++ didn't have applications. I was implying that C didn't have that many real world applications in terms of development of desktop applications. You do know he was talking about C and not C++ right? They're both object oriented programming languages, just because the syntax isn't the same doesn't mean they are drastically different. And if you want to discuss this further, try it without the attitude maybe? C++ is a OO language and java is also. Nice similarity. It's like saying an elephant is similar to a fish since they both are animals. C# is far closer as idea and syntax and level of abstraction to Java than C++ is to any of them. | ||
freelander
Hungary4707 Posts
It's a badly designed language, in my opinion. Though for sure it has libraries for everything. C first is nice. | ||
Melchior
United States112 Posts
On April 24 2012 06:20 TheToast wrote: I was implying that C didn't have that many real world applications in terms of development of desktop applications. You do know he was talking about C and not C++ right? [Java and C++ are] both object oriented programming languages, just because the syntax isn't the same doesn't mean they are drastically different. And if you want to discuss this further, try it without the attitude maybe? As far as I'm aware, plain C is still used for a lot of high performance computing applications. Desktop applications or web services? Yeah, go with C# or Java. But C's still around to stay. Also, Bjarne Stroustrup (the original creator of C++) would disagree with your characterization of C++ as an object-oriented programming language. C++ supports object-oriented programming, but is also capable of much more. I had a pretty easy time learning Java after C, but learning proper C++ was an entirely different beast. | ||
darmousseh
United States3437 Posts
On April 24 2012 05:43 sieksdekciw wrote: What is this, I don't even??! C and C++ don't have any ACTUAL applications nowadays? A quick look here :http://www.thewindowsclub.com/what-is-android-operating-system-a-beginners-read A beginners read on this article shows that: `Android OS consists of over 12 million lines of code written in C / C++ / Java and XML.` `Java is not that different from C++` Have you ever seen Java code and have you ever seen C# code. That is right, they look alike Hello world in C#: Hello world in Java: Hello world in C++ You better go to school, kids, cause if you don't you will end up saying in forums that Java is (not that different from C++, actually). Shame on you for being outright stupid. Have you seen it in ruby? print "Hello World" What are your goals? Choosing a language for learning is pretty important as it will shape your thinking process. I would reccomend choosing a language which is commonly used in areas you wish you utilize. For an all purpose language, I would say java is the way to go. If you want to do video games, go with c/c++/c#. If you want to do web stuff, php and ruby are the right choice. If you have any questions, pm me. | ||
NinjoOb
Canada128 Posts
| ||
Xyik
Canada728 Posts
| ||
VManOfMana
United States764 Posts
http://www.bignerdranch.com/book/objective-c_programming_the_big_nerd_ranch_guide The Big Nerd Ranch guide will not teach you all of C, but the basics to get started before you start diving in to Objective C (Apple's prefered language for development). The book is very good for people who want to learn on their own pace, and prefer a more practical approach. For example, the book won't teach you every detail of vodoo black magic needed to master pointers and memory management, but just what you meed to understand and work with references in Objective C. You can then proceed with the Cocoa (Apple's development libraries) books, that introduce you more into OSX and/or iOS programming. Also, a very good motivator is to have a project you want to work on. Doesn't need to be very sophisticated, just something you can find useful and cook. Personally I really appreciate programs that are small, but with a lot of attention to detail ![]() | ||
Athos
United States2484 Posts
| ||
Anacletus
United States733 Posts
If you (or anyone else) is interested or has any questions I have a fair amount of free time so send me a message on TL and I can send you my Skype info (not posting here). Good luck with your quest for knowledge! | ||
Arnstein
Norway3381 Posts
| ||
adwodon
United Kingdom592 Posts
On April 24 2012 06:11 olabaz wrote: So I also recently decided to learn C and have been learning for a couple of days now. The book recommended by MIT as well as a bunch of other legitimate sources seems to be C Programming Language. I looked into this book and did not really like that they didn't give the main function a return value. I then found out about another book that is widely accepted called C Programming: A Modern Approach and I really like the way it is written and laid out so far, and it is what I'll be using. A larger list of books can be found here. I was told by a lot of people not to learn C but I feel like it'll be a fun exciting language that will help me in the my future studies of physics. Haters gonna hate! I was one of the better programmers when I did my MSc in particle physics, not that I could have a valid opinion... C will not help you in physics, it will probably just hinder you, but you've obviously been told this and think you know better. Most physicists stuck with FORTRAN for the most part, they're switching over to C++ with a lot of the larger collaborations (event generators etc) because OO is too useful. If you're serious about physics over programming you'll not need to go in depth with anything, just learn Java then C++ and some scripting languages, as well as how to use Unix and you'll be fine, you'll learn what you need when you need. As people have said, C is for low level things, learning it will serve no purpose in the physics world and you'll simply have to erase bad habits when you learn a more appropriate language. | ||
| ||