"There’s a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time.
There is no canonical way to use PHP. This website aims to introduce new PHP developers to some topics which they may not discover until it is too late, and aims to give seasoned pros some fresh ideas on those topics they’ve been doing for years without ever reconsidering. This website will also not tell you which tools to use, but instead offer suggestions for multiple options, when possible explaining the differences in approach and use-case.
This is a living document and will continue to be updated with more helpful information and examples as they become available."
"Le « Clean Code » regroupe plusieurs règles et principes pour vous aider à construire mais surtout refactorer votre code. En effet, comme le disait Michel dans son article sur les artisans du code, le respect de ces différentes règles énoncées par Bob Martin a pour but d’offrir à votre code, entres autres, simplicité, lisibilité et structuration pour qu’il soit le plus évolutif et maintenable possible sur le long terme.
Ce premier article traite des piliers qui vous soutiendront dans votre pratique de l’amélioration de la qualité de votre code."
"It is recommended for all alerts to adhere to the follow guidelines:
Keep conditions simple. Alerts should be actionable. Check for measured failure on critical paths rather than a lack of success. Alerts should not have special cases for routine maintenance. Consider how the alert check can fail."
"How can you measure happiness? One way to do it is to ask people how happy they feel. Löffler and Miarka referred to the Happiness Metric that Jeff Sutherland described in Scrum: The Art of Doing Twice the Work in Half the Time.
Löffler and Miarka provided suggestions for what you can do when you want to improve happiness in teams:"
"So I’m going to share ten of my favorite tips and tricks with you guys. Ready?
Run Docker on a VPS for extra speed Bind mount the docker socket on docker run Use containers as highly disposable dev environments bash is your friend Insta-nyan Edit /etc/hosts/ with the boot2docker IP address on OSX docker inspect -f voodoo Super easy terminals in-browser with wetty nsenter #docker"
"Web Fundamentals is a comprehensive resource for multi-device web development. We're just getting started and want your help, if you see something amiss or have a suggestion file an issue or submit a pull request. You can use Google Web Starter Kit to start creating new sites in minutes that follow all of our best practice guidance."
"Cool, it seems to work. Pretty easy, right?
Not so fast.
You just built a container which contains a minimal operating system, and which only runs your app. But the operating system inside the container is not configured correctly. A proper Unix system should run all kinds of important system services. You're not running them, you're only running your app."
"Les principes suivants résument les réflexes à acquérir ; la suite de cet article explorera le détail des manipulations associées.
Quand je fusionne une branche… Si elle est purement locale et temporaire, je m’assure qu’elle n’apparaît pas dans le graphe final de l’historique en faisant un fast-forward merge, ce qui peut nécessiter un rebase au préalable. Si elle a une sémantique claire et documentée, je m’assure qu’elle apparaîtra clairement dans le graphe de l’historique, du début à la fin, en garantissant un true merge. Quand je m’apprête à pusher mon travail local, je nettoie mon historique local d’abord pour partager un historique propre, au cordeau. Quand je me vois refuser le push parce qu’un travail complémentaire a été pushé entre-temps, je rebase sur la branche distante à jour pour éviter de polluer le graphe par des tas de micro-merges malvenus."
"Refactoring has grown into a well-known technique, and most software development teams at least claim to be doing refactoring regularly. Many teams, however, don't appreciate the different workflows that refactoring can be used in, and thus miss opportunities to effectively incorporate refactoring into their development activities. In this deck I explore various different workflows. I hope it will encourage teams to integrate refactoring more deeply into their work, resulting in a better designed code-bases that will make it quicker and easier to add new features."