Theatrical-Players-Refactoring-Kata
assert
Theatrical-Players-Refactoring-Kata | assert | |
---|---|---|
2 | 7 | |
175 | 7,506 | |
- | 0.2% | |
6.3 | 0.0 | |
4 days ago | 4 months ago | |
Pascal | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Theatrical-Players-Refactoring-Kata
-
Test-Driven Development by Example (PHP Code Samples)
I can recommend Theatrical Players Refactoring Kata - Based on the first (free) chapter of ‘Refactoring’ by Martin Fowler, the 2nd Edition has a PHP version. You can refactor the code while reading the first chapter of his book for free, which is based on JavaScript. The refactoring is mostly the same, one of the exceptions is invoice and plays appear to be global scope in the book. The workaround is the make them properties of the class in the PHP script and adjust the code.
-
Tools for better programming
Theatrical Players Refactoring Kata PHP
assert
-
OpenMarketplace v1.1.0 released
This is not Java where everything is nullable by default. Use that in your favor and set dependencies correctly via constructor like this. For this to correctly work, check the empty_data callable and webmozart/assert package:
-
Hi, I've created a PHP library that automagically creates a Builder for any class. Any review / idea is welcome!
I actually do have that case, many of them. For that, I use form_data. This example is a bit old-school, statically analyzed one would be using webmozarts/assert like:
-
Avoiding one-liners in PHP
For APIs relying on array and not something like cuyz/valinor (best deserializer I have ever seen), one-liners are still good with webmozart/assert:
-
GitHub - Clivern/Helium: 🐺 Fast, Secure and Reliable Newsletter System, Set up in Minutes.
// https://github.com/webmozarts/assert Assert::nullOrInteger($price = $data['price'] ?? null); if ($price) { $p->setPrice($price); // we don't care about return value }
-
Anybody interested in `is` and `?as` from Hack?
as will throw exception immediately, similar to assertion package:
-
Is it worth it to use Symfony Form with React?
What I do with the VueJS forms is using a assertion library like https://github.com/webmozarts/assert to handle the validation of the incoming data.
- Type Assumptions & Assertions simplified
What are some alternatives?
Tennis-Refactoring-Kata - This is a Refactoring Kata based on the rules of Tennis
php-builder - A PHP trait to automagically create a Builder for any class - with no dependencies
Racing-Car-Katas - Several code katas on a racing car theme
CraueFormFlowBundle - Multi-step forms for your Symfony project.
awesome-php - A curated list of amazingly awesome PHP libraries, resources and shiny things.
OpenMarketplace - Open-source Multi-Vendor Marketplace platform based on Sylius and Symfony.
Parrot-Refactoring-Kata - Kata to learn about Polymorphism
php-cast
SupermarketReceipt-Refactoring-Kata - This is a refactoring kata for improving your coding skills
BitBagBible - BitBag coding standards that rock!
tdd-php - Test Driven Development by Example (Kent Beck) PHP Code samples
Symfony - The Symfony PHP framework