Introduction to the persistent layer implemented for FLOW3. The presentation was held on the 4th International TYPO3 Conference in Berlin, October 2008.
How else can you write the code in PHP?Maksym Hopei
Usually we are limited with our environment and habits. When we make changes to a product or when we work with a team we follow the coding standards and the existing approaches to make our life and life of our teammates easier.
But often we do the same when we start a new product on our own ruled by our habits and by the limitations of our horizon.
This talk is intended to introduce some uncustomary ways to write code.
Dig Deeper into WordPress - WD Meetup CairoMohamed Mosaad
Dig deeper into WordPress is a presentation made for Web Designers Meetup in Cairo taken place on 17th Dec 2012.
Signup at WPMonkeys.com to get notified when awesome new WordPress related content is published.
Introduction to the persistent layer implemented for FLOW3. The presentation was held on the 4th International TYPO3 Conference in Berlin, October 2008.
How else can you write the code in PHP?Maksym Hopei
Usually we are limited with our environment and habits. When we make changes to a product or when we work with a team we follow the coding standards and the existing approaches to make our life and life of our teammates easier.
But often we do the same when we start a new product on our own ruled by our habits and by the limitations of our horizon.
This talk is intended to introduce some uncustomary ways to write code.
Dig Deeper into WordPress - WD Meetup CairoMohamed Mosaad
Dig deeper into WordPress is a presentation made for Web Designers Meetup in Cairo taken place on 17th Dec 2012.
Signup at WPMonkeys.com to get notified when awesome new WordPress related content is published.
Powerpoint file(incl. animations!): http://db.tt/ktTDiQSG
Demostration module with example: http://db.tt/Ix2ovTno
This is the slides of the presentation "Drupal & Javascript" who presented at DrupalCamp Israel 2012.
Why Hacking WordPress Search Isn't Some Big Scary ThingChris Reynolds
Developers can be a stubborn lot. We like to focus on the things we know really well, and things we don’t deal with as often can be seen as “hard”. Search is one of those things that gets written off a lot, few devs I know will deal with it (voluntarily), and almost everyone will tell you “WordPress search sucks.” In this presentation you will learn that not only do you know more about how search works than you thought you did, but maybe give you a better understanding of how WordPress works as a whole, as well as showing you some cool tricks that you can do with WordPress search.
Talk I gave at Maceió DEV Meetup #6. Not only about Command Bus/Command Interface or whatever you name it, but a compilation of cool articles I found only that may help with understanding this architecture.
jQuery UI Widgets, Drag and Drop, Drupal 7 JavascriptDarren Mothersele
These are the slides from my presentation at the London Drupal Drop In December 2011. I have posted more information to go along with these slides on my <a>Drupal blog</a>.
Con la versione 7 di Drupal è stato introdotto il concetto di Entity, poi evoluto con la versione 8, utilizzato come base di buona parte degli elementi core (nodi, tassonomie, utenti, ...), ma - soprattutto - è stata data la possibilità di costruire entity custom. L'utilizzo di queste apre le possibilità di personalizzazione dello strumento ad un livello superiore velocizzando notevolmente lo sviluppo.
Verranno mostrate le potenzialità nell'uso delle Entity custom e le integrazioni possibili.
Your code sucks, let's fix it - DPC UnConRafael Dohms
How do you measure the quality of your code? Performance and testing are just one aspect of code, in order to meet deadlines and make maintenance quicker you also need your code to be readable, decoupled and generally easier to comprehend and work with. This talk will go over tips and exercises to help you identify trouble areas, refactor them and train you to write better code in future projects. Come make your code look and function better.
Powerpoint file(incl. animations!): http://db.tt/ktTDiQSG
Demostration module with example: http://db.tt/Ix2ovTno
This is the slides of the presentation "Drupal & Javascript" who presented at DrupalCamp Israel 2012.
Why Hacking WordPress Search Isn't Some Big Scary ThingChris Reynolds
Developers can be a stubborn lot. We like to focus on the things we know really well, and things we don’t deal with as often can be seen as “hard”. Search is one of those things that gets written off a lot, few devs I know will deal with it (voluntarily), and almost everyone will tell you “WordPress search sucks.” In this presentation you will learn that not only do you know more about how search works than you thought you did, but maybe give you a better understanding of how WordPress works as a whole, as well as showing you some cool tricks that you can do with WordPress search.
Talk I gave at Maceió DEV Meetup #6. Not only about Command Bus/Command Interface or whatever you name it, but a compilation of cool articles I found only that may help with understanding this architecture.
jQuery UI Widgets, Drag and Drop, Drupal 7 JavascriptDarren Mothersele
These are the slides from my presentation at the London Drupal Drop In December 2011. I have posted more information to go along with these slides on my <a>Drupal blog</a>.
Con la versione 7 di Drupal è stato introdotto il concetto di Entity, poi evoluto con la versione 8, utilizzato come base di buona parte degli elementi core (nodi, tassonomie, utenti, ...), ma - soprattutto - è stata data la possibilità di costruire entity custom. L'utilizzo di queste apre le possibilità di personalizzazione dello strumento ad un livello superiore velocizzando notevolmente lo sviluppo.
Verranno mostrate le potenzialità nell'uso delle Entity custom e le integrazioni possibili.
Your code sucks, let's fix it - DPC UnConRafael Dohms
How do you measure the quality of your code? Performance and testing are just one aspect of code, in order to meet deadlines and make maintenance quicker you also need your code to be readable, decoupled and generally easier to comprehend and work with. This talk will go over tips and exercises to help you identify trouble areas, refactor them and train you to write better code in future projects. Come make your code look and function better.
Le Concept de la Stratégie de Spécialisation Intelligente / The Concept of a Strategy for Smart Specialisation
Mr. Dominique FORAY, École Polytechnique Fédérale de Lausanne (EPFL)
Séminaire sur la Stratégie de Spécialisation Intelligente / S3 organisé par l'ANPR avec le support de l'UE les 17 et 18 mai 2016 à Hammamet.
Introduction to SEO: Domain and Linking StructureE-Web Marketing
- What is an example of a good URL structure?
- What is an example of a good domain structure?
- What is site architecture?
- How does subdomain authority transfer work?
Find out more about SEO: http://www.ewebmarketing.com.au
How does search engine oprimisation (SEO) work? What are some of the common SEO factors? This beginner level presentation is a quick guide to get you up to speed to how search engines operate.
For more SEO tips and tricks for your business, visit our site: http://www.ewebmarketing.com.au/
A presentation and talk at the engagelocal conference (engagelocal.org): ournalists work more intimately with their communities to educate and empower residents? Two Oakland-based journalists will share insights from their local experiments, Hack the Hood and Eyes on Oakland, that blur the lines between journalism, art, education and community organizing. They'll offer out-of-the-box tips on how to jumpstart inclusive, on-the-ground initiatives that invite community members to learn, create and share. Susan Mernit | Hack the Hood; Cole Goins, Reveal and CIR
Persistence is one of the most important part in a PHP project. Persisting data to a database came with PHP/FI and its MySQL support. From native extensions and PHP4 database abstraction libraries to PDO and modern ORM frameworks, you will (re)discover how persistence has evolved during the last decade. This talk will also introduce the future of data persistence with the growing success of alternative storage engines.
Lithium: The Framework for People Who Hate FrameworksNate Abele
This is the presentation was given at ConFoo on March 11th by Nate Abele and Joël Perras, and is an introduction to the architectural problems with other frameworks that Lithium was designed to address, and how it addresses them. It also introduces programming paradigms like functional and aspect-oriented programming which address issues that OOP doesn't account for.
Finally, the talk provides a quick overview of the innovative and unparalleled features that Lithium provides, including the data layer, which supports both relational and non-relational databases.
MongoDB is an open source document database, and the leading NoSQL database. MongoDB is a document oriented database that provides high performance, high availability, and easy scalability. It is Maintained and supported by 10gen.
It's back...
AND it's better than ever, DBTNG (Database: The Next Generation) is nothing to be scared of and we'll show how easy it is to create both static and dynamic query statements for use in your custom modules and Drupal 6 to Drupal 7 module migration work. In this session we'll take a look at the Drupal 7 database abstraction layer and the database API and cover:
To db_query or not to db_query?
Dynamic query syntax and fluid interfaces
Working with result sets
Joins, conditional statements, subselects and sorting with db_select
Tagging your db_select queries for hook awareness
Decorator patterns for db_select -
db_update, db_insert, db_delete and our new friend, db_merge
Explore alternatives to views and how and when to make that call.
After this session attendees will be ready for Drupal III: Drupalicon Takes Manhattan
PHP Data Objects (PDO) provides a clear, simple (but powerful), unified API for working with all our favorite databases. Features include prepared statements with bound parameters (for all databases, even those that don’t natively support them), transactions, cursors, LOBs, and flexible error handling.
How do you measure the quality of your code? Performance and testing are just one aspect of code, in order to meet deadlines and make maintenance quicker you also need your code to be readable, decoupled and generally easier to comprehend and work with. This talk will go over tips and exercises to help you identify trouble areas, refactor them and train you to write better code in future projects. Come make your code look and function better.
https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes - origin
Laravel 5.1 raised the bar for framework documentation, but there's much, much more lurking beneath the surface. In this 50-minute session, we'll explore 50 (yes, 50!) high-leverage implementation tips & tricks that you just won't find in the docs: the IoC Container, Blade, Eloquent, Middleware, Routing, Commands, Queues, Events, Caching — we'll cover them all! Join us as we drink from the fire hose & learn to take advantage of everything that Laravel has to offer to build better software faster!
During the Neos Conference 2024 I talked – again – about updating Neos. Next to why, when and how you should be updating I talked about going to Neos 9…
There are many ways to start a new Neos-based project and there is a multitude of tools involved. These slides introduce a "perfect" way to set up a Neos project. A recording of the presentation is available at https://youtu.be/hWJSK0pE1H0
The presentation explains how multi-language websites can be built with Neos. But it doesn't stop there, since Neos allows for arbitrary content dimensions - be it for country-specific content, targeting different customer segments, personalization, …
This presentation was given during Inspiring Conference in Kolbermoor on March 28th, 2015.
FLOW3 spearheaded a move towards Git adoption within the TYPO3 project, and we are more pleased every day with the decision to turn away from Subversion and toward GIt.
In this session I explain the workflow we adopted using Git and the code review system Gerrit. I will show how it makes collaborative development more productive and improves code quality at the same time.
Ein Überblick über die Mittel zu Kommunikation und Kollaboration in der TYPO3 Community. Vorgestellt beim 15. "Wissensmanagement Stammtisch Braunschweig" im Mai 2007.
Introduction to what Unicode support in PHP6 means and how it will change the way PHP developers work. Presented at the 3rd International TYPO3 Conference 2007 in Karlsruhe, Germany.
How we plan to implement a Content Repository in pure PHP for use with TYPO3 5.0. Presented at 3rd International TYPO3 Conference 2007 in Karlsruhe, Germany.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Welcome to the first live UiPath Community Day Dubai! Join us for this unique occasion to meet our local and global UiPath Community and leaders. You will get a full view of the MEA region's automation landscape and the AI Powered automation technology capabilities of UiPath. Also, hosted by our local partners Marc Ellis, you will enjoy a half-day packed with industry insights and automation peers networking.
📕 Curious on our agenda? Wait no more!
10:00 Welcome note - UiPath Community in Dubai
Lovely Sinha, UiPath Community Chapter Leader, UiPath MVPx3, Hyper-automation Consultant, First Abu Dhabi Bank
10:20 A UiPath cross-region MEA overview
Ashraf El Zarka, VP and Managing Director MEA, UiPath
10:35: Customer Success Journey
Deepthi Deepak, Head of Intelligent Automation CoE, First Abu Dhabi Bank
11:15 The UiPath approach to GenAI with our three principles: improve accuracy, supercharge productivity, and automate more
Boris Krumrey, Global VP, Automation Innovation, UiPath
12:15 To discover how Marc Ellis leverages tech-driven solutions in recruitment and managed services.
Brendan Lingam, Director of Sales and Business Development, Marc Ellis
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Enhancing Performance with Globus and the Science DMZGlobus
ESnet has led the way in helping national facilities—and many other institutions in the research community—configure Science DMZs and troubleshoot network issues to maximize data transfer performance. In this talk we will present a summary of approaches and tips for getting the most out of your network infrastructure using Globus Connect Server.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
3. An example to use...
Let’s use a Blog
A Blog project has
• a Blog
• some Posts,
• Comments and
• Tags
Easy enough, eh?
Inspiring people to
share
4. Setting the stage
A blog is requested
We want to show posts
We have data somewhere
We use MVC and have a view waiting
We only need to hand over the posts
Inspiring people to
share
5. Blog tables^Wrelations
blogs
uid name
1 FLOW3
posts
uid blog_id title author text date
1 1 FLOW3 R. Lemke Mēs esam vissforšākie, tāpēc ka... 2008-10-07
comments
uid post_id author text
1 1 Kasper Skårhøj Nice writeup, but...
posts_tags tags
post_id tag_id uid name
1 1 1 PHP
1 3 2 DDD
3 FLOW3
6. Straight DB usage
$row = mysql_fetch_assoc(
mysql_query('SELECT uid FROM blogs WHERE name = '' .
mysql_real_escape_string($blog) .
''')
);
$blogId = $row['uid'];
$posts = array();
$res = mysql_query('SELECT * FROM posts WHERE blog_id = ' . $blogId);
while (($row = mysql_fetch_assoc($res)) !== FALSE) {
$posts[] = $row;
}
$view->setPosts($posts);
Inspiring people to
share
7. Straight DB usage
$row = mysql_fetch_assoc(
mysql_query('SELECT uid FROM blogs WHERE name = '' .
mysql_real_escape_string($blog) .
''')
);
$blogId = $row['uid'];
$posts = array();
SQL injection!
•
$res = mysql_query('SELECT * FROM posts WHERE blog_id = ' . $blogId);
while (($row = mysql_fetch_assoc($res)) !== FALSE) {
•clumsy code
$posts[] = $row;
}
•other RDBMS
$view->setPosts($posts);
•field changes?
Inspiring people to
share
8. Straight DB usage
$row = mysql_fetch_assoc(
mysql_query('SELECT uid FROM blogs WHERE name = '' .
mysql_real_escape_string($blog) .
''')
);
$blogId = $row['uid'];
$posts = array();
SQL injection!
•
$res = mysql_query('SELECT * FROM posts WHERE blog_id = ' . $blogId);
while (($row = mysql_fetch_assoc($res)) !== FALSE) {
•clumsy code
$posts[] = $row;
}
•other RDBMS
$view->setPosts($posts);
•field changes?
Inspiring people to
share
12. ORM tools
ORM means Object-Relational Mapping
Objects represent a database row
Most tools are rather ROM – still focus on relational thinking
Implementations differ
• ORM base classes need to be extended
• Schema is used to generate code
Inspiring people to
share
13. Active Record
$blog = new Blog($blog);
$posts = $blog->getPosts();
$view->setPosts($posts);
Inspiring people to
share
14. Active Record
$blog = new Blog($blog);
$posts = $blog->getPosts();
$view->setPosts($posts);
very nice
•
•dependency on
ORM tool?
•save()/delete(
)
Inspiring people to
share
15. Active Record
$blog = new Blog($blog);
$posts = $blog->getPosts();
$view->setPosts($posts);
very nice
•
•dependency on
$post->save();
ORM tool?
$post->delete();
•save()/delete(
)
Inspiring people to
share
16. “DDD persistence”
Domain Models encapsulate behavior and data
Concerned about the problem – only
Infrastructure is of no relevance
Inspiring people to
share
17. Entities
Identity is important
Are not defined by their attributes
Examples could be...
• People
• Blog posts
Inspiring people to
share
18. Value objects
Have no indentity
Their value is of importance
Are interchangeable
Examples could be...
• Colors
• Numbers
• Tags in a blog
Inspiring people to
share
19. Aggregates
Cluster associated objects
Have a boundary and a root
The root is a specific entity
References from outside point to the root
An example for an aggregate:
• Book
Inspiring people to
share
20. Repositories
Provide access to entities (and aggregates)
Allow to find a starting point for traversal
Persisted objects can be searched for
Queries can be built in various ways
Handle storage of additions and updates
Inspiring people to
share
21. A Domain Model
Blog
Repository
Blog
Post
Comment Tag
Inspiring people to
share
22. A Domain Model
Blog
Repository
it
Blog
Repos
Post
Comment Tag
Inspiring people to
share
23. A Domain Model
Blog
Repository
it
Blog
Repos
Post
Comment Tag
Inspiring people to
share
24. A Domain Model
Blog
Repository
it
Blog
Repos
Post
Comment Tag
Inspiring people to
share
25. A Domain Model
Blog
Repository
it
Blog
Repos
Post
Aggre-
gates Comment Tag
Inspiring people to
share
26. A Domain Model
Post
Comment Tag
Inspiring people to
share
27. A Domain Model
Post
Comment Tag
Inspiring people to
share
28. A Domain Model
Post
Entity
Comment Tag
Inspiring people to
share
29. A Domain Model
Post
Entity
Comment Tag
Entity
Inspiring people to
share
30. A Domain Model
Post
Entity Val
ue
Comment Tag
Entity
Inspiring people to
share
35. Using FLOW3...
You just implement the model
No need to care about persisting your model
FLOW3 handles this for you – transparently
Even a Repository only needs little work
Define relevant metadata in the source file
Inspiring people to
share
36. The Blog class
class Blog {
/**
* @var string
*/
protected $name;
/**
* @var SplObjectStorage
*/
protected $posts;
/**
* Constructs this blog
*
* @param string $name Name of this blog
*/
public function __construct($name) {
$this->name = $name;
}
Inspiring people to
share
37. The Blog class
/**
* Adds a post to this blog
*
* @param F3BlogDomainModelPost $post
* @return void
* @author Karsten Dambekalns <karsten@typo3.org>
*/
public function addPost(F3BlogDomainModelPost $post) {
$this->posts->attach($post);
}
/**
* Returns all posts in this blog
*
* @return SplObjectStorage containing F3BlogDomainModelPost
* @author Karsten Dambekalns <karsten@typo3.org>
*/
public function getPosts() {
return clone $this->posts;
}
Inspiring people to
share
38. The Post class
class Post {
/**
* @var string
* @identity
*/
protected $title;
/**
* @var SplObjectStorage
*/
protected $comments;
/**
* Adds a comment to this post
*
* @param F3BlogDomainModelComment $comment
* @return void
* @author Robert Lemke <robert@typo3.org>
*/
public function addComment(F3BlogDomainModelComment $comment) {
$this->comments->attach($comment);
}
Inspiring people to
share
39. The Tag class
class Tag {
/**
* @var string
*/
protected $name;
/**
* Setter for name
*
* @param string $name
* @author Karsten Dambekalns <karsten@typo3.org>
*/
public function __construct($name) {
$this->name = $name;
}
Inspiring people to
share
40. The BlogRepository
Now this really must be a complex piece of code, no?
Inspiring people to
share
41. The BlogRepository
Now this really must be a complex piece of code, no?
One word: No
Inspiring people to
share
42. The BlogRepository
Now this really must be a complex piece of code, no?
One word: No
class BlogRepository extends F3FLOW3PersistenceRepository {
/**
* Returns one or more Blogs with a matching name if found.
*
* @param string $name The name to match against
* @return array
*/
public function findByName($name) {
$query = $this->createQuery();
$blogs = $query->matching($query->equals('name', $name))->execute();
return $blogs;
}
}
Inspiring people to
share
43. The BlogRepository
Now this really must be a complex piece of code, no?
One word: No
class BlogRepository extends F3FLOW3PersistenceRepository {
/**
* Returns one or more Blogs with a matching name if found.
*
* @param string $name The name to match against
* @return array
*/
public function findByName($name) {
$query = $this->createQuery();
$blogs = $query->matching($query->equals('name', $name))->execute();
return $blogs;
}
}
Inspiring people to
share
51. @nnotations used
@entity
@valueobject
@var
@transient
@uuid
@identity
@lazy
Inspiring people to
share
52. Persistence Manager
Mostly invisible to developers
Manages additions of and updates to objects
Concerned only about objects in repositories
Collects objects and hands over to backend
Allows for objects being persisted at any time
Automatically called to persist at end of script run
Inspiring people to
share
59. Simplified stack
TYPO3 Content Repository
Inspiring people to
share
60. Simplified stack
FLOW3 Persistence
TYPO3 Content Repository
Inspiring people to
share
61. Transparent persistence
Explicit support for Domain-Driven Design
Class Schemata are defined by the Domain Model class
• No need to write an XML or YAML schema definition
• No need to define the database model and object model
multiple times at different places
Automatic persistence in the JSR-283 based Content Repository
Legacy data sources can be mounted
Inspiring people to
share
62. JSR-283 Repository
Defines a uniform API for accessing content repositories
A Content Repository
• is an object database for storage, search and retrieval of
hierarchical data
• provides methods for versioning, transactions and
monitoring
TYPO3CR is the first PHP implementation of JSR-283
Karsten Dambekalns is member of the JSR-283 expert group
Inspiring people to
share
63. Legacy databases
Often you...
• still need to access some existing RDBMS
• need to put data somewhere for other systems to access
The Content Repository will allow “mounting” of RDBMS tables
Through this you can use the same persistence flow
Inspiring people to
share
64. Legacy databases
Often you...
future
• still need to access some existing RDBMS
fun!
• need to put data somewhere for other systems to access
The Content Repository will allow “mounting” of RDBMS tables
Through this you can use the same persistence flow
Inspiring people to
share
65. Query Factory
Creates a query for you
Decouples persistence layer from backend
Must be implemented by backend
API with one method:
• public function create($className);
Inspiring people to
share
66. Query objects
Represent a query for an object type
Allow criteria to be attached
Must be implemented by backend
Simple API
• execute()
• matching()
• equals(), lessThan(), ...
• ...
Inspiring people to
share
67. Client code ignores
Repository
implementation;
Developers do not!
Eric Evans
Inspiring people to
share
70. Usability
Repositories extending FLOW3’s base Repository
• have basic methods already
• only need to implement custom find methods
• already have a query object set up for “their” class
No tables, no schema, no XML, no hassle
No save calls, no fiddling with hierarchies
Ready-to-use objects returned
Inspiring people to
share
75. Literature
Domain-Driven Design
Eric Evans, Addison-Wesley
Inspiring people to
share
76. Literature
Domain-Driven Design
Eric Evans, Addison-Wesley
Applying Domain-Driven Design and Patterns
Jimmy Nilsson, Addison-Wesley
Inspiring people to
share
77. Literature
Domain-Driven Design
Eric Evans, Addison-Wesley
Applying Domain-Driven Design and Patterns
Jimmy Nilsson, Addison-Wesley
Patterns of Enterprise Application Architecture
Martin Fowler, Addison-Wesley
Inspiring people to
share
78.
79. Flickr photo credits:
megapixel13 (barcode), rmrayner (ring), Ducatirider (grapes), Here’s Kate (book shelf)
Pumpkin pictures:
http://ptnoticias.com/pumpkinway/
Inspiring people to
share