Thursday September 29
Daily JS
Maths & Equality
var x = 2;
var y = 3;
var z = 4;
var a = '2';
var b = "two";
var c = x;
console.log(x == x); // true
console.log(x == y); // false
console.log(x == a); // true
console.log(a == b); // false
console.log(c == x); // true
// MOAR EQUALS
console.log(x === y); // false
console.log(x === a); // false
// Not Equals
console.log(x != x); // false
console.log(x != c); // false
console.log(x != y); // true
console.log(x != a); // false
// MOAR NOT EQUALS
console.log(x !== a); // true
console.log(x !== z); // true
// When you see console.assert fill in the _ to make the statement true
console.assert(x - y === -1);
console.assert(x + y === 5);
console.assert(z / x === 2);
console.assert(x * y === 6);
console.assert(x % y === 2);
// % value
// ˅
// 0r2
// |------
// 3 | 2
Standups
- What's going well
- What's not going well
- Share something not code
- What have you learned
Common Wins
- Repetition helps to build understanding!
- Enjoying the mental challenging x3!
- Figuring things out is empowering!
- Finishing feels awesome!
- Not too overwhelming!
- Lots of progress!
Common Troubles
- Completing as much as you'd like
- Deadlines can be overwhelming
- Time management & sleep x2
- Screensize === AHHHHH!!!
- Control thought process
- Comparing yourself
- ☕️ is lyfe
Tips
- Everybody's role, personality, and skills are vital
- Ask questions when you get stuck
- Make sure to take breaks! x2
Topics
- Chrome Inspector
vhandvwUnits- Flex Box
- Flex Parent vs Flex Children
display: flex flex-direction(Parent)- Primary Axis
flex-basis,flex-grow,flex-shrink(Child)flex-wrap(Parent)
- Flex Parent vs Flex Children
- Moving Flexbox Content
justify-contentvsalign-items(Parent)align-content(Parent)align-self(Child)
Flexbox Patterns
- Sticky Footer
- Layout Techniques
Inspiration
Tumblr Splash Page
Exercise & Lesson Code
https://github.com/TIY-TN-FEE-2016-fall/lesson-01-04
Lab
Daily JS
Arrays and Objects (all ES6 like)
var x = [1, 2, 3];
var y = [1, 2, 3];
var z = [x, y];
var a = {'something': x, another: 'hello'};
var b = {x, y};
var c = {x, y};
var d = c;
console.log(x === y);
console.log(x == y);
console.log(x[0]);
console.log(y[0] === x[0]);
console.log(z[0] === x);
console.log(a.another);
console.log(a['something']); // How far does it go?
console.log(b === c);
console.log(c === d);
/* Results (Printed statements from console.logs) */
//
//
//
//
//
//
//
//
//
Video
Content Driven Layouts with Flexbox
Exercise
Homework
https://github.com/TIY-TN-FEE-2016-fall/assignments/tree/master/04-surf-and-paddle