It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is the clock interface. It's really simple, you write it once, use it anywhere. | |
* Cool extra things you can do: | |
* - have it return custom value objects | |
* - separate method for currentDate() without time part | |
*/ | |
interface Clock | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
In preparation for a new gig I'm reading up on the terms Domain-Driven Design, Command-Query Responsibility Segregation, and Event Sourcing. Here are a list of useful texts and talks that I've discovered so far. If anything is missing please leave a comment.
- Eric Evans: What is a model? - "A model is not a UML diagram nor a certain layer of the software. [...]. It is a system of abstractions, it describes selected aspects of a domain, and can be used to solve problems related to that domain."
- Eric Evans: What I've learned since the book - slightly longer talk on Eric's findings since he co-authored the book on DDD.
- Eric Evans: Domain-Driven Design - As far as I can tell, the book on DDD. Haven't read it though.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\DefinitionDecorator; | |
use Symfony\Component\DependencyInjection\Reference; | |
class SetServiceDecoratorPass implements CompilerPassInterface | |
{ | |
public function process(ContainerBuilder $container) |
Iterators for PHP XMLReader
for Ease of Parsing
-
0.1.12
maintenance release with fixes. -
0.1.11
maintenance release with fixes. addedXMLReader::CDATA
andXMLReader::WHITESPACE
node support forXMLWritingIteration
. added