LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   linux programming how to . (https://www.linuxquestions.org/questions/programming-9/linux-programming-how-to-529351/)

huno 02-15-2007 12:25 PM

linux programming how to .
 
hi people .
i'm beginner in linux programming .
i'm writing this thread, needing an advise .
how can i learn linux programming . i know C/C++ programming but i see the linux programming is different .

advise me . where should i start to learn linux programming . give me some tut, books . or anything will help me to become a linux programmer .

thanks

Samoth 02-15-2007 01:14 PM

C is pretty much the same across the board. A good book is "The C Programming Language" by the creaters of C.

Mara 02-15-2007 03:33 PM

What do you need exactly? System programming (threads, drivers etc), GUI?

matthewg42 02-15-2007 07:42 PM

Samoth, I think the main challenges for programmers coming from other platforms are:
  1. Unfamiliar tools - editors, compilers, documentation tools.
  2. Unfamiliar libraries - GUI frameworks are usually a big one, but many others.
  3. Unfamiliar system - stuff like filesystem layout (only one root in the filesystem?!), how to go about talking to devices, conventions about where to put files, permissions etc.

I'm sure there are more.

For the tools, it depends what you're used to (big fancy IDEs, lightweight editor/compiler combos). If you tell us what you would like, we can suggest some Linuxy alternatives.

For libraries you are spilt for choice - we have very many of the. Pay attention to licenses. If you're starting a project with the intention of distributing it, you should find out what terms a license will put on that before you start coding! For GUI frameworks, there are two 800 lb gorillas in he open source world. QT and GTK. QT is C++, GTK is C, but there is a C++ wrapper called GTKmm. Both have bindings to higher level languages such as python. Have a play with both. My personal preference is for QT. There are others worth investigating too
- if you ask here you'll get loads of suggestions.

As for learning how Linux does stuff, the best advice is to use it as your main OS, and find out how it works. Use the manual pages. They have a format which looks slight odd to start with, but they are often a very concise and rich source of information. The manual is our friend. There are of course a great many forums, chatrooms, FAQs and tutorials on the net to help you.

</twopence>

huno 02-16-2007 09:43 AM

thank you very much .
i want to be software programmer in linux . in which i want to be an expert in linux programs programming . how can i ?
give something , where i will start . give me tut , site , name of books . or something which will help me to learn .
thank you very much

matthewg42 02-16-2007 12:48 PM

Quote:

Originally Posted by huno
thank you very much .
i want to be software programmer in linux . in which i want to be an expert in linux programs programming . how can i ?
give something , where i will start . give me tut , site , name of books . or something which will help me to learn .
thank you very much

That's really rather vague. What sort of stuff?

xhi 02-16-2007 12:51 PM

the key to learning anything new. http://google.com

after that, books.. good authors bruce eckel, scott meyers, herb sutter. searh on those guys and what you find will lead you to other good books as well.

finding this stuff on your own is the important thing. asking for links and books repeatedly will only get you ignored. again, refer to the key thing that i mentioned first.

huno 02-16-2007 02:01 PM

thank you .
i'm not asking repeatedly .
but i want good beginning to study programming . then i can understand and do as much as i can . to be what i want to be .
thank you for your information .
thanks people .
someday you will see some of my projects . i hope so .

xhi 02-16-2007 02:20 PM

> i'm not asking repeatedly .

http://www.linuxquestions.org/questi...84#post2631984
http://www.linuxquestions.org/questi...83#post2633183

good luck with the searching

edit> here is an arrow since i misread your post and gave you authors that are not linux specific

search for
the art of unix programming

mihirsevak 02-18-2007 09:37 AM

Linux programer
 
huno,
to a beginner i would recommend 2 things.
1. get in a habit of reading man pages.
2. Linux Programming by example by Arnold Robins.
this is a good start up book. Will give you enough idea about
what linux programming is all about.

feel free to ask any questions...


All times are GMT -5. The time now is 09:23 PM.