How To Code Well

How To Code Well

By Peter FisherTechnology
Download on the App Store

How To Code Well episodes

  • 118 - Learning PHP - Listen to this! - 100 Days of PHP

    In today's episode I talk about a roadmap that I have created for learning PHP in 100 days.


    Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

    My web development courses

    ➡️ Learn How to build a JavaScript Tip Calculator 

    ➡️ Learn JavaScript arrays

    ➡️ Learn PHP arrays

    ➡️ Learn Python

    ✉️ Get my weekly newsletter

    ⏰ My current live coding schedule (Times are BST)

    Thursdays 20:00 = Live Podcast YouTube

    Sundays 14:30 - Live coding on Twitch

    39 min
  • 117 - Service Unavailable

    In todays podcast we are going to talk about the 503 HTTP Status Code. 

    Error 503 = Service Unavailable 

    From the W3C: The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.   

    Causes

    •  DDOS attacks will result in high resource usage which will eventually overload the server.  As a result the server will respond with a 503 error code. 
    • A server might be temporarily  un available if it is under going maintenance.  Its a server issue and not a client issue.  So this wouldn’t be an issue with the HTML or CSS or client sided JavaScript  Trouble shooting 
    • Check any monitoring dashboards or graphs for resource hungry trends. - Check the logs to find any server related errors.   
    • Check the logs for access requests to see if its a spike in traffic.  
    • Check if the server is going through an unexpected maintenance  
    • Check for firewall config. Perhaps a firewall on the network is preventing traffic from flowing.  
    • Check for long running scripts that could be causing memory leaks.   
    • Check for disk usage.  Perhaps you are running out of swap space if that’s configured.  
    • Solutions 

      • Stop any jobs that are running 
      • Divert traffic using a load balancer to another server -
      • Scale your application horizontally by bring on other servers/containers to handle the traffic 
      • Have an auto scaler which keeps adding or removing servers/containers when needed - Reboot the server/container
      • Resources:

        https://thevaluable.dev/dry-principle-cost-benefit-example/

        https://metova.com/dry-programming-practices/

        Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

        My web development courses

        ➡️ Learn How to build a JavaScript Tip Calculator 

        ➡️ Learn JavaScript arrays

        ➡️ Learn PHP arrays

        ➡️ Learn Python

        ✉️ Get my weekly newsletter

        ⏰ My current live coding schedule (Times are BST)

        Thursdays 20:00 = Live Podcast YouTube

        Sundays 14:30 - Live coding on Twitch

        31 min
      • 116 - Don't Repeat Yourself

        In todays podcast episode we are going to talk about the DRY software principle. In software development DRY stands for Don't Repeat Yourself.  Let's discuss what this means.

        Resources:

        https://thevaluable.dev/dry-principle-cost-benefit-example/

        https://metova.com/dry-programming-practices/

        Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

        My web development courses

        ➡️ Learn How to build a JavaScript Tip Calculator 

        ➡️ Learn JavaScript arrays

        ➡️ Learn PHP arrays

        ➡️ Learn Python

        ✉️ Get my weekly newsletter

        ⏰ My current live coding schedule (Times are BST)

        Thursdays 20:00 = Live Podcast YouTube

        Sundays 14:30 - Live coding on Twitch

        47 min
      • 115 - Upgrading to PHP 8

        Today I'm going to talk about how I upgraded to PHP 8. I will discuss the process of upgrading from 7.4 to 8.0.6, the problems and issues that I faced and the solutions I came up with.

        Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

        My web development courses

        ➡️ Learn How to build a JavaScript Tip Calculator 

        ➡️ Learn JavaScript arrays

        ➡️ Learn PHP arrays

        ➡️ Learn Python

        ✉️ Get my weekly newsletter

        ⏰ My current live coding schedule (Times are BST)

        Thursdays 20:00 = Live Podcast YouTube

        Sundays 14:30 - Live coding on Twitch

        40 min
      • 114 - Docker Nagware - How Docker is trying to get your money

        Today we are going to talk about Nagware and how Docker is trying to get your money in Docker Desktop version 3.x  Docker requires a pro or team account to skip updates  If you use Docker Desktop at work you may need to skip a specific update. For this reason, Pro or Team subscription developers can skip notifications for a particular update when a reminder appears. Free users will not be required to install any particular update, but they will continue to get reminders to update.

        Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

        My web development courses

        ➡️ Learn How to build a JavaScript Tip Calculator 

        ➡️ Learn JavaScript arrays

        ➡️ Learn PHP arrays

        ➡️ Learn Python

        ✉️ Get my weekly newsletter

        ⏰ My current live coding schedule (Times are BST)

        Thursdays 20:00 = Live Podcast YouTube

        Sundays 14:30 - Live coding on Twitch

        29 min
      • 113 - Software Frameworks vs Libraries

        Today we are going to talk about libraries vs frameworks in software development.  

        A software library is something you use that enhances your application. It's a bundle of code that you can plug into an existing project. A software library normally solves a specific task such as connecting to a database, making forms or providing routines that manipulate images. A library can co-exist amongst other libraries and this is also true for libraries that do the same task.  For example you might have a software library that crops an image to a certain size. You may want to try another library that does the same thing.  

        A software framework provides a set of APIs such as user authentication, session management, templating, request and response handling and so on. A framework is a single package that could contain smaller packages that do different things. A framework is very opinionated. It provides specific places for you to add your and it controls almost everything about how your code interacts with it.    

        Generally you cannot add a framework to an existing project because it must be the top layer of abstraction.  

        Both libraries and frameworks are code that is written by someone else that you use to enhance your project.  

        When you use a library you are in charge of the application flow. You choose how and when the library is called in your application. On the other hand, a framework is a set of API’s that can be called at certain points in its defined flow.    Usually a framework tells you what to do, when to do it and where to do it. Frameworks are normally developed by large teams or the open source community.  Due to this, a framework normally adheres to best practices, a strict set of coding standards and the framework is regularly maintained.   

        There is a big learning curve with frameworks but popular frameworks are well known and sort after in the software industry.  

        In summary a framework tells you what to do whereas you tell a library what to do. You have full control over a library but you have to define the rules of your application. You have limited control over the framework and you need to adhere to rules set out by the framework.

        Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

        My web development courses

        ➡️ Learn How to build a JavaScript Tip Calculator 

        ➡️ Learn JavaScript arrays

        ➡️ Learn PHP arrays

        ➡️ Learn Python

        ✉️ Get my weekly newsletter

        ⏰ My current live coding schedule (Times are BST)

        Thursdays 20:00 = Live Podcast YouTube

        Sundays 14:30 - Live coding on Twitch

        23 min
      • 112 - 10 Best Resources For Web Developers

        Here are my 10 best web development resources that have helped me progress in my career 

        This episode was recorded live on YouTube

        1. Regex https://regex101.com or https://www.phpliveregex.com 
        2. W3CSchools 
        3. MDN 
        4. Stackoverflow 
        5. Replit 
        6. Free Code Camp  
        7. Github learning lab 
        8. Git 
        9. Smashing magazine 
        10. CSS tricks 
        11. David Walsh
        12. Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

          My web development courses

          ➡️ Learn How to build a JavaScript Tip Calculator 

          ➡️ Learn JavaScript arrays

          ➡️ Learn PHP arrays

          ➡️ Learn Python

          ✉️ Get my weekly newsletter

          ⏰ My current live coding schedule (Times are GMT)

          Thursdays 20:00 = Live Podcast YouTube

          Sundays 14:30 - Live coding on Twitch

          35 min
        13. 111 - Where Do I Put My Algorithm?

          Let's talk about algorithms and where to put them in a MVC architecture.  I will also discuss what algorithms are and how best to use them within software. This is live so questions are welcome during the talk.

          This episode was recorded live on YouTube

          Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

          My web development courses

          ➡️ Learn How to build a JavaScript Tip Calculator 

          ➡️ Learn JavaScript arrays

          ➡️ Learn PHP arrays

          ➡️ Learn Python

          ✉️ Get my weekly newsletter

          ⏰ My current live coding schedule (Times are GMT)

          Thursdays 20:00 = Live Podcast YouTube

          Sundays 14:30 - Live coding on Twitch

          41 min
        14. 110 - Apple Spring 2021 Event For Web Developers

          Let's talk about the Apple 2021 spring event and what the new iMac and iPad Pro can do for Web Developers.

          This episode was recorded live on YouTube

          Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

          My web development courses

          ➡️ Learn How to build a JavaScript Tip Calculator 

          ➡️ Learn JavaScript arrays

          ➡️ Learn PHP arrays

          ➡️ Learn Python

          ✉️ Get my weekly newsletter

          ⏰ My current live coding schedule (Times are GMT)

          Thursdays 20:00 = Live Podcast YouTube

          Sundays 14:30 - Live coding on Twitch

          35 min
        15. 109 - Should Software Developers write code on CRAPPY Hardware??

          Today we're going to tackle the question; Should software developers write code on crappy old hardware? 

          I'm going to discuss the pros and cons of using old hardware and give my opinion on the matter.

          This episode was recorded live on YouTube

          Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

          My web development courses

          ➡️ Learn How to build a JavaScript Tip Calculator 

          ➡️ Learn JavaScript arrays

          ➡️ Learn PHP arrays

          ➡️ Learn Python

          ✉️ Get my weekly newsletter

          ⏰ My current live coding schedule (Times are GMT)

          Thursdays 20:00 = Live Podcast YouTube

          Sundays 14:30 - Live coding on Twitch

          37 min

        About How To Code Well

        From the publisher's feed

        Web development discussions and interviews from Peter Fisher. Covering JavaScript, Linux, Docker, PHP, Python, MYSQL, HTML and more