LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-28-2003, 08:37 PM   #16
Q-collective
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Gentoo, obviously
Posts: 113

Rep: Reputation: 15

I want to learn a some good programming for myself and I must say this treath really is helpfull! Thank you all!
 
Old 07-28-2003, 09:31 PM   #17
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
learn by doing. im sure its been said but i didnt feel like reading every post so i just want to say that you have to actually write code to learn anything, just reading wont cut it. you'll be surprised what a difference it makes actually sitting down and coding the examples in the book. it gets you used to the simple things. example:

in java, if you have a main u always type:

public static void main(String args[]){...


if java is your 1st language (as it was for me some years ago) then that alone looks strange, but after being forced to type that out a few times..it's just plain simple.

that comes from doing it over and over, not just reading it.

and as suggested before (im just solidifying the point) come up with a nice reasonable project...and see it through. try to do something that will incorporate many different aspects of programming (like data structures, reading from files..etc). by the time you're done, you'll be a pro.

and always try to follow good coding practices (commenting, modulatiry, and other stuff)

have fun
 
Old 07-28-2003, 11:13 PM   #18
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
Originally posted by Robert0380
in java, if you have a main u always type:

public static void main(String args[]){...
So much in fact, that you should set up an editor macro for it (I have the vim version if anyone wants it)

PS - Python!
 
Old 07-28-2003, 11:24 PM   #19
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
Quote:
Originally posted by Robert0380

in java, if you have a main u always type:

public static void main(String args[]){...

that alone looks strange, but after being forced to type that out a few times..it's just plain simple.
hmm.. Typing repeatedly to make the strange things simple is not the right way. It is like blindingly remembering things and it will never make you master things. You should always try to avoid it.

The right way is try to understand everything. Every single word. Once u understand everything, the above Java statement will make perfect sense to you and become very simple.
 
Old 07-28-2003, 11:29 PM   #20
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Exactly,
Once you understand it, you shouldn't waste precious programming time on typing all the stuff over and over. Once you understand it, be gone with it!

I was reading an interview with Bruce Eckel yesterday that briefly mentioned on this (thanks again Strike for bringing this great article to my attention). Basically he said this:
On average a programmer writes 10 good lines of code a day. With Java just starting some code already wasted those 10 lines

I almost died reading that paragraph

Last edited by coolman0stress; 07-28-2003 at 11:31 PM.
 
Old 07-28-2003, 11:33 PM   #21
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
Can u give the link for the interview? (if you remember it)
 
Old 07-29-2003, 04:01 PM   #22
coolman0stress
Member
 
Registered: Jun 2003
Location: Toronto, Ontario, Canada
Posts: 288

Rep: Reputation: 30
Sure... it's 4 parts and you can find the links to all on the Perl rant thread.

Happy reading!
 
Old 07-29-2003, 04:28 PM   #23
epicurus
LQ Newbie
 
Registered: Jul 2003
Posts: 16

Rep: Reputation: 0
That's an excellent interview
 
Old 07-29-2003, 08:34 PM   #24
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
Cool.
 
Old 07-29-2003, 08:42 PM   #25
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
you could also try your local community college and see if they offer any courses in said language just a thouhgt
 
Old 08-20-2003, 03:59 PM   #26
siva_bhavani
LQ Newbie
 
Registered: Aug 2003
Location: mumbai
Distribution: mandrake and redhat
Posts: 10

Rep: Reputation: 0
my suggestion.. stick 2 one language and one authoritative book on the language. once u complete the book dive into a project to further ur skills
 
Old 08-20-2003, 11:14 PM   #27
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Given that linux is open source, You have a lot of working source code that you can study. The very same programs you are using!

Your distro may contain online programming books.

Since you don't like studying online, print out a few pages of online study material at a time, and study that.
 
  


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
The best way to learn? iz3r Programming 7 02-06-2005 11:00 PM
Do you really need to learn C before C++? qcoder Programming 31 12-04-2003 10:10 AM
What should i get to learn? Any Solaris / OpenSolaris 1 02-18-2003 06:19 PM
I would like to learn how to do it tournesol Linux From Scratch 2 10-07-2002 10:07 PM
How to learn more? R2RO Linux - Software 5 08-31-2002 08:15 PM

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

All times are GMT -5. The time now is 03:33 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