dwyl / learn-redux

:boom: Comprehensive Notes for Learning (how to use) Redux to manage state in your Web/Mobile (React.js) Apps.
GNU General Public License v2.0
446 stars 42 forks source link

How long do the Egghead.io Redux Videos Take (Total Elapsed Time)? #51

Closed nelsonic closed 6 years ago

nelsonic commented 6 years ago

I'm busy writing a post on how long it takes to learn React, Redux, Immutable.js, Flow etc. So, I need to know what the total running time is for the videos.

The duration of each video is shown next to the clock icon in the list of videos: https://egghead.io/lessons/javascript-redux-the-single-immutable-state-tree image

I could sit and manually add them up using mental arithmetic (or a calculator). But where's the fun in that?

nelsonic commented 6 years ago

Script

  var len = document.getElementsByClassName('index__clockIcon__3s3nE').length; // number of vids
  var sum = 0;
  for(var i = 0; i < len; i++){
    var parts = document.getElementsByClassName('index__clockIcon__3s3nE')[0]
      .nextElementSibling.innerHTML.split(":"); // time value is next DOM element to the clock icon.
    var m = parseInt(parts[0], 10) * 60; // multiply the minute figure by 60 sec.
    var s = parseInt(parts[1], 10);
    sum = sum + m + s;
  }
console.log(sum / 60); // we accumulated the time in seconds so divide by 60. ;-)

image

Result: 66 minutes

Note: you can alter the playback speed to 1.5 or even double speed. But I highly doubt a complete beginner is going to do that and still actually learn anything! 🙄

deadcoder0904 commented 6 years ago

Fun fact - Egghead teaches about Development & Security & its own website isn't secure.

Anyone can download their videos for free using youtube-dl

youtube-dl https://egghead.io/courses/getting-started-with-redux

When I told them, there was no response 😞

nelsonic commented 6 years ago

@deadcoder0904 Yeah, I suspect they are making "enough" money to not care if people download. 🤔 (I downloaded the videos when I was learning so I could watch them offline ...)

Good on you for reporting it to them. 👍

newswim commented 6 years ago

wow

Wow. Incredible that they didn't do anything.. but yeah, good on you for reporting it!

@nelsonic, it looks like they add the runtime for each course

screen shot 2017-09-27 at 3 20 57 pm