Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,568 members, 7,801,620 topics. Date: Thursday, 18 April 2024 at 06:32 PM

Learn A Programming Language Fast By Copying Unix - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Learn A Programming Language Fast By Copying Unix (657 Views)

Build A Mobile App Without Knowing Any Programming Language or line of code. / Bash Shell Vulnerability Affects Linux, Unix And Mac OS X / What U Need To Know Before Learn A Programming Language (2) (3) (4)

(1) (Reply)

Learn A Programming Language Fast By Copying Unix by davidsmith8900: 11:29pm On Nov 05, 2014
Reading books is great, reading other people’s code is great but no other technique is more efficient for those trying to learn a new programming language than actually writing code.

That said, I’m making a suggestion here: copy Unix.

How? Gimme a hint.

Suppose you’re learning Python, you should try to build a copy of the cat program with it or try to implement tree, for example.

Unix programs are often small and focused on doing something unique and doing it very well (read more about the concept), which is also ideal for learning to program. Just pick up a single problem and solve it in the best way possible.

Chris Wanstrath has an example of it from long ago.

Reproducing these tiny programs in your language of choice has the amazing benefit of helping you learn about the classes and functions of that language.

Have this for an example:

#!/usr/bin/env ruby

# Reproducing cat in Ruby would be as simple as this:

ARGV.each do |file|
puts File.read file
end
Although virtually doable with any programming language, this technique works even better if you’re learning a scripting language like Ruby or Python. Or even JavaScript with Node.js.

As developers we always need to learn things. I think small habits like this can make a difference.

Original Post - http://sgtpeppers.me/copy-unix/

(1) (Reply)

For Developers - A New Way To Make Your App Popular / subject changed / Rare Sap Erp Learning Opportunity

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.