Clean code is like teenage sex: everyone talks about it, nobody really knows how to do it, everyone thinks everyone else is doing it, so everyone claims they are doing it... It is essential that the codes we write should be able to be understood by all. This talk will give you introduction to the principles how to write clean code that is maintainable and extensible on long terms.
56. @antonioperic
#8 Use SPL
• Datastructures
• SplDoublyLinkedList — The SplDoublyLinkedList class
• SplStack — The SplStack class
• SplQueue — The SplQueue class
• SplHeap — The SplHeap class
• SplMaxHeap — The SplMaxHeap class
• SplMinHeap — The SplMinHeap class
• SplPriorityQueue — The SplPriorityQueue class
• SplFixedArray — The SplFixedArray class
• SplObjectStorage — The SplObjectStorage class
57. @antonioperic
#8 Use SPL
• Iterators
• AppendIterator — The AppendIterator class
• ArrayIterator — The ArrayIterator class
• CachingIterator — The CachingIterator class
• CallbackFilterIterator — The CallbackFilterIterator class
• DirectoryIterator — The DirectoryIterator class
• EmptyIterator — The EmptyIterator class
• FilesystemIterator — The FilesystemIterator class
• FilterIterator — The FilterIterator class
• GlobIterator — The GlobIterator class
• InfiniteIterator — The InfiniteIterator class
• …
59. @antonioperic
#8 Use SPL
• Exceptions
• BadFunctionCallException — The BadFunctionCallException class
• BadMethodCallException — The BadMethodCallException class
• DomainException — The DomainException class
• InvalidArgumentException — The InvalidArgumentException class
• LengthException — The LengthException class
• LogicException — The LogicException class
• OutOfBoundsException — The OutOfBoundsException
• OutOfRangeException — The OutOfRangeException
• OverflowException — The OverflowException
• RangeException — The RangeException
• RuntimeException — The RuntimeException
• UnderflowException — The UnderflowException
• UnexpectedValueException — The UnexpectedValueException class
65. @antonioperic
#11 Use tools
• PHPCS
• PHP-CS-Fixer
• pDepend (performs static code analysis)
• PHPLOC (A tool for quickly measuring the size of a PHP project)
• SensioLabs Insight
• phpmd (mess detector)
• PHPCPD (copy paste detector)
• PHPDCP (dead code detector)
• learn more about your IDE (PHPStorm is amazing tool)