Archive for the ‘Code Academy’ Category

Code Academy Week 3

I am a bit late, but here is my summary of week 3. The lectures were rounding out MVC. We made a model class, a controller class, and some view pages. We then made the necessary methods, views and routes to list all the instances, show one instance, edit an instance, and delete an instance. [...]

Code Academy Week 3 Notes Post 02

2012-01-26_08.08.55 notes Web requests: URL, method, format In the routes.rb file, you can have the same URL, but different methods If you are having trouble naming controllers, go into the Rails console, call the “pluarlize” or “singularize” methods. This will give you the Rails conventions. In browsers, when you type something in the address bar [...]

Code Academy Week 3 Notes Post 01

2012-01-24_08.10.45 This week: Arrays and blocks MVC Recipe CRUD your data Rails resources Model Associations 2 skills building: RoR coding and how to think about architecture of application Arrays and blocks: Arrays and collections 5.times do |n|      puts "The Edens is ridiculous #{n + 1}" end The times method will let you increment a [...]

Code Academy Week 2 Notes Post 02

2012-01-19_08.01.49 Methods always return something, even nil Put an at sign in front of variable makes it an instance variable Class names get upper case – but when you enter rails generate command you can make the model name lower case model: class name is singular – this is a particular row in the database [...]

Code Academy Week 2 Notes Post 01

Here are my notes for the first day of week 2 at Code Academy.   2012-01-17_08.07.38 Methods: Classes: Fundamental Ruby On Rails: Why use it? Database-Backed Web Applications Convention Over Configuration Agile Development Rails quickstart: rails new myapp cd myapp rails server go to http://localhost:3000 Webbrick is great for development. There is Apache, nginx for [...]

Code Academy HTML5 notes

Part of Code Academy is an HTML5 class that happens on Monday nights. The first class was on a Wednesday. I went to that one, and I plan on going to more in the future. The lecturer is Shay Howe, a designer at Groupon.   2012-01-18_17.58.26 – HTML5 & CSS class Div and span Divs [...]

Code Academy Notes Week 1

Here are my notes from Code Academy week 1. 2012-01-12_08.14.41 Almost everything is lower-case Methods: def method_name to name Lists in Ruby Very important to be good with lists. landmarks = [ "Wrigley Field", "Millenium Park", "John Hancock Center" ] This is an array. You do not specify the size. Iterate through array: landmarks.each do [...]

Ruby Plans

One of my plans outside of Code Academy is to go through the Ruby “Pickaxe Book” by Dave Thomas. Someone gave me a copy of the edition for Ruby 1.9. I will write a short post about each chapter as I finish them. Image from Wikipedia  

Code Academy Week 2

I have been through my second week at Code Academy. We started using Rails and some of the Rails commands. So far it seems pretty nice. It is a lot easier than the Java frameworks I have worked with. I went to a lecture on  HTML5/CSS by Shay Howe. I may not make to every [...]

First Week At Code Academy

Here is my late blog post about my first week at Code Academy. First off, getting up that early is pretty tough. I am trying to become a morning person. So far I am doing okay. We use pair programming in class, and so far I have had a different partner each time. My partner [...]