- Define CRUD. CRUD is an acronym that stands for create, read, update and delete. These four words correspond to the verbs in HTTP. In order to have full CRUD functionality within a Sinatral app, the app must be able to do all four of these things.
- 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. i. Read '/tasks' & GET shows view of all tasks from index.erb ii. Read '/tasks/:id' & GET shows view of a specific task from show.erb iii. Create 'tasks/new' & GET makes form to create a new task in new.erb iv. Create '/tasks' & POST sends data to the server and redirect to '/tasks' v. Update '/tasks' & GET makes a form to input and update an existing task from edit.erb vi. Update '/tasks/:id/edit' & PUT sends data to the server to update existing task information vii. Delete '/tasks/:id' & Delete deletes existing information
- Came from food system - most recently managed operations for small food manufacturer in Boulder
- Ingredient production (agriculture)
- Ingredient prep (processing of ingredients prior to combining pieces)
#Git Commands
##git stash
- git stash is used to save the state of your working directory as well as your index directory.
- It also reverts you back to a clean directory at your HEAD commit.
##git stash apply
- git stash apply allows you to revert to a previous stash by either specicfying ie. git stash apply stash@{2}, which will take you back to the specified stash.
- Or, simply typing git stash apply will revert to your most recent stash.
### [grow food] - working title
### Pitch
This app would allow folks who are given vegetable/herb starts or seeds a way to
search/select a certain vegetableto see how it's grown and how to harvest it,
you can also search by vegetable get recipes that include it.
### Problem
- Add
gem 'rails_12factor'
to your Gemfile. This will add error logging and the ability for your app to serve static assets. bundle
- Run
RAILS_ENV=production rake db:create db:migrate db:seed
- Run
rake secret
and copy the output - From the command line:
export SECRET_KEY_BASE=output-of-rake-secret
- To precompile your assets, run
rake assets:precompile
. This will create a folderpublic/assets
that contains all of your assets. - Run
RAILS_ENV=production rails s
and you should see your app. - No need to have username and password in database.yml under production for running production locally unless you want those things.
Remember to clobber your assets (rake assets:clobber
) and re-precompile (rake assets:precompile
) if you make changes.
**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?" | |
Fast algorithms can take up a lot of memory, and vice versa. ie. merge sort takes up a ton of space but is much faster than insertion sort that is slower but also takes up less memory. This is a particularly important consideration if you are working with very large sets of data. Bubble sort can be twice as slow as insertion sort even if it has a smaller amount of data. | |
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you. |
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 maps directly to a file. A module is private until it is exported using module.exports and imported using require.
I used these elements and specified these styles to make this thing happen. I chose to use white text color because you can't see it if it's black. (duh). (When you write this make your actual description more meaningful...)
The readings and responses listed here should take you approximately 25 minutes.
To start this assignment, click the button in the upper right-hand corner that says Fork. This is now your copy of this document. Click the Edit button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
1. Do Experienced Programmers Use Google Frequently? by Umer Mansoor (10 min)
- Your key take-aways OR how you're going to implement specific points (minimum 2):