-
Define CRUD. All the functionality expected from a database application: create, read, update, delete
-
There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.
-
get /tasks shows all of the tasks
-
get /tasks/:id shows a single task
-
get /tasks/new show form to make a new task
-
post /tasks makes a new task
-
get /tasks/:id/edit shows form to update a task
-
put /tasks/:id updates a specific task
In previous GearUps, we've explored the ways in which we can unwittingly participate in behavior that alienates or perpetuates inequality and injustice in our workplaces and communities. What opportunities, if any, do you have to effectively challenge these issues when you encounter them? How can we use our relationships and daily interactions to effectively challenge cultural and systemic discrimination?
"Allyship" is when a person of a non-marginalized group (OR "a person of privilege") seeks to operate in solidarity with and support a marginalized group of people. Today, we will discuss some essays on the topic of allyship.
- 10 Things Every ‘Ally’ Needs to Remember
- White Anti-Racism: Living the Legacy
- [Emma Watson: Gender Equality is Your Issue Too](http://www.unwomen.org/en/news/stories/2014/9/emma-watson-gender-equality-i
## Setting Group Expectations | |
Group Member Names: | |
1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed? | |
Heidi: Cannot do Tuesday or Weds evening week 5, need to know in advance | |
Brain: Cannot do Mon evening week 5 | |
July: Cannot do Tuesday week 5 or Saturday daytime week 5 |
What's the total revenue for all items?
- SELECT sum(revenue) FROM items;
What's the average revenue for all items?
- SELECT avg(revenue) FROM items;
What's the minimum revenue for all items?
Use a different API key for each environment: test, development, production
In secrets.yml, there are tokens for each environment
In application.yml (from figaro), can set keys for different environments using figaro
rake secret
to get secret token, used to sign and decode cookies, put it in application.yml
Access it in secrets.yml
Add gem 'rails_12factor
to gemfile to get error messages
##Leap
- Responder 1 This person used nested ifs and return true/false. I think condensing the if statements into one makes for cleaner code, and it will already return true/false based on how it evaluates, so you wouldn't need to explicitly state it.
- Responder 2 This person has an if/else if/else structure where the if and else if both return true. They could condense that into one statement to DRY it out a bit, and assign it to a variable to get rid of the if/elses.
- Responder 3 This person did it the same way I did! I think it's a great implementation.
- Responder 4 This person has a 4 branch if/else statement. The branches that return the same value can be
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI) | |
**Step Two**: Fork this gist. | |
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?" | |
* Need to consider: space, time, type of data | |
*insertion - good for small sets of data/if it's mostly already sorted, compares what needs to be sorted | |
*bubble - slow, checks through every item, no bueno | |
*merge - multi-branch (splits array) recursive sort, fast and stable, not going to work with a ton of data if you are doing it in the browser |
When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.
Read Node.js, Require and Exports and Organize Your Code with RequireJS
- In the context of Node, what is a
module
? - A module is similar to a class in Ruby. It encapsulates a chunk of code that has related functions. Needs to be exported if it wil be used in a different file from the one it is defined in.
##How can we get mentors more invovled?
- Give them earlier notice of the projects being done and people's interests
- More accessible info about how to reach out to them
- Make info about students' projects easily accessible
##What should we change next module?
- Explain options earlier so we can think/plan what we want to do
- Tailor lessons based on what groups or individual people are doing
- Assign team leads to group projects