Learn to write good code with a senior developer

Scrimba ยท Beginner ยท๐Ÿ›ก๏ธ AI Safety & Ethics ยท4y ago
๐ŸŽ“ View our courses: https://scrimba.com/links/all-courses Senior Developer Michael is here to share his tips on how to write top-notch code, no matter whether you're just starting out or a few years into your development career. We'll look at: โญ๏ธ What is "good code"? โญ๏ธ Naming things (it's hard) โญ๏ธ Writing useful commit messages โญ๏ธ Magic numbers ๐Ÿช„ โญ๏ธ To comment or not to comment? โญ๏ธ Refactoring โญ๏ธ Spacing and standardization โญ๏ธ Common bad practices โญ๏ธ The difference between junior and senior code ๐Ÿ’ปCheck out Scrimbaโ€™s interactive learning platform: Scrimba: https://scrimba.com/ ๐ŸฆSay hi on Twitter: Scrimba: https://twitter.com/scrimba Leanne: https://twitter.com/RybaLeanne Michael: https://twitter.com/alanmynah 0:00 - Intro 2:21 - How to decide on a variable name? 7:30 - Should I create click events in javascript or HTML? 9:10 - Clean code vs clever code vs readable code 12:21 - Variable names that later looks like a typo 13:08 - Struggle to understand the difference between localStorage and sessionStorage 13:55 - Whatโ€™s the best practice to naming function? 15:31 - Should functions only do one thing? 16:47 - I have completed the frontend course, where should I go next? 17:23 - To comment or not to comment? 23:46 - What about following a style guide (google, airbnb for js) 25:33 - Writing useful commit messages 27:43 is a doDodoDonation a good name? 29:18 - Best practices when using svelte to send a post request to my supabse server 31:33 - Magic numbers?! 34:53 - How to approach refactoring 37:02 The importance of testing 38:18 - Common bad practices 46:00 - innerHTML or innerTEXT? 47:45 - Should you use automation frameworks along side your unit test like Cypress and Selenium? 49:42 - Facing a project that is plagued by bad practices? 52:14 - Iโ€™ve heard TypeScript helps you write better code 53:11 - Whatโ€™s the best state management, redux or baltic? 54:08 - Is it wrong to call Buttons, BTN? 55:48 - Where to find good sag tags logo? 5
Watch on YouTube โ†— (saves to browser)
Sign in to unlock AI tutor explanation ยท โšก30

Playlist

Uploads from Scrimba ยท Scrimba ยท 0 of 60

โ† Previous Next โ†’
1 CSS Grid Course: Learn the Basics in 3 Minutes
CSS Grid Course: Learn the Basics in 3 Minutes
Scrimba
2 CSS Grid Course: Positioning Items
CSS Grid Course: Positioning Items
Scrimba
3 CSS Grid Course: Why Learn It And How It Compares To Bootstrap
CSS Grid Course: Why Learn It And How It Compares To Bootstrap
Scrimba
4 CSS Grid Course: auto-fit & minmax
CSS Grid Course: auto-fit & minmax
Scrimba
5 CSS Grid Course: Implicit Rows
CSS Grid Course: Implicit Rows
Scrimba
6 CSS Grid Course: Fraction Units And Repeat
CSS Grid Course: Fraction Units And Repeat
Scrimba
7 CSS Grid Course: Justify Items and Align Items
CSS Grid Course: Justify Items and Align Items
Scrimba
8 CSS Grid Course: An Awesome Image Grid
CSS Grid Course: An Awesome Image Grid
Scrimba
9 CSS Grid Course: Named Lines
CSS Grid Course: Named Lines
Scrimba
10 CSS Grid Course: auto-fit vs auto-fill
CSS Grid Course: auto-fit vs auto-fill
Scrimba
11 CSS Grid Course: Justify Content and Align Content
CSS Grid Course: Justify Content and Align Content
Scrimba
12 CSS Grid Course: Template areas
CSS Grid Course: Template areas
Scrimba
13 27. Setting up the structure - Responsive CSS Tutorial
27. Setting up the structure - Responsive CSS Tutorial
Scrimba
14 25. Making the navigation responsive - Responsive CSS Tutorial
25. Making the navigation responsive - Responsive CSS Tutorial
Scrimba
15 36. Playing with the title's position and negative margins - Responsive CSS Tutorial
36. Playing with the title's position and negative margins - Responsive CSS Tutorial
Scrimba
16 31. Starting the CSS for our page - Responsive CSS Tutorial
31. Starting the CSS for our page - Responsive CSS Tutorial
Scrimba
17 26. Taking a look at the rest of the project - Responsive CSS Tutorial
26. Taking a look at the rest of the project - Responsive CSS Tutorial
Scrimba
18 15. Spacing out the columns - Responsive CSS Tutorial
15. Spacing out the columns - Responsive CSS Tutorial
Scrimba
19 33. Starting to think mobile first - Responsive CSS Tutorial
33. Starting to think mobile first - Responsive CSS Tutorial
Scrimba
20 22. Making our navigation look good - Responsive CSS Tutorial
22. Making our navigation look good - Responsive CSS Tutorial
Scrimba
21 37. Changing image size with object-fit - Responsive CSS Tutorial
37. Changing image size with object-fit - Responsive CSS Tutorial
Scrimba
22 44. Module Wrap up - Responsive CSS Tutorial
44. Module Wrap up - Responsive CSS Tutorial
Scrimba
23 16. Controlling the vertical position of flex items - Responsive CSS Tutorial
16. Controlling the vertical position of flex items - Responsive CSS Tutorial
Scrimba
24 39. Setting up the widgets and talking breakpoints - Responsive CSS Tutorial
39. Setting up the widgets and talking breakpoints - Responsive CSS Tutorial
Scrimba
25 42. Setting up the About Me page - Responsive CSS Tutorial
42. Setting up the About Me page - Responsive CSS Tutorial
Scrimba
26 35. Changing the visual order with flexbox - Responsive CSS Tutorial
35. Changing the visual order with flexbox - Responsive CSS Tutorial
Scrimba
27 23. Adding the underline - Responsive CSS Tutorial
23. Adding the underline - Responsive CSS Tutorial
Scrimba
28 21. Using flexbox to start styling our navigation - Responsive CSS Tutorial
21. Using flexbox to start styling our navigation - Responsive CSS Tutorial
Scrimba
29 20. Creating a navigation - Responsive CSS Tutorial
20. Creating a navigation - Responsive CSS Tutorial
Scrimba
30 40. Using a new pseudo class to wrap up the homepage - Responsive CSS Tutorial
40. Using a new pseudo class to wrap up the homepage - Responsive CSS Tutorial
Scrimba
31 43. Fixing up some loose ends - Responsive CSS Tutorial
43. Fixing up some loose ends - Responsive CSS Tutorial
Scrimba
32 32. Starting the layout. Looking at the big picture - Responsive CSS Tutorial
32. Starting the layout. Looking at the big picture - Responsive CSS Tutorial
Scrimba
33 24. A more complicated navigation - Responsive CSS Tutorial
24. A more complicated navigation - Responsive CSS Tutorial
Scrimba
34 28. Feature article structure - Responsive CSS Tutorial
28. Feature article structure - Responsive CSS Tutorial
Scrimba
35 34. Styling the featured article - Responsive CSS Tutorial
34. Styling the featured article - Responsive CSS Tutorial
Scrimba
36 18. Making layout responsive with flex direction - Responsive CSS Tutorial
18. Making layout responsive with flex direction - Responsive CSS Tutorial
Scrimba
37 19. flex direction explained - Responsive CSS Tutorial
19. flex direction explained - Responsive CSS Tutorial
Scrimba
38 41. Creating the recent posts page - Responsive CSS Tutorial
41. Creating the recent posts page - Responsive CSS Tutorial
Scrimba
39 17. Media Query basics - Responsive CSS Tutorial
17. Media Query basics - Responsive CSS Tutorial
Scrimba
40 30. Home Page. HTML for the aside - Responsive CSS Tutorial
30. Home Page. HTML for the aside - Responsive CSS Tutorial
Scrimba
41 38. Styling recent articles for large screens - Responsive CSS Tutorial
38. Styling recent articles for large screens - Responsive CSS Tutorial
Scrimba
42 29. The home page.  HTML for the recent articles - Responsive CSS Tutorial
29. The home page. HTML for the recent articles - Responsive CSS Tutorial
Scrimba
43 10. ems and rems   an example - Responsive CSS Tutorial
10. ems and rems an example - Responsive CSS Tutorial
Scrimba
44 1. Starting to think responsively - Responsive CSS Tutorial
1. Starting to think responsively - Responsive CSS Tutorial
Scrimba
45 4. Controlling the width of images - Responsive CSS Tutorial
4. Controlling the width of images - Responsive CSS Tutorial
Scrimba
46 5. min width and max width - Responsive CSS Tutorial
5. min width and max width - Responsive CSS Tutorial
Scrimba
47 3  CSS Units.  Percentage - Responsive CSS Tutorial
3 CSS Units. Percentage - Responsive CSS Tutorial
Scrimba
48 11. Flexbox  refresher and setting up some HTML - Responsive CSS Tutorial
11. Flexbox refresher and setting up some HTML - Responsive CSS Tutorial
Scrimba
49 12. Basic Styles and setting up the columns - Responsive CSS Tutorial
12. Basic Styles and setting up the columns - Responsive CSS Tutorial
Scrimba
50 8. The Solution Rems - Responsive CSS Tutorial
8. The Solution Rems - Responsive CSS Tutorial
Scrimba
51 14. Setting the columns widths - Responsive CSS Tutorial
14. Setting the columns widths - Responsive CSS Tutorial
Scrimba
52 2  CSS Units - Responsive CSS Tutorial
2 CSS Units - Responsive CSS Tutorial
Scrimba
53 7. The problem with ems - Responsive CSS Tutorial
7. The problem with ems - Responsive CSS Tutorial
Scrimba
54 6. CSS Units. The em unit - Responsive CSS Tutorial
6. CSS Units. The em unit - Responsive CSS Tutorial
Scrimba
55 13. Adding the background color - Responsive CSS Tutorial
13. Adding the background color - Responsive CSS Tutorial
Scrimba
56 9. Picking which unit to use - Responsive CSS Tutorial
9. Picking which unit to use - Responsive CSS Tutorial
Scrimba
57 Tutorial to Learn Alpine JS - Full Course for Beginners
Tutorial to Learn Alpine JS - Full Course for Beginners
Scrimba
58 Guide To Algorithms in Javascript [Binary Search] - Full Course / Tutorial
Guide To Algorithms in Javascript [Binary Search] - Full Course / Tutorial
Scrimba
59 Learn UI Design [7 Fundamentals Tutorial] - Full Course for Beginners
Learn UI Design [7 Fundamentals Tutorial] - Full Course for Beginners
Scrimba
60 Javascript Tutorial for Beginners [From 0 to ES6+] - Full Course
Javascript Tutorial for Beginners [From 0 to ES6+] - Full Course
Scrimba

Related AI Lessons

โšก
AI + Formal Verification: The Final Form of Secure Software Development โ€“ Lessons from Vitalik Buterin
Learn how AI-assisted formal verification is revolutionizing secure software development, as discussed by Vitalik Buterin, and apply it to your own projects for enhanced security and optimization
Dev.to AI
โšก
The Zero Trust Blueprint, Rewritten for AI: A Field Guide for Entra and Intune Admins.
Learn how to apply Zero Trust security principles to AI systems using Microsoft Entra and Intune, and protect your organization's assets
Medium ยท Machine Learning
โšก
The Zero Trust Blueprint, Rewritten for AI: A Field Guide for Entra and Intune Admins.
Learn how to apply Microsoft's Zero Trust framework to AI with Entra and Intune, enhancing security and access control
Medium ยท Data Science
โšก
We Have No Clue What Goes On Inside AI's Brain. This $1.25 Billion Startup Is Trying To Find Out
Goodfire, a $1.25 billion startup, aims to solve AI's black box problem, making AI decision-making more transparent and trustworthy, crucial for high-stakes applications
Forbes Innovation

Chapters (25)

Intro
2:21 How to decide on a variable name?
7:30 Should I create click events in javascript or HTML?
9:10 Clean code vs clever code vs readable code
12:21 Variable names that later looks like a typo
13:08 Struggle to understand the difference between localStorage and sessionStorage
13:55 Whatโ€™s the best practice to naming function?
15:31 Should functions only do one thing?
16:47 I have completed the frontend course, where should I go next?
17:23 To comment or not to comment?
23:46 What about following a style guide (google, airbnb for js)
25:33 Writing useful commit messages
27:43 is a doDodoDonation a good name?
29:18 Best practices when using svelte to send a post request to my supabse server
31:33 Magic numbers?!
34:53 How to approach refactoring
37:02 The importance of testing
38:18 Common bad practices
46:00 innerHTML or innerTEXT?
47:45 Should you use automation frameworks along side your unit test like Cypress an
49:42 Facing a project that is plagued by bad practices?
52:14 Iโ€™ve heard TypeScript helps you write better code
53:11 Whatโ€™s the best state management, redux or baltic?
54:08 Is it wrong to call Buttons, BTN?
55:48 Where to find good sag tags logo?
Up next
Erfan Shayegani - Just Do It!? Computer-Use Agents Exhibit Blind Goal-Directedness
Cohere
Watch โ†’