- What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
- concatenate - append files together, Merge multiple files into a single file. Easier for a machine to deal with loading a single file, rather than mulitple
- What does it mean to precompile files? What does this have to do with coffeescript and sass files?
- Precompile -> turn higher-level languages into their base languages (coffeescript -> javascript, sass -> css)
- What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
- Minifying files helps make the files more lightweight by removing whitespace. Making it not human readable probably helps with performance.
- Start up the server for Catch 'em All (rails s) and navigate to http://localhost:3000/assets/application.js. Then open up the code for application.js in your text editor. Why are these not the same?
- What is a manifest (in terms of the asset pipeline)? Wher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a skeleton for testing models including examples of validations, callbacks, | |
| # scopes, instance & class methods, associations, and more. | |
| # Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
| # | |
| # I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
| # so if you have any, please share! | |
| # | |
| # @kyletcarlson | |
| # | |
| # This skeleton also assumes you're using the following gems: |
- The Agile model is an iterative process, while the Waterfall is a sequential process
- A Waterfall model assumes we have full information at the beginning of a project, and that the project's characteristics won't change.
- The Agile method assumes that the unexpected will happen, that new information will be learned as the project progresses, and that the project will change over time.
- Define CRUD.
- Create, Read, Update, Delete. Gives us all the behavior to make a fully-functional web application
- 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"- displays all the current tasks with the:indexviewGET"/tasks/:id"- display a single task with the:showviewGET"/tasks/new"- display the form to create a new task with the:newviewPOST"/tasks"- write a task to the database, and redirect back to"/tasks"GET"/tasks/:id/edit"- display the form for editing an existing task with the:editviewPUT/PATCH"tasks/:id"- update a specific task in the database with new data, and display the edited task by redirecting back to"/tasks/:id"
NewerOlder