Let’s pair program gravity simulation (using JavaScript and p5.js, with Dan Shiffman)

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 41

  • @gregfletcher2360
    @gregfletcher2360 4 роки тому +28

    The dream team!

    • @funfunfunction
      @funfunfunction  4 роки тому +3

      Awww

    • @cannoncohen7038
      @cannoncohen7038 3 роки тому

      i guess Im quite randomly asking but do anyone know of a good site to stream newly released movies online ?

    • @eliseomartin8568
      @eliseomartin8568 3 роки тому

      @Cannon Cohen i watch on Flixzone. You can find it by googling =)

    • @beaulandon3714
      @beaulandon3714 3 роки тому

      @Cannon Cohen Lately I have been using FlixZone. Just search on google for it :)

  • @onedimensionalchess4373
    @onedimensionalchess4373 4 роки тому +11

    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.

  • @eugeneganshin2934
    @eugeneganshin2934 4 роки тому +2

    Didn't know that Robert Downey Jr. could code.

  • @ridespirals
    @ridespirals 4 роки тому +6

    glad there's no semicolons, I stopped using them a while ago and I don't miss em.

    • @khutulka
      @khutulka 4 роки тому +1

      let test = 42
      (() => {/*code*/})()

    • @mr.mirror1213
      @mr.mirror1213 4 роки тому

      @@khutulka ?

    • @khutulka
      @khutulka 4 роки тому

      ​@@mr.mirror1213 try it out in the console

    • @eflat__major
      @eflat__major 4 роки тому

      @@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
      @funfunfunction  4 роки тому +1

      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

  • @khutulka
    @khutulka 4 роки тому +2

    // no semicolons
    let test = 42
    (() => {/*code*/})()
    // Uncaught TypeError: 42 is not a function

    • @khutulka
      @khutulka 4 роки тому

      ​@@RifqiPriyo inb4 in my example i have used an IIFE @ developer.mozilla.org/en-US/docs/Glossary/IIFE

    • @funfunfunction
      @funfunfunction  4 роки тому +1

      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

    • @khutulka
      @khutulka 4 роки тому

      @@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

  • @simoneicardi3967
    @simoneicardi3967 4 роки тому +2

    Love from Italy for this!

  • @BuildWithAITools
    @BuildWithAITools 4 роки тому

    What is your next coding video? Keep it up! Would you like to be UA-cam friends?

  • @homemmakako3073
    @homemmakako3073 4 роки тому

    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();
    });
    }
    });
    });

  • @SogMosee
    @SogMosee 4 роки тому +1

    Watching Daniel shiffman watching Daniel shiffman

  • @usamatahseenulhaque9125
    @usamatahseenulhaque9125 4 роки тому +1

    Looking like iron man

  • @devluz
    @devluz 4 роки тому

    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.

  • @smoothbeak
    @smoothbeak 4 роки тому

    Does anyone else here that that MPJ has a bit of a Johnny Depp vibe/look?

  • @harcoptoluwap3998
    @harcoptoluwap3998 4 роки тому

    Is this RDJ??

  • @TheNerdyDev
    @TheNerdyDev 4 роки тому +3

    I guess I am the first one

  • @vympel2732
    @vympel2732 4 роки тому

    The fact you're not using a separate script is a little fastidious

  • @bitbyte8177
    @bitbyte8177 4 роки тому

    Dude on the right of thumbnail of video looked like Robert Downey Junior

  • @andrathema4
    @andrathema4 4 роки тому +1

    I love you both!!

  • @saarthakpande5455
    @saarthakpande5455 4 роки тому +1

    The dream crossover

  • @juanyang838
    @juanyang838 4 роки тому

    Why you look like having nervous 😬

  • @armatheos
    @armatheos 4 роки тому

    nice combo. I will watch it later! :)

  • @santosh984970
    @santosh984970 4 роки тому

    Oh great team.

  • @smoothbeak
    @smoothbeak 4 роки тому

    You two are great together! :D

  • @Y390R
    @Y390R 4 роки тому

    top ten anime crossovers

    • @funfunfunction
      @funfunfunction  4 роки тому

      I love that the UA-cam comment algo marked this comment as spam 😂

  • @LabhamJain
    @LabhamJain 4 роки тому +1

    Tony Stark......🥰🥰🥰