Podbean logo
  • Discover
  • Podcast Features
    • Podcast Hosting

      Start your podcast with all the features you need.

    • Podbean AI Podbean AI

      AI-Enhanced Audio Quality and Content Generation.

    • Blog to Podcast

      Repurpose your blog into an engaging podcast.

    • Video to Podcast

      Convert YouTube playlists to podcasts, videos to audios.

  • Monetization
    • Ads Marketplace

      Join Ads Marketplace to earn through podcast sponsorships.

    • PodAds

      Manage your ads with dynamic ad insertion capability.

    • Apple Podcasts Subscriptions Integration

      Monetize with Apple Podcasts Subscriptions via Podbean.

    • Live Streaming

      Earn rewards and recurring income from Fan Club membership.

  • Podbean App
    • Podcast Studio

      Easy-to-use audio recorder app.

    • Podcast App

      The best podcast player & podcast app.

  • Help and Support
    • Help Center

      Get the answers and support you need.

    • Podbean Academy

      Resources and guides to launch, grow, and monetize podcast.

    • Podbean Blog

      Stay updated with the latest podcasting tips and trends.

    • What’s New

      Check out our newest and recently released features!

    • Podcasting Smarter

      Podcast interviews, best practices, and helpful tips.

  • Popular Topics
    • How to Start a Podcast

      The step-by-step guide to start your own podcast.

    • How to Start a Live Podcast

      Create the best live podcast and engage your audience.

    • How to Monetize a Podcast

      Tips on making the decision to monetize your podcast.

    • How to Promote Your Podcast

      The best ways to get more eyes and ears on your podcast.

    • Podcast Advertising 101

      Everything you need to know about podcast advertising.

    • Mobile Podcast Recording Guide

      The ultimate guide to recording a podcast on your phone.

    • How to Use Group Recording

      Steps to set up and use group recording in the Podbean app.

  • All Arts Business Comedy Education
  • Fiction Government Health & Fitness History Kids & Family
  • Leisure Music News Religion & Spirituality Science
  • Society & Culture Sports Technology True Crime TV & Film
  • Live
  • How to Start a Podcast
  • How to Start a Live Podcast
  • How to Monetize a podcast
  • How to Promote Your Podcast
  • How to Use Group Recording
  • Log in
  • Start your podcast for free
  • Podcasting
    • Podcast Features
      • Podcast Hosting

        Start your podcast with all the features you need.

      • Podbean AI Podbean AI

        AI-Enhanced Audio Quality and Content Generation.

      • Blog to Podcast

        Repurpose your blog into an engaging podcast.

      • Video to Podcast

        Convert YouTube playlists to podcasts, videos to audios.

    • Monetization
      • Ads Marketplace

        Join Ads Marketplace to earn through podcast sponsorships.

      • PodAds

        Manage your ads with dynamic ad insertion capability.

      • Apple Podcasts Subscriptions Integration

        Monetize with Apple Podcasts Subscriptions via Podbean.

      • Live Streaming

        Earn rewards and recurring income from Fan Club membership.

    • Podbean App
      • Podcast Studio

        Easy-to-use audio recorder app.

      • Podcast App

        The best podcast player & podcast app.

  • Advertisers
  • Enterprise
  • Pricing
  • Resources
    • Help and Support
      • Help Center

        Get the answers and support you need.

      • Podbean Academy

        Resources and guides to launch, grow, and monetize podcast.

      • Podbean Blog

        Stay updated with the latest podcasting tips and trends.

      • What’s New

        Check out our newest and recently released features!

      • Podcasting Smarter

        Podcast interviews, best practices, and helpful tips.

    • Popular Topics
      • How to Start a Podcast

        The step-by-step guide to start your own podcast.

      • How to Start a Live Podcast

        Create the best live podcast and engage your audience.

      • How to Monetize a Podcast

        Tips on making the decision to monetize your podcast.

      • How to Promote Your Podcast

        The best ways to get more eyes and ears on your podcast.

      • Podcast Advertising 101

        Everything you need to know about podcast advertising.

      • Mobile Podcast Recording Guide

        The ultimate guide to recording a podcast on your phone.

      • How to Use Group Recording

        Steps to set up and use group recording in the Podbean app.

  • Discover
  • Log in
    Sign up free
HTML All The Things - Web Development, Web Design, Small Business

HTML All The Things - Web Development, Web Design, Small Business

Technology

Refactoring

Refactoring

2019-03-28
Download

In this solo episode, Mike discusses the code refactoring process and then deep dives on work/life balance.

Segment 1 - What is Refactoring
  • Refactoring definition
    • Changing your code to improve its organization and structure without directly influencing it’s performance
  • Explanation of terminology
    • Code Smells
      • Something you notice as your coding that you think will later require a restructure/reorganization
    • Extensibility
      • Ability to later down the road use your current code to extend the capabilities of your program without having to rewrite large portions of code
    • Maintainability
      • Make it easier to fix bugs and find issues in your code down the line when you’re not as familiar with it
    • Extraction/componentization
      • Taking functionality from a method and creating its own method so that it becomes reusable to other functions
Segment 2 - Tips
  • Refactor often
  • Create a refactor list
    • When you notice a code smell but need to focus on functionality, jot it down in a refactor to do list so you don’t forget to go back and correct
  • Change obscure variable names to proper named variables (Maintainability)
    • Also use appropriate variable types. In JS we are limited but we still have the choice between let, const, var
  • When you notice you’re using the same of similar functionality in multiple functions, externalize that functionality into its own function (extraction/componentization)
    • That could be a seperate function, or it can be a seperate file with a it’s own class and extensible functionalities
    • In vuejs currently you can used Mixins which allow the use of methods across components (in the future this will be handled with hooks)
  • Remove old code that you previously commented out
  • Clean up unused files, folders, functions and images
  • Change code to be extensible to your needs (Extensibility)
    • During sprints with short deadlines sometimes you’ll write code to just get something working while realizing that certain functionality that needs to be implemented in the future won’t work with the current implementation
    • Example: Internationalization
  • Remove unused libraries
    • We all add libraries as we code to try to meet deadlines faster, but sometimes they don’t work the way we want and we move on to the next one. It’s important to remove them when we realise they don’t fit
  • Use tools like prettier and lint to help maintain code structure on a daily basis
    • Example making sure everything is in spaces instead of tabs
    • Arrow functions instead of expression functions
  • Add comments to sections of code you think need explanation (maintainability)
Web News - Work/Life Balance
  • One of the disadvantages of being a contractor/freelancer is not having that 9-5 work structure that you have to follow
  • Depending on your situation though it might be an advantage, if your wife works from home also, you can sometimes spend the best parts of the day together.
  • Instead of going shopping at peak times you can go earlier and just work when you get back
  • Take advantage of off hours for traffic
  • A structured day is great, but everyone has a different work rhythm and being able to structure your day based on that can greatly increase productivity.
    • If you work better in the mornings and early evenings you can make the middle of the day your time off for instance
  • If your considering freelancing you have to be able to structure your own days, which seems simple but can really be a challenge.

 

You can find us on...

Facebook | Twitter | Instagram

RSS | Patreon | Spotify

Medium | YouTube | GitHub 

Reddit

view more

More Episodes

The First Step Trap: Why Buying Domain Names Isn't Starting Your Project
2025-05-20
Web News: Overwhelmed by AI? You're Not Alone!
2025-05-14
How To Get A Web Development Job in 2025
2025-05-13
Why Prisma Is Still the Best ORM | w/ William Madden
2025-05-08
Work On Your Business, Not Just In It
2025-05-06
Why Flip Phones Still Matter in 2025 | w/ Tom Barrasso
2025-05-01
What Junior Web Developers Need to Know About DevOps
2025-04-29
The Hype Trap: Why Cutting Edge Isn’t Always the Best Choice
2025-04-22
Startups vs Big Tech for Web Developers
2025-04-15
The Full Stack of a Website: What Clients Often Overlook
2025-04-08
Should Kids Learn to Code? With Jonathan Schor
2025-04-03
Top 5 Code Editors for Web Developers
2025-04-01
My Real-World SEO Checklist for New Websites
2025-03-25
AI in Developer Education: Scrimba's Instant Feedback & Backend Courses w/ Per Borgen
2025-03-20
Corporate Burnout: How the CIA Invented Your 9 to 5
2025-03-18
Developer Education w/ Maximilian Schwarzmüller
2025-03-13
Vibe Coding, Cursor Vs Windsurf, Firefox Did What?!
2025-03-11
AI Has Broken the Web Developer Job Market w/ Kent C. Dodds
2025-03-06
How to Be Successful as a Remote Developer
2025-03-04
"I Want to Rank #1 on Google!" – How to Solve Real SEO Problems
2025-02-25
  • ←
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • →
012345678910111213141516171819

Get this podcast on your
phone, FREE

Download Podbean app on App Store Download Podbean app on Google Play

Create your
podcast in
minutes

  • Full-featured podcast site
  • Unlimited storage and bandwidth
  • Comprehensive podcast stats
  • Distribute to Apple Podcasts, Spotify, and more
  • Make money with your podcast
Get started

It is Free

  • Podcast Services

    • Podcast Features
    • Pricing
    • Enterprise Solution
    • Private Podcast
    • The Podcast App
    • Live Stream
    • Audio Recorder
    • Remote Recording
    • Podbean AI
  •  
    • Create a Podcast
    • Video Podcast
    • Start Podcasting
    • Start Radio Talk Show
    • Education Podcast
    • Church Podcast
    • Nonprofit Podcast
    • Get Sermons Online
    • Free Audiobooks
  • MONETIZATION & MORE

    • Podcast Advertising
    • Dynamic Ads Insertion
    • Apple Podcasts Subscriptions
    • Switch to Podbean
    • YouTube to Podcast
    • Blog to Podcast
    • Submit Your Podcast
    • Podbean Plugins
    • Developers
  • KNOWLEDGE BASE

    • How to Start a Podcast
    • How to Start a Live Podcast
    • How to Monetize a Podcast
    • How to Promote Your Podcast
    • Mobile Podcast Recording Guide
    • How to Use Group Recording
    • Podcast Advertising 101
  • Support

    • Support Center
    • What’s New
    • Free Webinars
    • Podcast Events
    • Podbean Academy
    • Podbean Amplified Podcast
    • Badges
    • Resources
  • Podbean

    • About Us
    • Podbean Blog
    • Careers
    • Press and Media
    • Green Initiative
    • Affiliate Program
    • Contact Us
  • Privacy Policy
  • Cookie Policy
  • Terms of Use
  • Consent Preferences
  • Copyright © 2015-2025 Podbean.com