LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2006, 06:31 AM   #31
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148

Quote:
Originally Posted by SimpJee
So should I not start out with programming languages?
Sorry I hope I didn't confuse you when I talked about the study of programming languages; that is when a collection of different languages are taken and their different characteristics are studied. I believe that you should focus on a single language rather than the, rather unusual, approach suggested by llmmix.

To finish with all the best with your adventure.

Last edited by graemef; 06-01-2006 at 11:33 AM.
 
Old 06-01-2006, 08:48 AM   #32
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
Learn one language and use that language to learn how to solve problems programaticly.Rather than just learning the syntax of many languages before you have grasped how to use a language to break a problem down into smaller manageable units that achieve your goal.

I am sure you will do well.

So go ahead,choose a language and write that first hello world program

best of luck.
 
Old 06-04-2006, 02:49 PM   #33
llmmix
Member
 
Registered: Jun 2005
Posts: 73

Rep: Reputation: 15
"at the same time" doesn't mean it, really.
But sometimes, learning other language help another language when you stuck.
Note that the time isn't short, just plain long to becoming real programmer.

And sure you should start one language first, but before you do it, you have to learn computer structure itself.

I would recommend this book for you, if you can't buy this book, barrow it from public library or university some place.
http://csapp.cs.cmu.edu/
 
Old 06-04-2006, 09:04 PM   #34
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
Quote:
Originally Posted by llmmix
"at the same time" doesn't mean it, really.
But sometimes, learning other language help another language when you stuck.
This is very true. After I had been using Java a while and moved on to C++ I found out that some of the C++ stuff cleared up some questions I had about Java concepts.

I also just remembered a post I had started a while back about programming language strengths and weaknesses:
http://www.linuxquestions.org/questi...d.php?t=318706

It only has a couple of the major programing languages, but it gives you a brief look at some of their capabillities and what they are commonly used for.
 
Old 06-06-2006, 04:21 PM   #35
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
I found this website very helpful for programming resources.
http://linoleum.leapster.org/
 
Old 06-08-2006, 12:05 AM   #36
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try this : http://www.freeprogrammingresources.com/
 
Old 06-09-2006, 09:03 AM   #37
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Quote:
Originally Posted by Wim Sturkenboom
So the linker will then link in the correct library automatically? It would save me a lot of time trying to locate the correct one if that's the case?

Sorry for the delay in responding. Its not always the case that it will find the correct libraries. Im begining with C myself so im limited with working with libraries at this time but except for the standard libs like stdin and stdlib i think the rest need to be put on the line with gcc compile command. The gcc man page may clear this up but ATM im at work and cannot look at man pages
 
Old 06-10-2006, 02:49 AM   #38
worzel68
Member
 
Registered: May 2006
Location: Sydney
Distribution: FC5, FC3, AIX, System V,
Posts: 50

Rep: Reputation: 15
C , C++, Java

I am intrigued by those who learn C++ or Java before C. I'm not saying that you can't do this, but C++ & Java are really extensions of C.

The C language contains all the "basic stuff" - I found it easier to learn this first.

C++ has exactly the same stuff as C, but has several extra concepts that are quite involved.
Java code is almost exactly the same as C++. The Java program will run on all kinds of machines.

C++ has classes, inheritance, operator & function overloading, templates, exception handling etc.

So, with C++ you need to think about the design of your classes:
- what classes are you going to have
- how are they related? Do a class structure diagram showing the inheritance
- what information/variables are going to be in each class
- what constructors is each class going to have?
- what functions is each class going to have? will they be overloaded?
- what operators class going to have? will they be overloaded?

Remember there will be classes to store you data structures and more classes for each dialog box.

These are just some of the extra concepts involved in C++, and to really get the hang of all this probably takes just as long as learning all of C !! Mind you the learning never stops.

It is possible to write C++ code that looks like a C program, but it has function overloading and other bits & pieces but 1 class or no classes. I am asserting that one is not really C++ programming until you have multiple classes with inheritance.

If you are new to programming and want to learn all this at once - then best of luck. This is the "Learn to walk before you run" concept.

Now that I've bullied you into learning C first - I strongly recommend "C Programming" by Kernigan & Ritchie. It starts with "Hello World" & takes you through 1 step at a time. If you do the exercises @ the end of each chapter, it will prove most valuble experience.

When doing your programming, I recommend using an IDE (Integrated Devolpment Environment) like Kdevelop which comes standard with KDE. It's also a good idea to use the command line or emacs for your simple programs - so that you learn about details of compiling and linking.

There you have it - learn C first, then C++, then Java will be easy !!
 
Old 06-10-2006, 03:26 AM   #39
slzckboy
Member
 
Registered: May 2005
Location: uk - Reading
Distribution: slackware 14.2 kernel 4.19.43
Posts: 462

Rep: Reputation: 30
The worzel68 above has had the courage to say exactly what I was thinking.

The c++ book that I am learning reads like a whirlwind guide of C for the first few chapters.Before then getting into classes,constructors,inheritance overloading,derived classes etc etc.I am thankful that I know C so I can just concentrate on these new extensions.

Also,maybe more importantly;I am beginning to understand why some of the extensions had been implemented.I have written enough C to have thought;wouldn't it be good if i could do such and such,or i didn't need to do such and such in my C code.

Well,I'm sure this will keep the debate going.
 
Old 06-10-2006, 10:43 AM   #40
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by worzel68
I am intrigued by those who learn C++ or Java before C. I'm not saying that you can't do this, but C++ & Java are really extensions of C.
I agree that C++ is C with more added but Java is different in that it hides some concepts that newbies have difficulty with, notably pointers and memory management. Learning the basic concepts of OO so that you can start programming is really very little from learning the basic concepts of a procedural language, namely a class and a few methods. So I would say that Java works quite well as a first language, having said that the original request was for programming on Linux and so I see an advantage with learning C first.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tip for anybody wanting to start programming philipuso Linux - Newbie 6 05-27-2006 10:25 PM
Wanting to start learning linux mystex Linux - Newbie 9 05-16-2006 01:52 AM
X windows programming how do i start a1ex_007 Programming 3 03-11-2005 07:53 AM
When and why did you start programming? BBB Programming 33 01-17-2005 04:29 PM
I want to start programming, need help though... Eits0 Programming 8 05-16-2002 08:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration