Refactoring Code | Rock Paper Scissors | Web Dev | Javascript
Dave Gray
@davegrayteachescodeAbout
Web Development tutorials with full courses on HTML, CSS, JavaScript, React, Node.js and more! My goal is to help you learn how to build the web. Teaching helps me learn, too. I work full-time as a Solutions Architect / Developer and part-time as a university web dev instructor. Thank you for subscribing, supporting my channel and sharing the videos you think may help others. Keep striving for progress over perfection. And a little progress every day goes a very long way. Milestones: July 20, 2020 - 1st video Jan 1, 2021 - 1k subs April 2021 - 4k watch hours Nov 2021 - 10k subs Jan 21, 2022 - Video at 100k views Feb 16, 2022 - 100k watch hours Feb 19, 2022 - 1m views Dec 13, 2022 - 100k subs Dec 2022 - Over 1m views in 1 month April 7, 2023 - 10m views May 26, 2023 - 1m watch hours Sept 22, 2023 - Video at 1m views Dec 25, 2023 - 250k subs
Latest Posts
Video Description
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap In this video we refactor our Rock, Paper, Scissors code two times. We take our first version and refactor it with a loop and an array. Then, we continue refactoring code by updating the entire application to a functional approach. ▶ This video is part of the JavaScript Tutorials for Beginners Playlist found here: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Oi6xNtL_fwCrwpuqylMsgT ✅ Quick Concepts outline: Refactoring Code: Rock, Paper, Scissors • Comparing version 1 and version 2 • Adding a loop • Adding an array • Eliminating the reload • Testing our code • Comparing version 2 and version 3 • A functional approach 📺 Here's the refactored code for each version: Gist for Rock, Paper, Scissors version 1: https://gist.github.com/gitdagray/38322a7141f4236e050086e7053febb7 Gist for Rock, Paper, Scissors version 2 (add loop and array): https://gist.github.com/gitdagray/a709dba6c46fcd2b239a8a5679af4e0e Gist for Rock, Paper, Scissors version 3 (with functions): https://gist.github.com/gitdagray/c33ef93ba4c18aa3d123c26be23d539a 📺 More Beginner JS Videos: freeCodeCamp: https://youtu.be/PkZNo7MFNFg Traversy Media: https://youtu.be/hdI2bqOjy3c The Net Ninja: https://youtu.be/iWOYAxlnaww ✅ Follow Me: Twitter: https://twitter.com/yesdavidgray Reddit: https://www.reddit.com/user/DaveOnEleven Medium: https://medium.com/@davegray_86804 #rock #paper #scissors
Upgrade Your Gear Carrying
AI-recommended products based on this video




















