š©āš» Learn a New Programming Language in Just One Week!
Well, well, well. You may think the title of my post is clickbaitā¦.but it isnāt. Hereās how I learned a new programming language in just one week and created a project with it! This was an assignment I did during one week of Code Chrysalisā immersive coding bootcamp.
Pick a new to you language and let this post be a guide. I chose Ruby. For the purpose of this article, Iāll be referencing Ruby, but replace it with whatever language youāre learning. Okay, are you ready? Letās get learning!
āļø First things firstā¦
Weāre going to take this step-by-step. The very first thing I did was search āRuby koansā. What are koans? A koan is originally a concept from Zen Buddhism that involves testing a studentās progress and understanding. In programming, koans are a way of challenging our perception of a programming language and testing our ability to work with it.
After you search for āRuby koansā, find a suitable link with a step-by-step guide introducing you to the language. I used this websiteās Ruby koans.
ā But wait!
Okay, before we dive headfirst into learning a new programming language we need to make sure itās installed on our computer. Go do that! Is Ruby installed on your computer? Yes? Continue reading!
This languageā¦.whatās the best version for me?
This is definitely a question you should ask yourself. Some programming languages are splintered. This means youāll need to do some research and pick the specific version of this language that you want to work with.
š Initial to-do list
- What is the languageās package manager? RubyGems
- Is there an online sandbox for your language? repl.it, Ruby Fiddle
- What IDE is recommended for this language? Atom, VS Code, VIM
- What about testing suites? TestUnit, MiniTest, Rspec
- Is there a debugger? simple: IRB (Interactive Ruby); robust: Pry
āØļø Letās get typing!
After you have gone through everything above, itās now finally time to get typing. Start with the basics. Create some variables. Reassign them. Write some functions. Make some objects and lists. Remember, the faster you make mistakes, the faster you learn. Fail fast. Learn faster.
š” Ruby ProTips:
- File naming: snake_case_file_naming.rb
- Test file naming: snake_case_file_naming_test.rb
- Terminal command: gem install <library_name_here>
š¤ Even More Research
Great job so far! Weāre familiar with the basics of Ruby. Letās expand our knowledge even further. What frameworks and libraries are out there?
š¼ Popular Ruby Frameworks
- Ruby on Rails
- Hanami
- Sinatra
- Padrino
- Cuba
š Popular Ruby Libraries
- Byebug
- ElasticSearch
- Minimagick
- Capybara
- HTTPClient
š° Ruby in the News
š Final thoughts
I hope this article was helpful. Learning a new language is daunting. But, if you break things down into small tasks the challenge becomes much easier. What language did you learn?
Thanks for reading! My name is Halee Pagel (rhymes with Cali Bagel) and Iām a software engineer in Tokyo, Japan. You can find me on twitter which I mostly use for liking tech memes and MLB updates. āļø