Some exercises from the Falsy Values workshops.
The good parts:
- HTTP server and client in same script
- Express cookies example
- Express routing example
- Express error handling
- Express middlewares example
- Simple HTTP proxy
Check if a site it running PHP by appending this query string... | |
?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 | |
Example: | |
http://php.net/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 |
Some exercises from the Falsy Values workshops.
The good parts:
<html> | |
<head> | |
<title>Process</title> | |
<style type="text/css"> | |
#p-0 {color: green;} | |
#p-1 {color: blue;} | |
.p { | |
float: left; | |
width: 300px; | |
border: 1px solid #CCC; |
The following describes the mandatory requirements that must be adhered to for autoloader interoperability.
\ <Vendor Name> \ (<Namespace>)* \ <Class Name>
DIRECTORY_SEPARATOR
when loading from the file system.DIRECTORY_SEPARATOR
. The "_" character has no special meaning in the namespace.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
// Turns out this function already exists in Sass: mix(fg, bg, %) (http://d.pr/mGqa) | |
// Alpha blending | |
@function blend($bg, $fg) { | |
$r: red($fg) * alpha($fg) + red($bg) * (1 - alpha($fg)); | |
$g: green($fg) * alpha($fg) + green($bg) * (1 - alpha($fg)); | |
$b: blue($fg) * alpha($fg) + blue($bg) * (1 - alpha($fg)); |
Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.
Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.
Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.
The book is build around 34 chapters organised in chapters.