- What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?
- Putting multiple files into one. Like taking several CSS files and putting them all into one CSS file so that only one HTTP request has to be made for a single stylesheet
- What does it mean to precompile files? What does this have to do with coffeescript and sass files?
- Sass and CoffeeScript are written in .scss files and .coffee files. They are precompiled which runs thems through an interpreter outputting regular CSS and JavaScript files for the application to use.
- What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?
- To minify files is to remove the whitespace from those files. You would want to do this because over a lot of http requests, the size and bandwidth that whitespace is taking is marginal at first but begins to
- When and why would you rebase?
- To clean up your commits and get rid of redundant or pointless commits
- What are the steps to do a basic rebase via the command line?
- git rebase -i which open atom(on my computer) then choose which commits to delete and which to leaved picked
- Our cart in Little Shop is not stored in the database. How does its state persist across requests?
- through an instance variable and session[:cart]
- Name two objects used in Rails that can be used to track state of the user across requests.
- sessions and cookies and the database
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
Each test where routerLink is present | |
import { RouterModule } from '@angular/router'; | |
import { APP_BASE_HREF } from '@angular/common'; | |
TestBed.configureTestingModule({ | |
declarations: [ NavComponent ], | |
providers: [ | |
{provide: APP_BASE_HREF, useValue: '/'}, | |
{ provide: AuthService, useValue: mockAuthService } |
OlderNewer