ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.