LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-03-2012, 11:23 AM   #1
origami-sheep
Member
 
Registered: Dec 2009
Distribution: Arch
Posts: 103

Rep: Reputation: 2
How best should i learn to code?


hi all; something i've wanted to do for an age is learn some proper programming language to make some of my ideas come to life (ultimately i want to make a window manager)

so where and what should i learn?

also are there any good, well-commented programs i can fiddle with to learn?


thanks!
 
Old 04-03-2012, 12:36 PM   #2
cpuobsessed
Member
 
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 56

Rep: Reputation: 15
welcome! sounds like you want to learn C++
best thing to do would be to get a good book on C++ and/or take a class
to quickly get into coding start with a scripting language like
python or ruby, lots of documentation available online
source code is available for just about any program on a standard linux distro
including the window manager
 
Old 04-03-2012, 03:37 PM   #3
origami-sheep
Member
 
Registered: Dec 2009
Distribution: Arch
Posts: 103

Original Poster
Rep: Reputation: 2
taking a class/course really isnt an option as my free time comes as and when it likes

anyone got a good site to learn from? i found a couple but they dont seem to be too inspiring :/
 
Old 04-03-2012, 08:44 PM   #4
jarubyh
Member
 
Registered: Aug 2011
Location: $HOME
Distribution: Slackware, FreeBSD, Debian
Posts: 50

Rep: Reputation: 1
As cpuobsessed said, if you want to write a window manager, it would be a good idea to learn C/C++, although you can write one in any Turing complete language (even Haskell). To answer the question posed in the title of this thread, the best way to learn to code is simply to write code. Get yourself a good online resource, PDF, or book about whatever language you want to learn and follow along in it until you feel comfortable enough to mess around on your own. Then, mess around on your own. The more time you spend programming the better you will get. As for good, well commented window managers, I've got a bit of a bias toward dwm http://dwm.suckless.org/ because it's in C, only a wee bit over 2000 lines, and is a perfect example of what a small yet well documented projects should look like.

Good luck and happy hacking.
 
  


Reply

Tags
code, language, programing, source



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
For Fun: Universal AI,Artificial Intelligence, auto-learn, basic version,a daily code frenchn00b Programming 2 11-02-2009 04:55 PM
using the source code to learn about an app stabu Programming 4 01-24-2009 10:08 AM
where can I find some c++ source code to learn? brucebird Programming 2 09-16-2006 01:26 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
I want to learn the code! matthewa Programming 6 03-20-2005 12:35 PM

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

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