Skip to content

Instantly share code, notes, and snippets.

View victorclee's full-sized avatar
🎉

Victor Lee victorclee

🎉
View GitHub Profile
def thing
puts "Heyo!"
end

TIL - Things I Learned 20170430

Today I learned how to write a method

def method_name
  puts 'runnable code for ruby'

Today was also the first day that I learned running Ruby on Rails

TIL - Things I Learned 20170501

Oh wow

Today, I learned how to create database on Rails. There was a lot of moving parts, and I'm sure all of our heads are spinning by now... And we learned how to CRUD: Create, Read, Update, Delete the database on the Terminal.

Two weeks from today, this is all gonna become muscle memory... Scary and awesome!

TIL - Things I Learned 20170502

SQL and non SQL databases

SQL databases are relational, they are more organized, but also larger in file size. Resembles Excel spreadsheets. Non SQL databases are not relational, they are like a bunch of classes or hashes.

SASS

We also learned that SASS is like CSS but with logic

Gemfile

TIL - Things I Learned

on Wednesday 05/02/2017

We talked about...

Params: query params and url segment params

  • You can only use params in the controller
  • Params is a hash, given to you by Rails
  • You should use Ruby logic as much as you can in the controller
  • All params are initailly treated as strings
  • Your method name should not be the same as your local variable

TIL - Things I Learned

on Thursday 05/04/2017

We talked about...

Forms params:

  • A form is a two-part operation

Something else...

  • We played around with a security app and saw a funny as an result! It's a good app to understand how query params, url segment params, and forms params flow.
  • Use Postman to do a delete request

Today was kinda rough... need to review today's exercises!

TIL - Things I Learned 20170507

Today is Sunday! Start of another week! We are starting out our third week of in-person class. Although we are only three weeks in, but adding on with the 4 weeks of prework, oh man, it feels a lot longer than that! So far, it's been pretty challenging, considering how packed my days have become now... But! Eyes on the prize! We can do this!

Restful Routing

Quoting from http://restfulrouting.com/#introduction, there are Golden Seven actions.

INDEX

SHOW

NEW

TIL - Things I Learned. Tuesday 05/09/2017

bootstrap 5.1.0

We installed bootstrap 5.1.0!

navbar

We installed navbars to our cookbook, contact, and mini capstone app. We also learned how to customize the looks of it.

CSS font stack

A cool website to install fonts for your app

TIL - Things I Learned. Wednesday 05/10/2017

Cool Tech!

  1. Nokogiri
  2. Weather API
  3. Accessibility gem: webvtt

Database

We learned the basics about database and its structure. We also learned database migration We can add, edit, delete columns of the database table

TIL - Things I Learned. Thursday 05/11/2017

Cool Tech!

  1. Rails Image Uploaders
  2. Authorization Gems
  3. Space Bunny

SQL and Postico

We learned SQL syntax and practiced it in Postico.

Useful resources