Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-29-2002, 03:15 AM   #1
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
Bah! programming!

I tried, i really tried.... i read the same book twice, and another book half way, but i just can't learn enough C to even understand what's happening whne i look at sources of some simple programs (gkrellm, wmweather) and of course, the best i can do is a simple calculator in C.
I'm thinking about giving up, on C

I'm obviously a anti-talent for programming, but still i would like to learn a general purpose language to help me in everyday tasks, writing simple short programs, and C just isn't going good.

I'm thinking to start on Perl, and to learn some more Bash Scripting, and when i'm able to do something useful, go back to learning C again..

Any comments, flames? Just any opinions plz so i can see on what i'm standing here.
Thank you!

Last edited by NSKL; 11-29-2002 at 03:16 AM.
Old 11-29-2002, 06:47 AM   #2
Registered: Sep 2002
Location: Germany
Distribution: SuSE 8.0
Posts: 96

Rep: Reputation: 15
Programming can not be learned by reading books. What you need is practice, practice and more practice. Look for a small project you can do and start.
Don't give up.
Code reading is not trivial, but you will get used to.
And for your examples: gkrellm, wmweather ... are not isolated programs, they make more or less heavy use of librarys. If you realy want to understand what they do (and how), you will have to learn what the used librarys provide.
Old 11-29-2002, 09:12 AM   #3
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Systems are not built by individuals, but through middleware you can construct client and server side solutions that meet your domain requirements.
Old 11-29-2002, 02:23 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
I tend to believe that understanding other peoples code is
less dependent on your own language skills but rather on
the quality of their inline documentation ;) and the clarity of
their style, the way they name things and structure them.

And poorly documented Perl isn't going to help you :}

Old 11-29-2002, 03:01 PM   #5
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
You really just need to find something you want to do, decide which is
the best language with which to do it (the hard part, IMHO), and then
do it in isolation from other people's code (for the most part). If you try
to program something you aren't interested in, you'll just get frustrated
and won't learn anything about the language you are using. Trying to
read someone else's code is difficult even for someone who has been
coding for years, there are many ways of doing things, and unless there
are a lot more comments (well written comments) than lines of code, you
won't know why they did something one way, and not another.
A good book is one that has good, well written code examples with
well written comments. A bad book is one that talks a lot about the
theory of programming without any examples of actual programming,
those books are for when you already know what you are doing and
want to get better.
Don't give up on C, decide what YOU want to write, find a good web
tutorial on something similar (if it has a lot of file I/O, find a tutorial
on C file I/O, etc.). Start your code by commenting it. Make sure you
know what you want to do before you start to do it. If you can't
write the comments before you start, you *probably* don't have a good
idea of what you are trying to accomplish. Don't bother trying to read
code that isn't (well) commented, you'll just get frustrated.
Old 12-01-2002, 06:25 AM   #6
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Original Poster
Rep: Reputation: 46
You're right in that i don't know what i want to do, im just writing useless calculators and nonsense such as that..
I will try again, cuz i hate giving up and with your suggestions i hope i'll get somewhere.
Thanks for the moral support, i needed some
Thanks again

Old 12-02-2002, 02:43 AM   #7
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,562

Rep: Reputation: 140Reputation: 140
i guess itīs a good idea to start with perl cause perl has a couple features that make life much more comfortable than programming c.
i.e. the a source of (often)well documented modules for perl programming
give it a try


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bah, sound issues. squall14716 Linux - Hardware 2 03-26-2004 07:15 AM
Bah! Humbug! Hangdog42 General 4 09-02-2003 10:11 PM
BAH! Mplayer Dependancies the anti-riced Linux - Software 8 06-19-2003 04:09 AM
bah, help needed rehash Linux - General 2 03-01-2002 09:48 AM
Default Kernal 2.29 Bah IEslakie Linux - Software 2 01-08-2002 03:10 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:34 AM.

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