Summary of PHP Australia Conference 2015 - WRITING CLEAN AND TESTABLE CODE

This is an AI generated summary. There may be inaccuracies.
Summarize another video · Purchase summarize.tech Premium

00:00:00 - 00:50:00

In this video, the importance of writing clean and testable code is discussed, along with a few tips on how to achieve this. The presenter goes over some common problems and how SPL can help with them. Finally, they discuss design patterns and how they can be used to write code that is more consistent and easier to read.

  • 00:00:00 In this video, Bashar al Fallujah and Christopher Pett from 14 years of experience in software engineering and development discuss the importance of writing clean code. They also provide a few tips on how to achieve this.
  • 00:05:00 The video discusses the importance of writing clean and tesTABLE code, and goes on to discuss how to do this by using type hinting and exceptions.
  • 00:10:00 The video discusses the benefits of using namespaces in PHP code, and provides examples of why and how to use them. It also points out that namespace collisions can lead to problems and that proper use of filters can help to avoid them.
  • 00:15:00 The video discusses PHP Australia Conference 2015, which focused on writing clean and tesTABLE code. The presenter goes over some common problems and how SPL can help with them. Finally, they discuss design patterns and how they can be used to write code that is more consistent and easier to read.
  • 00:20:00 The presenter discusses the benefits and drawbacks of using singletons in an application. He also explains the law of Demeter, which warns against using singletons that violate this guideline.
  • 00:25:00 The video discusses the importance of code design principles, including keeping code clean and tidy, and avoiding code violations. It provides an example of a code violation, and explains why it is a problem.
  • 00:30:00 The video discusses the importance of writing clean and testable code, and the benefits of following the "law of the matter." It discusses the issues that can arise when code is not clean and testable, and how to avoid them by following best practices. Finally, the video offers advice on how to detect copy/paste in code, and how to improve the structure of a codebase without introducing validation.
  • 00:35:00 The video discusses the importance of writing clean and efficient code, and how to identify problems. It goes on to provide examples of bad coding practices, and how to avoid them. Finally, it shows how to fix coding problems when they occur.
  • 00:40:00 The video discusses the different ways that PHP code can be cleaner and more manageable, and provides a few examples. The presenter then goes on to discuss a specific issue with the code, and suggests a number of possible solutions.
  • 00:45:00 In this video, the presenter discusses the benefits of using an abstract Factory class in conjunction with a configurable namespace. This makes code easier to change without having to go through every method and rewriting it.
  • 00:50:00 The presenter discusses how to catch exceptions that may be thrown by libraries that the code may be using. He recommends catching the base exceptions and then handling any specific exceptions that may be thrown. If the code is not catching any exceptions, it is likely that the author is hiding exceptions from the user.

Copyright © 2025 Summarize, LLC. All rights reserved. · Terms of Service · Privacy Policy · As an Amazon Associate, summarize.tech earns from qualifying purchases.