Talk in English - UK at PHP Yorkshire 2018
Track Name:
Track 2
View Slides: https://docs.google.com/presentation/d/1PBaAc5Hg00kNi9w3cdj9bHEuGet-xukZ3-ypE9zEXr0/edit?usp=sharing
Checkout the code: https://github.com/exussum12/coverageChecker
Short URL: https://joind.in/talk/c2a94
(QR-Code (opens in new window))
Code standards develop over time, and old code bases often suffer with older standards as there is no easy way to migrate towards the new standards leaving them in an all or nothing state. The tools available (phpcs, phpmd phpunit, phpmnd etc) all work on the whole code base and while some offer auto fixers for the code, larger (and older) code bases have too many issues which can not be auto fixed.
Coverage Checker allows these tools to work alongside the tools mentioned above to ensure that all new code checked in conforms to these standards optionally also allowing a percentage of new code which must conform in order to ease the transition for example 80% of the new code must be covered by tests.
New tools such as phan and phpstan are also very noisy which means you need to have a high level of quality before starting to use them, This tool allows an easy way to start benefiting from these tools! This is really easy to set up and all code bases can benefit.
This also works for tools in other languages such as pylint, jacoco and more
Comments
Comments are closed.
Thank you for your talk, there was a lot of valuable content. You were clearly nervous to begin with but once you relaxed you spoke well. The Q&A was particularly good.
High intensity but very useful - lots of tools being thrown out thick and fast - some of the slides were over before I would work out what I needed to make notes about. If I could make one suggestion: don't assume so much of your audience. You didn't explain what "CI server" meant (and because you'd mentioned CodeIgniter earlier I spent some time thinking you were referring to that at first), ditto Travis and yml.
This was packed with super useful knowledge!
Might be a bit fast for the amount of knowledge but great talk!
Really enjoyed this session. Way more info than I could write down, but with the slides available, I can take the time to think through all the details to figure out what we can implement.
I enjoyed Scott's style presenting, and look forward to experiment with the tool he's written to help with applying standards just to changed code.
Well prepared demo full of useful, no BS facts. Thanks.
Great talk! Good to hear how you can manage coding standards in legacy code bases without doing a major refactor!
This had everything. Personal experience combined with theory and call to action. Don't change a thing, Scott.
Hands down the most interesting talk of the day for me. But it was impossible to take notes and keep up with the pace of the presentation. Thank goodness the slides are available for post-conference digestion.
All you need to do is turn the dial back from 11...
Lots of useful tools listed to help improve your code over time and a very piratical way to do it in the context of a real world example of how you are achieving this with your team.
Lets not forget some cracking jokes and some trivia about WordPress. Good times.