@@khutulka IIFEs and returns with newlines are practically the only real issues with semicolon-less code. IIFEs are super rare and linters and/or TypeScript can catch the return issue. 🤷🏻♂️ Semicolons can bite me.
@@funfunfunction many thanks for the explanation, ok the semicolons are not necessarily required and the team can decide it @ i personally like s-colons because it make for me easily to read blocks with many parentheses
import chai from "chai"; chai.should(); describe("Simple happiness test", () => { it("Should not wake up (hapiness is real)", (done) => { const statement : string = "I only follow two programmers on youtube." ; const favs : string[] = ["Fun Fun Function", "The Coding Train"]; if ( onVideo(favs[0]) && onVideo(favs[1]) ) { console.log(`${statement} When I first saw the thumbnail with ${favs[0]} and ${favs[1]} i had to pinch myself `); let myself = new Person("homemmakako"); myself.pinch( (wokeUp) => { if(wokeUp) //TODO maybe replace with ternary? console.log("only to find out it was all just a dream"); else console.log("but turns out it was just my dreams coming true :D"); //Expected log wokeUp.should.be.false; done(); }); } }); });
27:30 I wonder if recreating new objects on each each vector operation would be problem in JavaScript. I know in some languages creating many new objects in a short timespan can cause huge performance drops depending on how well the garbage collector / memory allocation and deallocation is optimized. Because of these problems many math libraries usually allow the user to avoid it. e.g. Java had huge problems with this in the past.
The dream team!
Awww
i guess Im quite randomly asking but do anyone know of a good site to stream newly released movies online ?
@Cannon Cohen i watch on Flixzone. You can find it by googling =)
@Cannon Cohen Lately I have been using FlixZone. Just search on google for it :)
As soon as I saw this in my feed, I knew everything was going to get pushed back and hour. These two are so awesome.
Didn't know that Robert Downey Jr. could code.
glad there's no semicolons, I stopped using them a while ago and I don't miss em.
let test = 42
(() => {/*code*/})()
@@khutulka ?
@@mr.mirror1213 try it out in the console
@@khutulka IIFEs and returns with newlines are practically the only real issues with semicolon-less code. IIFEs are super rare and linters and/or TypeScript can catch the return issue. 🤷🏻♂️
Semicolons can bite me.
I had to reply so many times to this example that I made video on the topic: ua-cam.com/video/Qlr-FGbhKaI/v-deo.html
// no semicolons
let test = 42
(() => {/*code*/})()
// Uncaught TypeError: 42 is not a function
@@RifqiPriyo inb4 in my example i have used an IIFE @ developer.mozilla.org/en-US/docs/Glossary/IIFE
I had to reply so many times to this example that I made video on the topic: ua-cam.com/video/Qlr-FGbhKaI/v-deo.html
@@funfunfunction many thanks for the explanation, ok the semicolons are not necessarily required and the team can decide it @ i personally like s-colons because it make for me easily to read blocks with many parentheses
Love from Italy for this!
What is your next coding video? Keep it up! Would you like to be UA-cam friends?
import chai from "chai";
chai.should();
describe("Simple happiness test", () => {
it("Should not wake up (hapiness is real)", (done) => {
const statement : string = "I only follow two programmers on youtube." ;
const favs : string[] = ["Fun Fun Function", "The Coding Train"];
if ( onVideo(favs[0]) && onVideo(favs[1]) ) {
console.log(`${statement} When I first saw the thumbnail with ${favs[0]} and ${favs[1]} i had to pinch myself `);
let myself = new Person("homemmakako");
myself.pinch( (wokeUp) => {
if(wokeUp) //TODO maybe replace with ternary?
console.log("only to find out it was all just a dream");
else
console.log("but turns out it was just my dreams coming true :D"); //Expected log
wokeUp.should.be.false;
done();
});
}
});
});
Watching Daniel shiffman watching Daniel shiffman
Looking like iron man
27:30 I wonder if recreating new objects on each each vector operation would be problem in JavaScript. I know in some languages creating many new objects in a short timespan can cause huge performance drops depending on how well the garbage collector / memory allocation and deallocation is optimized. Because of these problems many math libraries usually allow the user to avoid it. e.g. Java had huge problems with this in the past.
Does anyone else here that that MPJ has a bit of a Johnny Depp vibe/look?
Is this RDJ??
I guess I am the first one
yes
no
The fact you're not using a separate script is a little fastidious
Dude on the right of thumbnail of video looked like Robert Downey Junior
I love you both!!
The dream crossover
Why you look like having nervous 😬
nice combo. I will watch it later! :)
Oh great team.
You two are great together! :D
top ten anime crossovers
I love that the UA-cam comment algo marked this comment as spam 😂
Tony Stark......🥰🥰🥰