Rap just make me anxious, and acid made me crazy
Them squares just made me looser and that wax just made me lazy
And I still make this song, and I'ma make another
If you ever actually hit me, better watch out for my brother
Ali Abdaal: https://youtu.be/ukLnPbIffxE
https://intelalearning.wordpress.com
https://www.pearsoned.com/three-simple-research-based-ways-to-ace-a-test
Ali Abdaal: https://youtu.be/Z-zNHHpXoMM
Happiest Career:
Ticketmaster Office
*thanks Vonds
Text
source: mdn
not that kind...
<h1> MOST IMPORTANT </h1>
<h2> .............. </h2>
<h3> .............. </h3>
<h4> .............. </h4>
<h5> .............. </h5>
<h6> .............. </h6>
<p> Paragraph </p>
<span> Short text </span>
<pre> Preserves Whitespace </pre>
<br>
<hr>
<em> Stress Emphasis </em>
<strong> Strong Importance </strong>
<ol>
<li> Item 1 </li>
<li> Item 2 </li>
</ol>
<ul>
<li> Item 1 </li>
<li> Item 2 </li>
</ul>
<div> </div>
<section> </section>
<article> </article>
<aside> </aside>
<header> </header>
<footer> </footer>
It is best practice to put CSS in it's own file and link to it from the <head> !
<link rel="stylesheet" href="css/style.css">
p{
color: red;
font-weight: bold;
}
p{
color: red;
font-weight: bold;
}
p{
color: red;
font-weight: bold;
}
p{
color: blue;
}
What comes below, can override what came above
h1{
color: red;
}
h2{
color: #FF0000;
}
p{
color: rgba(255,0,0,1);
}
span{
color: hsla(0, 100%, 50%,1);
}
<head>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;
400;700&display=swap" rel="stylesheet">
</head>
p{
font-family: 'Source Sans Pro', 'Helvetica' sans-serif;
}
html
css
<head>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;
400;700&display=swap" rel="stylesheet">
</head>
p{
font-family: 'Source Sans Pro', 'Helvetica' sans-serif;
font-weight: 700;
}
html
css
https://lmgtfy.com/?q=italicize+text+html+mdn&s=d
section > p {
color: red;
}
<section>
<p>Hello, Twitch!</p>
</section>
section p {
color: red;
}
<section>
<article>
<p>Hello, Twitch!</p>
</article>
</section>
p + p {
color: red;
}
<section>
<p>Hello, Twitch!</p>
<p>Hello, Youtube!</p>
</section>
#zebra {
color: red;
}
Only one id with the same value per document
<section>
<p>Hello, Twitch!</p>
<p id="zebra">Hello, Youtube!</p>
</section>
.bob {
color: red;
}
Multiple with same value allowed per document
<section>
<p class="robot">Hello, Twitch!</p>
<p id="zebra" class="bob">Hello, Youtube!</p>
<p class="bob">Goodbye, Mixer!</p>
</section>
#pizza .jumanjiOriginalMovie {
color: red;
}
<section id="pizza">
<p class="jumanjiOriginalMovie">Hello, Twitch!</p>
<p id="car" class="hello">Hello, Youtube!</p>
<p class="goodbye">Goodbye, Mixer!</p>
</section>
#dietCoke p.dominosPizza.bob {
color: red;
}
<section id="dietCoke">
<p class="robot unicorn">Hello, Twitch!</p>
<p id="zebra" class="bob dominosPizza">Hello, Youtube!</p>
<p class="bob">Goodbye, Mixer!</p>
</section>
#dietCoke #zebra {
color: red !important;
}
<section id="dietCoke">
<p class="robot unicorn">Hello, Twitch!</p>
<p id="zebra" class="bob dominosPizza">Hello, Youtube!</p>
<p class="bob">Goodbye, Mixer!</p>
</section>
not that kind...
By css-tricks
vs.
Everything as a percentage
EMs & REM
html{
font-size: 62.5%;
}
section{
font-size: 20px;
}
p{
font-size: 1em
}
vs.
p{
font-size: 1rem;
}
<section>
<p>Spam I can do this in chat</p>
</section>
Font size of the parent, in the case of typographical properties like font-size, and font size of the element itself, in the case of other properties like width.
- mdn
@media all and (max-width: 600px) {
h1 {
color: blue;
}
}
Syntax: "Spelling and grammar" rules of a programming language.
Syntax: "Spelling and grammar" rules of a programming language.
if (age > 18){
console.log("You are an adult")
}
9 === 9 //true
7 === 3 //false
"Hello" === "Hello" //true
if(condition is true) {
//Do cool stuff
}
if(condition is true) {
//Do this cool stuff
}else if(condition is true){
//Do this other cool stuff
}else{
//Default cool stuff
}
const pizza = "Dominos"
if (pizza === "Papa Johns") {
console.log("Scram!")
} else if(pizza === "Dominos") {
console.log("All aboard the train to flavor town")
} else {
console.log("What are you even doing with your life?")
}
if (name === "Leon" && status === "Ballin"){
//Wink at camera
}
if (day === "Saturday" || day === "Sunday"){
//It is the weekend
}
function name(parameters){
//body
}
//call
name(arguments)
function yell(word){
alert(word)
}
yell("HELLO")
function yell(word, otherWord){
alert(word)
alert(otherWord)
}
yell("HELLO","GOODBYE")
for ([initialExpression]; [conditionExpression]; [incrementExpression]){
//do stuff
}
for (let i = 1; i < 5; i++) {
console.log(i)
}
let count = 0
while(count < 5){
console.log(count)
count++
}
let newArr = new Array()
let newArr = []
newArr = ['Zebra',true,21]
newArr = ['Zebra',,true,21]
console.log( newArr[0] ) //Zebra
console.log( newArr[1] ) //undefined
console.log( newArr[2] ) //true
console.log( newArr[3] ) //21
newArr = ['Zebra',,true,21]
newArr[1] = 'Bob'
console.log( newArr )
// ['Zebra','Bob',true,21]
let cars = ['Honda', 'Toyota', 'Ford', 'Tesla']
let nums = [1,2,3]
cars = nums
console.log( cars ) //[1,2,3]
console.log( newArr.length ) //4
let bestColors = ['green','blue','yellow','black']
for(let i = 0; i < bestColors.length;i++){
console.log( bestColors[i] )
}
let bestColors = ['green','blue','yellow','black']
bestColors.forEach((x,i)=> console.log(x))
let bestRappers2020 = ['6ix9ine','Polo G','6ix9ine']
let removed = bestRappers2020.shift()
console.log( bestRappers2020 ) // ['Polo G', '6ix9ine']
let bestRappers2020 = ['Polo G','6ix9ine']
let removedAgain = bestRappers2020.pop()
console.log( bestRappers2020 ) // ['Polo G']
let bestRappers2020 = ['Polo G']
let removed = bestRappers2020.unshift('Dylan')
console.log( bestRappers2020 ) // ['Dylan','Polo G']
let bestRappers2020 = ['Dylan','Polo G']
let removed = bestRappers2020.push('Dylan')
console.log( bestRappers2020 ) // ['Dylan','Polo G','Dylan']
let bestRappers2020 = ['Dylan','Polo G','Dylan']
let bestRappersAllTime = bestRappers2020.map(x => 'Dylan')
bestRappersAllTime.unshift('Dylan')
bestRappersAllTime.push('Dylan')
console.log( bestRappersAllTime )
// ['Dylan','Dylan','Dylan', 'Dylan', 'Dylan']
let stopwatch = {}
stopwatch.currentTime = 12
stopwatch.tellTime = function(time){
console.log(`The current time is ${time}.`)
}
stopwatch.tellTime(stopwatch.currentTime)
How much money you got? How many problems you got? How many people done doubted you? Left you out to rot?
function MakeCar(carMake,carModel,carColor,numOfDoors){
this.make = carMake
this.model = carModel
this.color = carColor
this.doors = numOfDoors
this.honk = function(){
alert('BEEP BEEP FUCKER')
}
this.lock = function(){
alert(`Locked ${this.doors} doors!`)
}
}
let hondaCivic = new MakeCar('Honda','Civic','Silver', 4)
let teslaRoadster = new MakeCar('Tesla','Roadster', 'Red', 2)
let teslaRoadster = new MakeCar('Tesla','Roadster', 'Red', 2)
console.log( teslaRoadster.bluetooth ) //undefined
MakeCar.prototype.bluetooth = true
console.log( teslaRoadster.bluetooth ) //true
let teslaRoadster = new MakeCar('Tesla','Roadster', 'Red', 2)
console.log( teslaRoadster.doors.toString() ) // "2" not 2
class MakeCar{
constructor(carMake,carModel,carColor,numOfDoors){
this.make = carMake
this.model = carModel
this.color = carColor
this.doors = numOfDoors
}
honk(){
alert('BEEP BEEP FUCKER')
}
lock(){
alert(`Locked ${this.doors} doors!`)
}
}
let hondaCivic = new MakeCar('Honda','Civic','Silver', 4)
let teslaRoadster = new MakeCar('Tesla','Roadster', 'Red', 2)
Classes are like templates for objects!
fetch("https://dog.ceo/api/breeds/image/random")
.then(res => res.json()) // parse response as JSON
.then(data => {
console.log(data)
})
.catch(err => {
console.log(`error ${err}`)
});
fetch(url)
.then(res => res.json()) // parse response as JSON
.then(data => {
console.log(data)
})
.catch(err => {
console.log(`error ${err}`)
});
const url = 'https://www.thecocktaildb.com/api/json/v1/1/search.php?s=margarita'
Made it easier to add new stuff
Made it easier to read through what was already coded
And made it so you were not afraid to make changes
Music & Light Warning - Next Slide
Music & Light Warning - Next Slide
*Nerds shaking violently
Music & Light Warning - Next Slide
SIMPLE, PREDICTABLE, MANAGEABLE
AKA
Music & Light Warning - Next Slide
polymorphism allows us to override a method in every child class so it will do what we want
Music & Light Warning - Next Slide
Helps you to split the complexity your software project into manageable parts
polymorphism allows us to override a method in every child class so it will do what we want
!checklist
Bootcamper!
One of the most important things you will ever do for your career
NOW WITH TWO TABS!: Google Sheet
Custom Resume, Cover Letter, and Story
Custom everything plus, tweets, blog, and project
Tie your past to your present and show you can code
Description (one paragraph)
Wireframe (wireframe.cc, figma, balsamiq)
*Every Company Is Wildly Different
WHAT ARE THE STEPS IN THIS PROCESS?
Find EVERYTHING about their process!
Glassdoor
Github
Blind
LET THEM DIG!
Do: Start prepping THE BANK
Do: Complete Your Professional Links
READ: Modern Javascript For Dinosaurs
WATCH: Node.js Crash Course (just get through it)