PHPNews

Stealing your browser history with the W3C Ambient Light Sensor API

Written by Bram.us - Published on Bram.us
Aggregated on Tuesday October 17, 2017 - Permalink

A few years ago window.getComputedStyle and the like where adjusted to return the default color of links, instead of the actual color on screen. Security and privacy were the driving factors behind that decision: by styling :visited links with a different color than their non-visited counterparts, a hacker could easily determine which sites a user has visited by simply checking the color …

Continue reading »


Exciting! We’re launching The Watercooler

Written by Signal vs. Noise - Published on Signal vs. Noise
Aggregated on Tuesday October 17, 2017 - Permalink

An online community for leaders looking to become better “How do I become a better leader?” I’ve spent my entire working life trying to answer that question. The answer, unfortunately, has never been very clear. I found books to be one-sided, conferences require you to be there in-person, and mentors who I trust not always available (nor do they always have the experience or answers I’m …

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 »


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 »


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 »


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 »


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 »


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 »


The Culture Cliché

Written by Signal vs. Noise - Published on Signal vs. Noise
Aggregated on Tuesday October 17, 2017 - Permalink

If you’re looking to shift your company culture, it starts with understanding what culture is in the first place. “Culture” has become the ultimate buzzword these days. Everyone wants to “improve their company culture.” I see the word frequently littered across the headlines of countless of articles, book titles, and conference talk topics. Leaders also seem to talk about it all the time: …

Continue reading »


Choose Dependency Injection — If You Can

Written by Paul M. Jones - Published on There are no solutions, only tradeoffs.
Aggregated on Tuesday October 17, 2017 - Permalink

Some people say, “You don’t need to use dependency injection for everything. Sometimes dependency injection is not the best choice.” It occurs to me that the people who say this are the ones who can’t use it for everything. They say “choose what’s best for your situation”, but their situation precludes the use of dependency injection in the first place. Anyone who says “X is not always the …

Continue reading »