SlideShare une entreprise Scribd logo
1  sur  50
Télécharger pour lire hors ligne
From framework coupled code to
microservices through DDD modules
MVC, Testing, SOLID, Domain-Driven Design, Microservices
@CodelyTV
@Rafaoe

@JavierCane#NubeloMeetup - IronHack 25/10/2016
Venue
Org
Beers
Contents
Welcome!
@Rafaoe @JavierCane
Contents
gOld days The holy grail
of testing
Bigger &
faster
MVC frameworks
to the rescue
Serious
business Recap
Thanks!
@TangeloEng
@UvinumEng@Thatzad
1.

gOLD days
<?php

/**

* The template for displaying all single posts
and attachments

*

* @package WordPress

* @subpackage Twenty_Sixteen

* @since Twenty Sixteen 1.0

*/



get_header(); ?>



<div id="primary" class="content-area">

<main id="main" class="site-main"
role="main">

<?php

// Start the loop.

while (have_posts()) : the_post();

single.php
role="main">

<?php

// Start the loop.

while (have_posts()) : the_post();



// Include the single post
content template.

get_template_part('template-
parts/content', 'single');



// If comments are open or we
have at least one comment, load up the comment
template.

if (comments_open() ||
get_comments_number()) {

comments_template();

}



if (is_singular('attachment')) {

single.php
) . '</span> ' .
'<span class="post-title">%title</span>',

]

);

}



// End of the loop.

endwhile;

?>



</main><!-- .site-main -->



<?php get_sidebar('content-bottom'); ?>



</div><!-- .content-area -->



<?php get_sidebar(); ?>

<?php get_footer(); ?>

single.php
! Scripts
◕ index.php
◕ utils.php
◕ helpers.php
◕ include & require_once
The Concept
gOld days
! Have to learn
◕ Mindset
◕ Toolset
◗ PHP – Namespaces y autoloader Composer
◗ PHP – Estilo de código, estándar PSR 2
◗ Generación automática de código con IntelliJ y PhpStorm
◕ Domain
◗ Incomprehensible Finder Kata Refactoring
! All is The Concept
The Concept
gOld days
ºº
2.

MVC frameworks to the rescue
<?php



class ctrl_frontend extends Controller {



function ctrl_frontend()

{

parent::Controller(); 

if (!isset($_SESSION)) {

session_start();

}

}



function index()

{

$this->load-
>model('sobre_nosotros','',TRUE);



THE Controller
$datos['sobreNosotros']=$this-
>sobre_nosotros->getApartados();



$this->load->view('quienes',
$datos);

break;

case 'portfolio': 

$this->load-
>model('proyecto','',TRUE);

$this->load-
>model('seguimiento_proyecto','',TRUE);



$retorno = $this->proyecto-
>getProyectosPortfolio(); //primero obtengo los
datos de los proyectos



if($retorno!=null){ //si hay
proyectps

THE Controller
$datos);

}



private function sesionIniciada(){

$this->load->helper('url');

redirect('ctrl_backend_admin/
proyectoListar','refresh');

}



private function error($msg){

$data["tipoError"]=$msg; 

$this->load->view('error',$data);

}

}



/* End of file welcome.php */

/* Location: ./system/application/controllers/
welcome.php */

THE Controller
! Wins
◕ Controller per concept
◕ Isolate views & DB
◕ Active Record discovery
! New
◕ Singletons, singletons everywhere
◕ “Models” & other misconceptions
◕ DB structure defined by ORM
! Still
◕ Highly coupled code
◕ “Software Architecture is for UML people”
The Concept
MVC frameworks to the rescue
! Internal doubts
◕ Por qué NO usar getters y setters | Tell don’t ask
◕ Por qué programar sin usar “else” – Cláusulas de guarda
◕ Varios returns en una función: ¿Mal o bien?
◕ Qué son los Code Smells y el Refactoring
◕ Constructores semánticos – Named constructors
The Concept
MVC frameworks to the rescue
class CourseController extends FOSRestController

{

public function getCourseAction(Request $request)

{

return $this->getDoctrine()

->getEntityManager()

->createQueryBuilder()

->select('c', 'v')

->from('AppBundleModelCourse', 'c')

->where('c.level', '>', $request-
>get('from_level', 0))

->getQuery()

->execute();

}



public function getCourseVideosAction($courseId)

{

return $this->getDoctrine()

Course controller
bit.ly/codelytv-course-ctrl-fw
class Course extends CourseBaseModel

{

public $title;

public $level;



/**

* @return mixed

*/

public function getTitle()

{

return $this->title;

}



/**

* @param mixed $title

*/

public function setTitle($title)

{

$this->title = $title;

Course model
bit.ly/codelytv-course-model-anemic
3.

The holy grail of testing
! Wins
◕ If you don’t test, you’re going to suffer
◕ SOLID at a micro-design scale
! New
◕ Fragile test due to coupled code bases
◕ Test private methods or not?
! Still
◕ Controller per concept
◕ “Models”, singletons & laravel “facades”
The Concept
The holy grail of testing
class CourseControllerTest extends
PHPUnit_Framework_TestCase

{

public function testGetCoursesFilteredByLevel()

{

$fromLevel = 0;

$request = new Request(['from_level' =>
$fromLevel]);



$container =
Mockery::mock(ContainerInterface::class);

$doctrine =
Mockery::mock(Registry::class);

$entityManager =
Mockery::mock(EntityManager::class);

$queryBuilder =
Mockery::mock(QueryBuilder::class);

$query =
Course controller test


$controller = new CourseController();

$controller->setContainer($container);

$controllerResult = $controller-
>getCourseAction($request);

$this->assertEquals(

[

[

'title' => 'Codely mola',

'level' => 2,

],

[

'title' => 'Aprende a decir
basicamente como Javi',

'level' => 5,

],

],

$controllerResult

);

}

}
Course controller test
bit.ly/codelytv-course-ctrl-fw-test
! Testing help
◕ Cómo testear código acoplado: Costuras
◕ ¿Puedes ayudarte del #TDD para diseñar software? – Diseños
emergentes
◕ Cómo escuchar a tus test #NaveMisterioCodelyTV
◕ Por qué no usar static
! SOLID
◕ Principio de Responsabilidad Única SRP
◕ Principio de Segregación de Interfaces ISP
◕ Errores comunes al diseñar Interfaces
◕ Principio de Inversión de Dependencias DIP
The Concept
The holy grail of testing
4.

Serious business
! Wins
◕ Decoupling business logic from framework
◕ Module per concept
◕ Semantics and clean code as something necessary
◕ Ease testing
◕ SOLID at a macro-design scale
◕ DB structure defined by domain
! New
◕ Unlearning process
◕ Deep research aptitude
◕ Theory misinterpretations
The Concept
Serious business
The growth stages of a programmer
1st stage 2nd stage 3rd stage
Knowledge Code complexity
Non scientific source :P : https://www.youtube.com/watch?v=2qYll837a_0


final class VideoController extends Controller

{

private $bus;



public function __construct(CommandBus $bus)

{

$this->bus = $bus;

}



public function createAction(

string $id,

Request $request

) {

$command = new CreateVideoCommand(

$id,

$request->get('title'),

$request->get('url'),

$request->get('course_id')

Video controller
{

$this->bus = $bus;

}



public function createAction(

string $id,

Request $request

) {

$command = new CreateVideoCommand(

$id,

$request->get('title'),

$request->get('url'),

$request->get('course_id')

);



$this->bus->dispatch($command);



return new HttpCreatedResponse();

}

}

Video controller
bit.ly/codelytv-video-ctrl
final class CreateVideoCommandHandler implements Command

{

private $creator;



public function __construct(VideoCreator $creator)

{

$this->creator = $creator;

}



public function __invoke(CreateVideoCommand $command)

{

$id = new VideoId($command->id());

$title = new VideoTitle($command->title());

$url = new VideoUrl($command->url());

$courseId = new CourseId($command->courseId());



$this->creator->create(
$id,
$title,
$url,
$courseId
Create video command handler
bit.ly/codelytv-video-handler
final class VideoCreator

{

private $repository;

private $publisher;



public function __construct(

VideoRepository $repository,

DomainEventPublisher $publisher

) {

$this->repository = $repository;

$this->publisher = $publisher;

}



public function create(

VideoId $id,

VideoTitle $title,

VideoUrl $url,

CourseId $courseId

Video creator application service
DomainEventPublisher $publisher

) {

$this->repository = $repository;

$this->publisher = $publisher;

}



public function create(

VideoId $id,

VideoTitle $title,

VideoUrl $url,

CourseId $courseId

) {

$video =
Video::create($id, $title, $url, $courseId);



$this->repository->save($video);



$this->publisher->publish(
$video->pullDomainEvents()
);

}

Video creator application service
bit.ly/codelytv-video-as
final class Video extends AggregateRoot

{

private $id;

private $title;

private $url;

private $courseId;



public function __construct(

VideoId $id,

VideoTitle $title,

VideoUrl $url,

CourseId $courseId

)

{

$this->id = $id;

$this->title = $title;

Video domain model
$this->courseId = $courseId;

}



public static function create(

VideoId $id,

VideoTitle $title,

VideoUrl $url,

CourseId $courseId

)

{

$video =
new self($id, $title, $url, $courseId);



$video->record(
new VideoCreatedDomainEvent($id)
);



return $video;

}

Video domain model
bit.ly/codelytv-video-model
final class CreateVideoTest extends VideoModuleUnitTestCase

{

/** @var CreateVideoCommandHandler */

private $handler;



protected function setUp()

{

parent::setUp();



$creator = new VideoCreator(

$this->repository(),

$this->domainEventPublisher()

);



$this->handler =
new CreateVideoCommandHandler($creator);

}



/** @test */

Create video test
public function it_should_create_a_video()

{

$command = CreateVideoCommandStub::random();



$video = VideoStub::fromRawValues(

$command->id(),

$command->title(),

$command->url(),

$command->courseId()

);



$event = VideoCreatedDomainEventStub::fromRawValues(

$command->id(),

$command->title(),

$command->url(),

$command->courseId()

);



$this->shouldSaveVideo($video);

$this->shouldPublishDomainEvents([$event]);



$this->dispatch($command, $this->handler);

Create video test
bit.ly/codelytv-video-test
! Tips / knowledge we’d like to have had
◕ Caso real de replanteamiento de diseño de Software
◕ Explicar Refactorings de forma didáctica – QWAN Cards
◕ Introducción Arquitectura Hexagonal – DDD
The Concept
Serious business
5.

Bigger & faster
! Wins:
◕ (SOLID + Software Architecture theory + Testing)
accomplished
◕ Bounded context (even microservices) per concept
◕ More teams
! New:
◕ Accidental complexity (infrastructure, coordination…)
The Concept
Bigger & faster
6.

Recap
! There’s no silver bullet approach. All depends on the context, and the
context will evolve.
! Conclusion: The Concept must be easy to promote with context evolutions
◕ From framework to modules:
◗ Decouple from outside infrastructure in order to isolate the domain
◗ Isolate use cases and work on cohesion
◕ From modules to Bounded Context:
◗ Decouple using buses to interact between them
◕ From whatever to Microservices:
◗ You don’t have to promote anything. This is not a change in terms
source code but in terms of infrastructure
The Concept
Recap
Tabla molona
Framework
coupled code
Modules
Bounded
Contexts
Microservices
Learning curve Low Medium High High++
Teams autonomy Low Medium+ High High++
Infrastructure
Shared (&
coupled)
Shared Individual
Individual &
distributed
Code
maintainability/
extensibility
Low— High High+ High++
Infrastructure
complexity
Low Medium Medium High++++
Communication
between them
Coupled Buses Buses Distributed buses
Deploy Shared Shared Shared Isolated
We’re not promoting microservices per se. Due to infrastructure and accidental complexity It could be the worst option actually.
Takeaways
Takeaways
! Unit Testing sucks (and it’s our fault) - José Armesto
! Vídeos sobre SOLID - CodelyTV
! Hexagonal Architecture - Chris Fidao
! Introducción Arquitectura Hexagonal – DDD - CodelyTV
! Domain-Driven Design in PHP - Carlos Buenosvinos, Christian Soronellas
and Keyvan Akbary
! A wave of command buses - Matthias Noback
! How to Avoid Building a Distributed Monolith - Felipe Dornelas
! PHP Barcelona Monthly Talk: DDD Applied & Symfony MPWAR Edition -
Sergi González & Eloi Poch
! Implementing Domain-Driven Design - Vaughn Vernon
! This talk repositories (to be published on github.com/CodelyTV)
Questions?
Thanks!
Contact
@JavierCane
@CodelyTV
@Rafaoe

Contenu connexe

Tendances

Onion Architecture
Onion ArchitectureOnion Architecture
Onion Architecturematthidinger
 
Introducing Domain Driven Design - codemash
Introducing Domain Driven Design - codemashIntroducing Domain Driven Design - codemash
Introducing Domain Driven Design - codemashSteven Smith
 
Introducing Clean Architecture
Introducing Clean ArchitectureIntroducing Clean Architecture
Introducing Clean ArchitectureRoc Boronat
 
Designing APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven DesignDesigning APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven DesignLaunchAny
 
Brownfield Domain Driven Design
Brownfield Domain Driven DesignBrownfield Domain Driven Design
Brownfield Domain Driven DesignNicolò Pignatelli
 
Design patterns for microservice architecture
Design patterns for microservice architectureDesign patterns for microservice architecture
Design patterns for microservice architectureThe Software House
 
Clean Architecture
Clean ArchitectureClean Architecture
Clean ArchitectureBadoo
 
GotoChgo 2019: Not Just Events: Developing Asynchronous Microservices
GotoChgo 2019: Not Just Events: Developing Asynchronous MicroservicesGotoChgo 2019: Not Just Events: Developing Asynchronous Microservices
GotoChgo 2019: Not Just Events: Developing Asynchronous MicroservicesChris Richardson
 
Domain Driven Design - Strategic Patterns and Microservices
Domain Driven Design - Strategic Patterns and MicroservicesDomain Driven Design - Strategic Patterns and Microservices
Domain Driven Design - Strategic Patterns and MicroservicesRadosław Maziarka
 
Idiomatic Kotlin
Idiomatic KotlinIdiomatic Kotlin
Idiomatic Kotlinintelliyole
 
Clean architecture with ddd layering in php
Clean architecture with ddd layering in phpClean architecture with ddd layering in php
Clean architecture with ddd layering in phpLeonardo Proietti
 
Vertical Slicing Architectures
Vertical Slicing ArchitecturesVertical Slicing Architectures
Vertical Slicing ArchitecturesVictor Rentea
 
Domain Driven Design (DDD)
Domain Driven Design (DDD)Domain Driven Design (DDD)
Domain Driven Design (DDD)Tom Kocjan
 
Design Pattern For C# Part 1
Design Pattern For C# Part 1Design Pattern For C# Part 1
Design Pattern For C# Part 1Shahzad
 

Tendances (20)

Onion Architecture
Onion ArchitectureOnion Architecture
Onion Architecture
 
Introducing Domain Driven Design - codemash
Introducing Domain Driven Design - codemashIntroducing Domain Driven Design - codemash
Introducing Domain Driven Design - codemash
 
DDD with Behat
DDD with BehatDDD with Behat
DDD with Behat
 
Introducing Clean Architecture
Introducing Clean ArchitectureIntroducing Clean Architecture
Introducing Clean Architecture
 
02 api gateway
02 api gateway02 api gateway
02 api gateway
 
Domain Driven Design
Domain Driven DesignDomain Driven Design
Domain Driven Design
 
Designing APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven DesignDesigning APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven Design
 
Domain Driven Design
Domain Driven Design Domain Driven Design
Domain Driven Design
 
Brownfield Domain Driven Design
Brownfield Domain Driven DesignBrownfield Domain Driven Design
Brownfield Domain Driven Design
 
Design patterns for microservice architecture
Design patterns for microservice architectureDesign patterns for microservice architecture
Design patterns for microservice architecture
 
Clean Architecture
Clean ArchitectureClean Architecture
Clean Architecture
 
GotoChgo 2019: Not Just Events: Developing Asynchronous Microservices
GotoChgo 2019: Not Just Events: Developing Asynchronous MicroservicesGotoChgo 2019: Not Just Events: Developing Asynchronous Microservices
GotoChgo 2019: Not Just Events: Developing Asynchronous Microservices
 
Domain Driven Design - Strategic Patterns and Microservices
Domain Driven Design - Strategic Patterns and MicroservicesDomain Driven Design - Strategic Patterns and Microservices
Domain Driven Design - Strategic Patterns and Microservices
 
Idiomatic Kotlin
Idiomatic KotlinIdiomatic Kotlin
Idiomatic Kotlin
 
TypeScript - An Introduction
TypeScript - An IntroductionTypeScript - An Introduction
TypeScript - An Introduction
 
Clean architecture with ddd layering in php
Clean architecture with ddd layering in phpClean architecture with ddd layering in php
Clean architecture with ddd layering in php
 
Angular
AngularAngular
Angular
 
Vertical Slicing Architectures
Vertical Slicing ArchitecturesVertical Slicing Architectures
Vertical Slicing Architectures
 
Domain Driven Design (DDD)
Domain Driven Design (DDD)Domain Driven Design (DDD)
Domain Driven Design (DDD)
 
Design Pattern For C# Part 1
Design Pattern For C# Part 1Design Pattern For C# Part 1
Design Pattern For C# Part 1
 

En vedette

Decoupling the Ulabox.com monolith. From CRUD to DDD
Decoupling the Ulabox.com monolith. From CRUD to DDDDecoupling the Ulabox.com monolith. From CRUD to DDD
Decoupling the Ulabox.com monolith. From CRUD to DDDAleix Vergés
 
When cqrs meets event sourcing
When cqrs meets event sourcingWhen cqrs meets event sourcing
When cqrs meets event sourcingManel Sellés
 
Microservices with Apache Camel, DDD, and Kubernetes
Microservices with Apache Camel, DDD, and KubernetesMicroservices with Apache Camel, DDD, and Kubernetes
Microservices with Apache Camel, DDD, and KubernetesChristian Posta
 
Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)Rob Crowley
 
Architecting Microservices in .Net
Architecting Microservices in .NetArchitecting Microservices in .Net
Architecting Microservices in .NetRichard Banks
 
Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...
Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...
Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...Lightbend
 
Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!
Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!
Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!Yasuyuki Sugitani
 
RDRA DDD Agile
RDRA DDD AgileRDRA DDD Agile
RDRA DDD Agile増田 亨
 

En vedette (8)

Decoupling the Ulabox.com monolith. From CRUD to DDD
Decoupling the Ulabox.com monolith. From CRUD to DDDDecoupling the Ulabox.com monolith. From CRUD to DDD
Decoupling the Ulabox.com monolith. From CRUD to DDD
 
When cqrs meets event sourcing
When cqrs meets event sourcingWhen cqrs meets event sourcing
When cqrs meets event sourcing
 
Microservices with Apache Camel, DDD, and Kubernetes
Microservices with Apache Camel, DDD, and KubernetesMicroservices with Apache Camel, DDD, and Kubernetes
Microservices with Apache Camel, DDD, and Kubernetes
 
Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)Consumer Driven Contracts (DDD Perth 2016)
Consumer Driven Contracts (DDD Perth 2016)
 
Architecting Microservices in .Net
Architecting Microservices in .NetArchitecting Microservices in .Net
Architecting Microservices in .Net
 
Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...
Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...
Using the Actor Model with Domain-Driven Design (DDD) in Reactive Systems - w...
 
Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!
Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!
Scala/Scrum/DDD 困ったこと50連発ガトリングトーク!!
 
RDRA DDD Agile
RDRA DDD AgileRDRA DDD Agile
RDRA DDD Agile
 

Similaire à From framework coupled code to microservices through DDD modules

Symfony2 - from the trenches
Symfony2 - from the trenchesSymfony2 - from the trenches
Symfony2 - from the trenchesLukas Smith
 
Mykhailo Bodnarchuk "The history of the Codeception project"
Mykhailo Bodnarchuk "The history of the Codeception project"Mykhailo Bodnarchuk "The history of the Codeception project"
Mykhailo Bodnarchuk "The history of the Codeception project"Fwdays
 
Symfony2 from the Trenches
Symfony2 from the TrenchesSymfony2 from the Trenches
Symfony2 from the TrenchesJonathan Wage
 
PHP: 4 Design Patterns to Make Better Code
PHP: 4 Design Patterns to Make Better CodePHP: 4 Design Patterns to Make Better Code
PHP: 4 Design Patterns to Make Better CodeSWIFTotter Solutions
 
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress DevelopmentAdam Tomat
 
Web internship Yii Framework
Web internship  Yii FrameworkWeb internship  Yii Framework
Web internship Yii FrameworkNoveo
 
Spout - Building a RESTful web app with Angular.js and BEAR.Sunday
Spout - Building a RESTful web app with Angular.js and BEAR.SundaySpout - Building a RESTful web app with Angular.js and BEAR.Sunday
Spout - Building a RESTful web app with Angular.js and BEAR.SundayRichard McIntyre
 
Django + Vue, JavaScript de 3ª generación para modernizar Django
Django + Vue, JavaScript de 3ª generación para modernizar DjangoDjango + Vue, JavaScript de 3ª generación para modernizar Django
Django + Vue, JavaScript de 3ª generación para modernizar DjangoJavier Abadía
 
What's New In Laravel 5
What's New In Laravel 5What's New In Laravel 5
What's New In Laravel 5Darren Craig
 
So S.O.L.I.D Fu - Designing Better Code
So S.O.L.I.D Fu - Designing Better CodeSo S.O.L.I.D Fu - Designing Better Code
So S.O.L.I.D Fu - Designing Better CodeNeil Crookes
 
Better Testing With PHP Unit
Better Testing With PHP UnitBetter Testing With PHP Unit
Better Testing With PHP Unitsitecrafting
 
Quality assurance for php projects with PHPStorm
Quality assurance for php projects with PHPStormQuality assurance for php projects with PHPStorm
Quality assurance for php projects with PHPStormMichelangelo van Dam
 

Similaire à From framework coupled code to microservices through DDD modules (20)

Symfony2 - from the trenches
Symfony2 - from the trenchesSymfony2 - from the trenches
Symfony2 - from the trenches
 
Mykhailo Bodnarchuk "The history of the Codeception project"
Mykhailo Bodnarchuk "The history of the Codeception project"Mykhailo Bodnarchuk "The history of the Codeception project"
Mykhailo Bodnarchuk "The history of the Codeception project"
 
Symfony2 from the Trenches
Symfony2 from the TrenchesSymfony2 from the Trenches
Symfony2 from the Trenches
 
Yii Introduction
Yii IntroductionYii Introduction
Yii Introduction
 
PHP: 4 Design Patterns to Make Better Code
PHP: 4 Design Patterns to Make Better CodePHP: 4 Design Patterns to Make Better Code
PHP: 4 Design Patterns to Make Better Code
 
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
 
Web internship Yii Framework
Web internship  Yii FrameworkWeb internship  Yii Framework
Web internship Yii Framework
 
Spout - Building a RESTful web app with Angular.js and BEAR.Sunday
Spout - Building a RESTful web app with Angular.js and BEAR.SundaySpout - Building a RESTful web app with Angular.js and BEAR.Sunday
Spout - Building a RESTful web app with Angular.js and BEAR.Sunday
 
Vue business first
Vue business firstVue business first
Vue business first
 
Django + Vue, JavaScript de 3ª generación para modernizar Django
Django + Vue, JavaScript de 3ª generación para modernizar DjangoDjango + Vue, JavaScript de 3ª generación para modernizar Django
Django + Vue, JavaScript de 3ª generación para modernizar Django
 
What's New In Laravel 5
What's New In Laravel 5What's New In Laravel 5
What's New In Laravel 5
 
So S.O.L.I.D Fu - Designing Better Code
So S.O.L.I.D Fu - Designing Better CodeSo S.O.L.I.D Fu - Designing Better Code
So S.O.L.I.D Fu - Designing Better Code
 
Spout
SpoutSpout
Spout
 
Spout
SpoutSpout
Spout
 
Better Testing With PHP Unit
Better Testing With PHP UnitBetter Testing With PHP Unit
Better Testing With PHP Unit
 
Codegnitorppt
CodegnitorpptCodegnitorppt
Codegnitorppt
 
WCLA12 JavaScript
WCLA12 JavaScriptWCLA12 JavaScript
WCLA12 JavaScript
 
Introduction to angular js
Introduction to angular jsIntroduction to angular js
Introduction to angular js
 
Quality assurance for php projects with PHPStorm
Quality assurance for php projects with PHPStormQuality assurance for php projects with PHPStorm
Quality assurance for php projects with PHPStorm
 
PHPSpec BDD Framework
PHPSpec BDD FrameworkPHPSpec BDD Framework
PHPSpec BDD Framework
 

Dernier

Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 

Dernier (20)

Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 

From framework coupled code to microservices through DDD modules

  • 1. From framework coupled code to microservices through DDD modules MVC, Testing, SOLID, Domain-Driven Design, Microservices @CodelyTV @Rafaoe
 @JavierCane#NubeloMeetup - IronHack 25/10/2016
  • 4. Contents gOld days The holy grail of testing Bigger & faster MVC frameworks to the rescue Serious business Recap
  • 5.
  • 8.
  • 9. <?php
 /**
 * The template for displaying all single posts and attachments
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */
 
 get_header(); ?>
 
 <div id="primary" class="content-area">
 <main id="main" class="site-main" role="main">
 <?php
 // Start the loop.
 while (have_posts()) : the_post();
 single.php
  • 10. role="main">
 <?php
 // Start the loop.
 while (have_posts()) : the_post();
 
 // Include the single post content template.
 get_template_part('template- parts/content', 'single');
 
 // If comments are open or we have at least one comment, load up the comment template.
 if (comments_open() || get_comments_number()) {
 comments_template();
 }
 
 if (is_singular('attachment')) {
 single.php
  • 11. ) . '</span> ' . '<span class="post-title">%title</span>',
 ]
 );
 }
 
 // End of the loop.
 endwhile;
 ?>
 
 </main><!-- .site-main -->
 
 <?php get_sidebar('content-bottom'); ?>
 
 </div><!-- .content-area -->
 
 <?php get_sidebar(); ?>
 <?php get_footer(); ?>
 single.php
  • 12. ! Scripts ◕ index.php ◕ utils.php ◕ helpers.php ◕ include & require_once The Concept gOld days
  • 13. ! Have to learn ◕ Mindset ◕ Toolset ◗ PHP – Namespaces y autoloader Composer ◗ PHP – Estilo de código, estándar PSR 2 ◗ Generación automática de código con IntelliJ y PhpStorm ◕ Domain ◗ Incomprehensible Finder Kata Refactoring ! All is The Concept The Concept gOld days
  • 14. ºº
  • 16. <?php
 
 class ctrl_frontend extends Controller {
 
 function ctrl_frontend()
 {
 parent::Controller(); 
 if (!isset($_SESSION)) {
 session_start();
 }
 }
 
 function index()
 {
 $this->load- >model('sobre_nosotros','',TRUE);
 
 THE Controller
  • 18. $datos);
 }
 
 private function sesionIniciada(){
 $this->load->helper('url');
 redirect('ctrl_backend_admin/ proyectoListar','refresh');
 }
 
 private function error($msg){
 $data["tipoError"]=$msg; 
 $this->load->view('error',$data);
 }
 }
 
 /* End of file welcome.php */
 /* Location: ./system/application/controllers/ welcome.php */
 THE Controller
  • 19.
  • 20.
  • 21. ! Wins ◕ Controller per concept ◕ Isolate views & DB ◕ Active Record discovery ! New ◕ Singletons, singletons everywhere ◕ “Models” & other misconceptions ◕ DB structure defined by ORM ! Still ◕ Highly coupled code ◕ “Software Architecture is for UML people” The Concept MVC frameworks to the rescue
  • 22. ! Internal doubts ◕ Por qué NO usar getters y setters | Tell don’t ask ◕ Por qué programar sin usar “else” – Cláusulas de guarda ◕ Varios returns en una función: ¿Mal o bien? ◕ Qué son los Code Smells y el Refactoring ◕ Constructores semánticos – Named constructors The Concept MVC frameworks to the rescue
  • 23. class CourseController extends FOSRestController
 {
 public function getCourseAction(Request $request)
 {
 return $this->getDoctrine()
 ->getEntityManager()
 ->createQueryBuilder()
 ->select('c', 'v')
 ->from('AppBundleModelCourse', 'c')
 ->where('c.level', '>', $request- >get('from_level', 0))
 ->getQuery()
 ->execute();
 }
 
 public function getCourseVideosAction($courseId)
 {
 return $this->getDoctrine()
 Course controller bit.ly/codelytv-course-ctrl-fw
  • 24. class Course extends CourseBaseModel
 {
 public $title;
 public $level;
 
 /**
 * @return mixed
 */
 public function getTitle()
 {
 return $this->title;
 }
 
 /**
 * @param mixed $title
 */
 public function setTitle($title)
 {
 $this->title = $title;
 Course model bit.ly/codelytv-course-model-anemic
  • 25. 3.
 The holy grail of testing
  • 26. ! Wins ◕ If you don’t test, you’re going to suffer ◕ SOLID at a micro-design scale ! New ◕ Fragile test due to coupled code bases ◕ Test private methods or not? ! Still ◕ Controller per concept ◕ “Models”, singletons & laravel “facades” The Concept The holy grail of testing
  • 27. class CourseControllerTest extends PHPUnit_Framework_TestCase
 {
 public function testGetCoursesFilteredByLevel()
 {
 $fromLevel = 0;
 $request = new Request(['from_level' => $fromLevel]);
 
 $container = Mockery::mock(ContainerInterface::class);
 $doctrine = Mockery::mock(Registry::class);
 $entityManager = Mockery::mock(EntityManager::class);
 $queryBuilder = Mockery::mock(QueryBuilder::class);
 $query = Course controller test
  • 28. 
 $controller = new CourseController();
 $controller->setContainer($container);
 $controllerResult = $controller- >getCourseAction($request);
 $this->assertEquals(
 [
 [
 'title' => 'Codely mola',
 'level' => 2,
 ],
 [
 'title' => 'Aprende a decir basicamente como Javi',
 'level' => 5,
 ],
 ],
 $controllerResult
 );
 }
 } Course controller test bit.ly/codelytv-course-ctrl-fw-test
  • 29. ! Testing help ◕ Cómo testear código acoplado: Costuras ◕ ¿Puedes ayudarte del #TDD para diseñar software? – Diseños emergentes ◕ Cómo escuchar a tus test #NaveMisterioCodelyTV ◕ Por qué no usar static ! SOLID ◕ Principio de Responsabilidad Única SRP ◕ Principio de Segregación de Interfaces ISP ◕ Errores comunes al diseñar Interfaces ◕ Principio de Inversión de Dependencias DIP The Concept The holy grail of testing
  • 31. ! Wins ◕ Decoupling business logic from framework ◕ Module per concept ◕ Semantics and clean code as something necessary ◕ Ease testing ◕ SOLID at a macro-design scale ◕ DB structure defined by domain ! New ◕ Unlearning process ◕ Deep research aptitude ◕ Theory misinterpretations The Concept Serious business
  • 32. The growth stages of a programmer 1st stage 2nd stage 3rd stage Knowledge Code complexity Non scientific source :P : https://www.youtube.com/watch?v=2qYll837a_0
  • 33. 
 final class VideoController extends Controller
 {
 private $bus;
 
 public function __construct(CommandBus $bus)
 {
 $this->bus = $bus;
 }
 
 public function createAction(
 string $id,
 Request $request
 ) {
 $command = new CreateVideoCommand(
 $id,
 $request->get('title'),
 $request->get('url'),
 $request->get('course_id')
 Video controller
  • 34. {
 $this->bus = $bus;
 }
 
 public function createAction(
 string $id,
 Request $request
 ) {
 $command = new CreateVideoCommand(
 $id,
 $request->get('title'),
 $request->get('url'),
 $request->get('course_id')
 );
 
 $this->bus->dispatch($command);
 
 return new HttpCreatedResponse();
 }
 }
 Video controller bit.ly/codelytv-video-ctrl
  • 35. final class CreateVideoCommandHandler implements Command
 {
 private $creator;
 
 public function __construct(VideoCreator $creator)
 {
 $this->creator = $creator;
 }
 
 public function __invoke(CreateVideoCommand $command)
 {
 $id = new VideoId($command->id());
 $title = new VideoTitle($command->title());
 $url = new VideoUrl($command->url());
 $courseId = new CourseId($command->courseId());
 
 $this->creator->create( $id, $title, $url, $courseId Create video command handler bit.ly/codelytv-video-handler
  • 36. final class VideoCreator
 {
 private $repository;
 private $publisher;
 
 public function __construct(
 VideoRepository $repository,
 DomainEventPublisher $publisher
 ) {
 $this->repository = $repository;
 $this->publisher = $publisher;
 }
 
 public function create(
 VideoId $id,
 VideoTitle $title,
 VideoUrl $url,
 CourseId $courseId
 Video creator application service
  • 37. DomainEventPublisher $publisher
 ) {
 $this->repository = $repository;
 $this->publisher = $publisher;
 }
 
 public function create(
 VideoId $id,
 VideoTitle $title,
 VideoUrl $url,
 CourseId $courseId
 ) {
 $video = Video::create($id, $title, $url, $courseId);
 
 $this->repository->save($video);
 
 $this->publisher->publish( $video->pullDomainEvents() );
 }
 Video creator application service bit.ly/codelytv-video-as
  • 38. final class Video extends AggregateRoot
 {
 private $id;
 private $title;
 private $url;
 private $courseId;
 
 public function __construct(
 VideoId $id,
 VideoTitle $title,
 VideoUrl $url,
 CourseId $courseId
 )
 {
 $this->id = $id;
 $this->title = $title;
 Video domain model
  • 39. $this->courseId = $courseId;
 }
 
 public static function create(
 VideoId $id,
 VideoTitle $title,
 VideoUrl $url,
 CourseId $courseId
 )
 {
 $video = new self($id, $title, $url, $courseId);
 
 $video->record( new VideoCreatedDomainEvent($id) );
 
 return $video;
 }
 Video domain model bit.ly/codelytv-video-model
  • 40. final class CreateVideoTest extends VideoModuleUnitTestCase
 {
 /** @var CreateVideoCommandHandler */
 private $handler;
 
 protected function setUp()
 {
 parent::setUp();
 
 $creator = new VideoCreator(
 $this->repository(),
 $this->domainEventPublisher()
 );
 
 $this->handler = new CreateVideoCommandHandler($creator);
 }
 
 /** @test */
 Create video test
  • 41. public function it_should_create_a_video()
 {
 $command = CreateVideoCommandStub::random();
 
 $video = VideoStub::fromRawValues(
 $command->id(),
 $command->title(),
 $command->url(),
 $command->courseId()
 );
 
 $event = VideoCreatedDomainEventStub::fromRawValues(
 $command->id(),
 $command->title(),
 $command->url(),
 $command->courseId()
 );
 
 $this->shouldSaveVideo($video);
 $this->shouldPublishDomainEvents([$event]);
 
 $this->dispatch($command, $this->handler);
 Create video test bit.ly/codelytv-video-test
  • 42. ! Tips / knowledge we’d like to have had ◕ Caso real de replanteamiento de diseño de Software ◕ Explicar Refactorings de forma didáctica – QWAN Cards ◕ Introducción Arquitectura Hexagonal – DDD The Concept Serious business
  • 44. ! Wins: ◕ (SOLID + Software Architecture theory + Testing) accomplished ◕ Bounded context (even microservices) per concept ◕ More teams ! New: ◕ Accidental complexity (infrastructure, coordination…) The Concept Bigger & faster
  • 46. ! There’s no silver bullet approach. All depends on the context, and the context will evolve. ! Conclusion: The Concept must be easy to promote with context evolutions ◕ From framework to modules: ◗ Decouple from outside infrastructure in order to isolate the domain ◗ Isolate use cases and work on cohesion ◕ From modules to Bounded Context: ◗ Decouple using buses to interact between them ◕ From whatever to Microservices: ◗ You don’t have to promote anything. This is not a change in terms source code but in terms of infrastructure The Concept Recap
  • 47. Tabla molona Framework coupled code Modules Bounded Contexts Microservices Learning curve Low Medium High High++ Teams autonomy Low Medium+ High High++ Infrastructure Shared (& coupled) Shared Individual Individual & distributed Code maintainability/ extensibility Low— High High+ High++ Infrastructure complexity Low Medium Medium High++++ Communication between them Coupled Buses Buses Distributed buses Deploy Shared Shared Shared Isolated We’re not promoting microservices per se. Due to infrastructure and accidental complexity It could be the worst option actually.
  • 49. Takeaways ! Unit Testing sucks (and it’s our fault) - José Armesto ! Vídeos sobre SOLID - CodelyTV ! Hexagonal Architecture - Chris Fidao ! Introducción Arquitectura Hexagonal – DDD - CodelyTV ! Domain-Driven Design in PHP - Carlos Buenosvinos, Christian Soronellas and Keyvan Akbary ! A wave of command buses - Matthias Noback ! How to Avoid Building a Distributed Monolith - Felipe Dornelas ! PHP Barcelona Monthly Talk: DDD Applied & Symfony MPWAR Edition - Sergi González & Eloi Poch ! Implementing Domain-Driven Design - Vaughn Vernon ! This talk repositories (to be published on github.com/CodelyTV)