Skip to content

Instantly share code, notes, and snippets.

View jelaniwoods's full-sized avatar

Jelani Woods jelaniwoods

View GitHub Profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\W \[\033[01;34m\]$(parse_git_branch)\[\033[00m\] % '
@jelaniwoods
jelaniwoods / install-packages
Created April 13, 2023 14:54
something to test for docker images
#!/bin/sh
set -o errexit
if [ $# = 0 ]; then
echo >&2 "No packages specified"
exit 1
fi
# Set a runlevel to avoid invoke-rc.d warnings

Lecture Practice

Intro

Last week, we finally started to explore building web applications with the RPS RCAV project,

now we're finally putting together our HTML and Ruby knowledge.

Luckily for us, the process that every Rails app works is pretty formulaic. We just need to remember - R C A V (non-industry term)

  • Go through the 1-N or N-N exercise with them.

  • Go through the HTML recap slides with them — only until slide #19.

  • Start them on the Linkinbio project (they can work independently, you and Osha can answer questions): https://canvas.uchicago.edu/courses/41147/assignments/466764

  • They can start on the Ruby readings whenever they are done with Linkinbio.

  • At some point, emphasize that they need to open repls to play with the Ruby examples.

  • break 7:30~

1-N, N-N exercises

  • Bootstrap Demo
    • At least half the class for lab—
    • we’ll see how far we can get
    • README
      • how can we make our app, look like this—
      • we haven’t learned it so far, to reduce how many things we learned
      • but the apps we’ve built have looked bad, how to make them look good
    • Start up server, landing page
  • w/ link to target

AD1 Day 8

  • Lab time to catch up
    • a lot of students are in different spots, and so rather than demo part of msm-signin you can watch this recording
  • can work on msm-signin
  • start on assigned final project
  • BEFORE THAT though
    • I know some of you are very eager to work on in-class assignment or the final
    • I want to demo and introduce something that will, hopefully, be VERY HELPFUL to you in any future project
    • as well as, demo how to get started with your own idea

Very Best Debug

  • README
  • debug home page
    • Reading - Better Errors
      • banner
      • highlighted line
      • console
    • debug it
    • rails sample_data

AD1 Day 6

Refactoring MSM Queries

  • create the assignment
    • the starting point here is the ending point for msm-queries
    • take a few minutes to explore the solution
      • ask questions if anything is unclear or you struggled with a particular part of the assignment
      • maybe you did something different than what I did in the solutions, and I love to hear your approach to.
  • Adding data
    • now that our projects have databases, you may have noticed that is really hard to test our app when we don’t have any data

Day 5

Welcome to day 5 our halfway point

we’re dangerously close to learning another core concept about applications— Databases

Plan

Day 4

Intro

Welcome

You all learned and practiced some really important concepts for the hw due this week. You built your first real interactive dynamic rails applicaiton. not just a static html website, but a web app. congrats!

the goal for today is to solidify those fundamentals

Route -> Controller -> Action -> View