how to program with suse linux version 10.0
i am really new to linux and want to eventually learn how to program, are there any tutorials out there that can help teach me how to program using suse linux 10.0?
|
install the c/c++ compiler tools in YasT (if they aren't already installed) and try compiling some c-code:
For instance this one: http://www.cprogramming.com/source/b...on=Jump&LID=12 Save it as bubblesort.c Open a terminal in this dir and type: gcc bubblesort Than run the program by typing: ./a.out More code-snippets: http://www.cprogramming.com/ Than start writing your own code :? There are many other languages to write in of course. You can also try getting grip on your terminal first: http://www.linuxcommand.org/ |
Quote:
What kind of programs? It may be best to start with a book on Linux programming--it will be relevant regardless of distro. Start with the O'Reilly web site. |
If you still have to learn to program, forget about Suse for now. Keep it generic and get 'the feel' for it.
I don't think that one will learn by just compiling some source code. There are plenty tutorials but you first have to pick a language. C is mentioned above and is probably the most generic one. It's also considered 'difficult', but there are plenty advantages. Once you know C, you can program for practically any platform (including microcontrollers as used in ABS, electronic injection, washing machines, tv, vcr, ird etc etc etc). tutorial C (it's one that I quickly found with google, no quality guarantee) Some other languages are tcl/tk, bash (if you limit yourself to Linux), python, perl, php and java; the list is definitely not complete. Except for java and C, the mentioned languages are scripting languages (which implies that they don't need compiling). In general, scripting languages are slower than compiled languages. For most scripting languages, versions are available for different platforms; if code is properly written, it can run on Linux, Mac, Windows etc without modifications. Just type 'tutorial' and the name of the programming language in your favorite search engine and see what shows up. Please note that learning to program is not only about learning a language. It's also about programming/design principles. I'm not aware of tutorials for this, but there are definitely books on the market. PS I write in C. If a gui is required, I add a tcl/tk frontend to it. |
Nice code links muha I can use those myself. :)
|
I guess my post is a good reply to: how can i see how programming/compiling works by example.
@laceupboots: thanks, i did not write bubblesort though :p |
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
http://www.linuxquestions.org/rules.php As programming is a more appropriate forum IMHO, I'll close this one. http://www.linuxquestions.org/questi...19#post2052019 Thanks! Closed |
All times are GMT -5. The time now is 08:31 AM. |