PHPNews

Write tests. Not too many. Mostly integration.

Written by murze.be - Published on murze.be
Aggregated on Tuesday October 17, 2017 - Permalink

In a fantastic post on his blog, Kent C. Dodds makes the case for focusing on writing integration tests, and stop going for 100% code coverage. Amen to that! You may also find yourself testing implementation details just so you can make sure you get that one line of code that’s hard to reproduce in a test environment. You really want to avoid testing implementation details because it doesn’t …

Continue reading »


Dockerize your Laravel app with Vessel

Written by murze.be - Published on murze.be
Aggregated on Tuesday October 17, 2017 - Permalink

Chris Fidao has created an easy to handle, well documented, Docker dev environment for Laravel projects. It’s an excellent starting point if you want to have a taste of what Docker can do. For the introductory newsletter: I like Vessel the best for the following reasons: 1. It’s installed per-project instead of globally. This lets me customize it per project if need be. 2. Docker lets me …

Continue reading »


How to remove a big file wrongly committed to a Git repo

Written by murze.be - Published on murze.be
Aggregated on Tuesday October 17, 2017 - Permalink

Today I accidentally committed a multi GB file to the git repo of the project I was working on and pushed it. Damn! Because of that big file cloning the repo again would take a long long time. Removing the file locally and pushing again would not solve the problem as that big file is in Git’s history. So I took a few moments to Google around and learned that that there actually is a git command …

Continue reading »


Seven Ineffective Coding Habits of Many Programmers

Written by murze.be - Published on murze.be
Aggregated on Tuesday October 17, 2017 - Permalink

At last years Istanbul Tech Talks conference Kevelin Henney gave this great talk on how to improve the readability of your code. Here are the slides of this talk . The post Seven Ineffective Coding Habits of Many Programmers appeared first on murze.be .

Continue reading »


Facades can mock stuff partially

Written by murze.be - Published on murze.be
Aggregated on Tuesday October 17, 2017 - Permalink

Need to mock a specific method in a facade, leaving the remainder free to respond to calls normally? It's possible with "Partial Mocks". pic.twitter.com/VgVMdnBDid — Raul (@rcubitto) October 4, 2017 The post Facades can mock stuff partially appeared first on murze.be .

Continue reading »


The official Vue.js style guide

Written by murze.be - Published on murze.be
Aggregated on Tuesday October 17, 2017 - Permalink

The maintainers of Vue.js have recently published their official style guide. This is the official style guide for Vue-specific code. If you use Vue in a project, it’s a great reference to avoid errors, bikeshedding, and anti-patterns. However, we don’t believe that any style guide is ideal for all teams or projects, so mindful deviations are encouraged based on past experience, the …

Continue reading »