LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 12:23 PM   #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, 01:36 PM   #2
cpuobsessed
Member
 
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 53

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, 04: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, 09: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


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


All times are GMT -5. The time now is 11:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration