SlideShare una empresa de Scribd logo
1 de 17
Increase your
performance and code
quality
scaffolding and MDD
Vesin Dusko:
vesindusko@gmail.com
@vesindusko
Reality check
• By 2019 there will be 26.4 million software
developers, it is the fastest growing profession in
the world with 46% growth.
• But that is not nearly enough. In Germany alone
there are 40000 unfulfilled positions at this moment
• IT is the fastest changing industry
• Startups and agile pose a new challenge
Better yourself
• master things that you do every day (language,
frameworks, best practices,IDE, etc.)
• read, learn, experiment with new things
• centralize your knowledge, make it reusable
(libraries, frameworks, tools, scripts, plugins…)
• impostor syndrome
• repeat until you are in the business
Automate yourself
• No matter how good you are, you have only
two hands and one keyboard.
• Automate your processes (build,
deployment, etc. )
• Available scaffolding tools… (Spring Roo,
Ruby on Rails, JHipster, Bower, Gulp,
Grails, etc)
• Can we do more? Refuse to do repetitive
work!
MDE, MDD & MDA
• “Model-driven engineering (MDE) is a software development
methodology which focuses on creating and exploiting domain models,
which are conceptual models of all the topics related to a specific
problem.”
• “Model-driven development (MDD) is an approach to software
development where extensive models are created before source code is
written”
• “Model-driven architecture (MDA) is a software design approach for the
development of software systems. It provides a set of guidelines for the
structuring of specifications, which are expressed as models.”
• Model - “The model-driven architecture approach defines system
functionality using a platform-independent model (PIM) using an
appropriate domain-specific language (DSL)”
• Generator - “Code generation means that the user abstractly models
solutions, which are connoted by some model data, and then an
automated tool derives from the models parts or all of the source code for
the software system.”
drytools
don’t repeat yourself
• Multi module project generator
• Written in Scala
• drydsl (readable, optimal …)
• dryvalidation
• drypostprocessor
• drygenerators (maintainable, customisable…)
drytools DSL
project_name project[settings](
service_name server[settings](
property_name property[settings]…
model_name model[settings](
properties …
uniques and indexes …
queries …)
api_name api[api settings](
endpoint_name endpoint[settings] …)
)…
web_app_name web[settings] …
android_app_name android[settings] …
ios_app_name ios[settings] …
)
Models
Role enum(USER, MODERATOR, ADMIN)
User model [type sql](
id long(primary key)
username text (min 6, max 20, unique)
passwordHash text (min 128, max 128)
firstName text (min 2, max 60)
lastName text (min 2, max 60)
gender enum(MALE, FEMALE)
role Role (default USER)
birthDate optional date
findAll from User
findById from User where User.Id == id
findByUsername from User where User.username == username
findByFirstName from User where User.firstName == firstName
findByLastName from User where User.lastName == lastName
findByGender from User where User.gender == gender
findByRole from User where User.gender == gender
findMaleUsers from User where User.gender == “MALE”
findAdminUser from User where User.role == “ADMIN”
findByName from User where User.firstName like name or User.lastName like name or
User.userName == name
)
ModelsRole enum(USER, MODERATOR, ADMIN)
User model (
username text (min 6, max 20, unique)
passwordHash text (min 128, max 128)
firstName text (min 2, max 60)
lastName text(min 2, max 60)
gender enum(MALE, FEMALE)
role Role (default USER)
birthDate optional date
findMaleUsers from User where User.gender == “MALE”
findAdminUser from User where User.role == “ADMIN”
findByName from User where User.firstName like name or User.lastName like name or
User.userName == name
)
Role enum(USER, MODERATOR, ADMIN)
User model (
username text (min 6, max 20, unique)
passwordHash text (min 128, max 128)
firstName text (min 2, max 60)
lastName text (min 2, max 60)
gender enum (MALE, FEMALE)
role Role (default USER)
birthDate optional date
findMaleUsers from User where User.gender ==
“MALE”
findAdminUser from User where User.role ==
“ADMIN”
findByName from User where User.firstName like
name or User.lastName like name or User.userName
== name
)
Owner model (
user User (unique)
findByUser from Owner where Owner.user == user
findByIdWithUser from Owner with Vet.user from
Owner
findPetsByOwnerId min Pet where Pet.owner from
Pet where Pet.owner == owner
)
Vet model (
user User (unique)
findByUser from Vet where Vet == user
findByIdWithUser from Vet with Vet.user from Vet
findVisits from Visits where Visit.vet == vet
)
PetType enum (DOG, CAT)
Pet (
owner Owner
type PetType
birthDate date
description text (max 1024)
)
Visit (
Vet vet
Pet pet
date date
note text[max 1024]
findByIdWithVetAndPet from Visit with Visit.vet
from Visit with Visit.pet from Visit where Vet.id == id
)
Middleware
• Services
• Security
• Simple security -security (principal User)
• Role security - security (principal User, role Role)
• Permission based security - security (principal User, action UserAction)
• SignIn
• Username - signIn (username)
• Email - signIn (email)
• Google - signIn (google)
• Facebook - signIn (facebook)
APIsUserApi api(
adminUsers find [query User.adminUsers, secured ADMIN, rest "/admins"]
users find [query User.findAll, response (User.id, User.email, User.firstName, User.lastName), secured, rest
"/users"]
nonAdmins find [from User where User.role != "ADMIN", secured, rest ]
user crud [model User, secured ADMIN, rest]
)
OwnerApi api(
owner crud [model Owner, secured ADMIN](
user.firstName [save default "Petar", update default "Pera"]
user.lastName [min 30, max 40]
address [visible (create, read) ]
user.email
notes optional text[min 2, max 10]
)
owners find [from Owner with Owner.user as User from Owner where optional Owner.address like address
response (Owner.id, User.email, User.firstName, User.lastName), secured ADMIN, rest “/owner]
ownersPets find [ from Owner with Pet.owner from Owner with Owner.user from Owner where Owner.id ==
ownerId response (Pet.id, Owner.id, Pet.name), secured, rest “/owner/:ownerId/pets"]
……
APIs…
myPets find [from Owner with Pet.owner from Owner with Owner.user from Owner where Owner.user ==
principal, rest, secured]
PetWithOwnerName dto(
Pet.name
Pet.petType
User.firstName
User.lastName
firstPet enum(YES, NO)
)
PetDto dto(Pet.id, Pet.name)
VetWithSpecialties dto(
User.firstName
specialties list VetSpeciality.name
pets list PetDto
)
vetsWithSpecialties custom [request PetWithOwnerName, response list VetWithSpecialties, secured
ADMIN, get "/vets"]
vetInfo custom [request dto(Vet.id), response VetWithSpecialties, secured, get "/vet/:id", transactional
sql]
)
Clients
• web client (AngularJS, Bootstrap, Yeoman,
Grunt, Bower) with ApiCaller and ApiMock
• iOS client with ApiCaller and ApiMock
• Android client with ApiCaller and ApiMock
What's next?
• New DSL features
• Push Api
• Web sockets
• UI components
• Android and iOs notifications
• Big data analysis with spark
Pros/Cons
• Pros
• speed up to 5x
• best practices
• architecture as a code
• refactoring
• global improvements
• learning tool
• we are in control
• Cons
• controversial technique
• hard to implement
• hard to balance
• maintenance
• not suitable for every case
Thank you.
Questions?

Más contenido relacionado

Destacado

Productontwikkeling voor de bakkerij
Productontwikkeling voor de bakkerijProductontwikkeling voor de bakkerij
Productontwikkeling voor de bakkerijMatthieu Walraven
 
Creatividad Empresarial Unidad 2
Creatividad Empresarial Unidad 2Creatividad Empresarial Unidad 2
Creatividad Empresarial Unidad 2aangiieer
 
Amilkar ramos ejercicios actividad nº3
Amilkar ramos ejercicios actividad nº3Amilkar ramos ejercicios actividad nº3
Amilkar ramos ejercicios actividad nº3amilkar3
 
Doenca ocupacional (prevencao)
Doenca ocupacional (prevencao)Doenca ocupacional (prevencao)
Doenca ocupacional (prevencao)Armando Gaspar
 
[(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)]
[(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)][(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)]
[(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)]Mauricio Martínez
 
2 thessalonians 2 16 who loved us and by his power point church sermon
2 thessalonians 2 16 who loved us and by his power point church sermon2 thessalonians 2 16 who loved us and by his power point church sermon
2 thessalonians 2 16 who loved us and by his power point church sermonPowerPoint_Sermons
 
Hitler speech on armenia
Hitler speech on armeniaHitler speech on armenia
Hitler speech on armeniaEdy San
 
2 corinthians 1 4 the comfort we ourselves power point church sermon
2 corinthians 1 4 the comfort we ourselves power point church sermon2 corinthians 1 4 the comfort we ourselves power point church sermon
2 corinthians 1 4 the comfort we ourselves power point church sermonPowerPoint_Sermons
 
Homeworks 2 POLITICAL REVOLUTION
Homeworks 2 POLITICAL REVOLUTIONHomeworks 2 POLITICAL REVOLUTION
Homeworks 2 POLITICAL REVOLUTIONKata Nuñez
 
Cuestionario de merca electro
Cuestionario de merca electroCuestionario de merca electro
Cuestionario de merca electroLalithoop DiMe
 
Folleto casa de la cultura día del libro
Folleto casa de la cultura día del libroFolleto casa de la cultura día del libro
Folleto casa de la cultura día del libroMaria Jose Fernandez
 

Destacado (19)

Provinces of iran
Provinces of iranProvinces of iran
Provinces of iran
 
PROCESOS
PROCESOSPROCESOS
PROCESOS
 
Boletin 4to bimestre 2012 2013
Boletin 4to bimestre 2012 2013Boletin 4to bimestre 2012 2013
Boletin 4to bimestre 2012 2013
 
Productontwikkeling voor de bakkerij
Productontwikkeling voor de bakkerijProductontwikkeling voor de bakkerij
Productontwikkeling voor de bakkerij
 
Creatividad Empresarial Unidad 2
Creatividad Empresarial Unidad 2Creatividad Empresarial Unidad 2
Creatividad Empresarial Unidad 2
 
Ensayo macrográfico de uniones soldadas (05/15)
Ensayo macrográfico de uniones soldadas (05/15)Ensayo macrográfico de uniones soldadas (05/15)
Ensayo macrográfico de uniones soldadas (05/15)
 
Educación vial
Educación vialEducación vial
Educación vial
 
Amilkar ramos ejercicios actividad nº3
Amilkar ramos ejercicios actividad nº3Amilkar ramos ejercicios actividad nº3
Amilkar ramos ejercicios actividad nº3
 
Doenca ocupacional (prevencao)
Doenca ocupacional (prevencao)Doenca ocupacional (prevencao)
Doenca ocupacional (prevencao)
 
[(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)]
[(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)][(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)]
[(Practica#5)(fuente de poder)][(edgar mauricio martínez rodríguez)(equipo#20)]
 
2 thessalonians 2 16 who loved us and by his power point church sermon
2 thessalonians 2 16 who loved us and by his power point church sermon2 thessalonians 2 16 who loved us and by his power point church sermon
2 thessalonians 2 16 who loved us and by his power point church sermon
 
Hitler speech on armenia
Hitler speech on armeniaHitler speech on armenia
Hitler speech on armenia
 
Recursos Información Web 2.0 / Bases de Datos con Acceso Abierto
Recursos Información Web 2.0 / Bases de Datos con Acceso AbiertoRecursos Información Web 2.0 / Bases de Datos con Acceso Abierto
Recursos Información Web 2.0 / Bases de Datos con Acceso Abierto
 
Presentation1
Presentation1Presentation1
Presentation1
 
2 corinthians 1 4 the comfort we ourselves power point church sermon
2 corinthians 1 4 the comfort we ourselves power point church sermon2 corinthians 1 4 the comfort we ourselves power point church sermon
2 corinthians 1 4 the comfort we ourselves power point church sermon
 
Homeworks 2 POLITICAL REVOLUTION
Homeworks 2 POLITICAL REVOLUTIONHomeworks 2 POLITICAL REVOLUTION
Homeworks 2 POLITICAL REVOLUTION
 
Cuestionario de merca electro
Cuestionario de merca electroCuestionario de merca electro
Cuestionario de merca electro
 
Folleto casa de la cultura día del libro
Folleto casa de la cultura día del libroFolleto casa de la cultura día del libro
Folleto casa de la cultura día del libro
 
Poo-pourri
Poo-pourriPoo-pourri
Poo-pourri
 

Similar a Increase your quality and performance

Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)Jacob Kaplan-Moss
 
Connecting your Python App to OpenERP through OOOP
Connecting your Python App to OpenERP through OOOPConnecting your Python App to OpenERP through OOOP
Connecting your Python App to OpenERP through OOOPraimonesteve
 
Simplifying Persistence for Java and MongoDB with Morphia
Simplifying Persistence for Java and MongoDB with MorphiaSimplifying Persistence for Java and MongoDB with Morphia
Simplifying Persistence for Java and MongoDB with MorphiaMongoDB
 
Slides python elixir
Slides python elixirSlides python elixir
Slides python elixirAdel Totott
 
Deploy and Manage the Infrastructure Using Azure Resource Manager
Deploy and Manage the Infrastructure Using Azure Resource ManagerDeploy and Manage the Infrastructure Using Azure Resource Manager
Deploy and Manage the Infrastructure Using Azure Resource ManagerGlobalLogic Ukraine
 
Venturing Into The Wild: A .NET Developer's Experience As A Ruby Developer
Venturing Into The Wild: A .NET Developer's Experience As A Ruby DeveloperVenturing Into The Wild: A .NET Developer's Experience As A Ruby Developer
Venturing Into The Wild: A .NET Developer's Experience As A Ruby DeveloperJon Kruger
 
MongoDB hearts Django? (Django NYC)
MongoDB hearts Django? (Django NYC)MongoDB hearts Django? (Django NYC)
MongoDB hearts Django? (Django NYC)Mike Dirolf
 
Webinar: Simplifying Persistence for Java and MongoDB
Webinar: Simplifying Persistence for Java and MongoDBWebinar: Simplifying Persistence for Java and MongoDB
Webinar: Simplifying Persistence for Java and MongoDBMongoDB
 
Mongo and Harmony
Mongo and HarmonyMongo and Harmony
Mongo and HarmonySteve Smith
 
Two scoopsofdjango ch16 dealing with the user model
Two scoopsofdjango ch16   dealing with the user modelTwo scoopsofdjango ch16   dealing with the user model
Two scoopsofdjango ch16 dealing with the user modelShih-yi Wei
 
SAX, DOM & JDOM parsers for beginners
SAX, DOM & JDOM parsers for beginnersSAX, DOM & JDOM parsers for beginners
SAX, DOM & JDOM parsers for beginnersHicham QAISSI
 
The Best (and Worst) of Django
The Best (and Worst) of DjangoThe Best (and Worst) of Django
The Best (and Worst) of DjangoJacob Kaplan-Moss
 
Introducing the Seneca MVP framework for Node.js
Introducing the Seneca MVP framework for Node.jsIntroducing the Seneca MVP framework for Node.js
Introducing the Seneca MVP framework for Node.jsRichard Rodger
 
Golang slidesaudrey
Golang slidesaudreyGolang slidesaudrey
Golang slidesaudreyAudrey Lim
 
Tame Accidental Complexity with Ruby and MongoMapper
Tame Accidental Complexity with Ruby and MongoMapperTame Accidental Complexity with Ruby and MongoMapper
Tame Accidental Complexity with Ruby and MongoMapperGiordano Scalzo
 
Java Technology
Java TechnologyJava Technology
Java Technologyifnu bima
 

Similar a Increase your quality and performance (20)

Elastic tire demo
Elastic tire demoElastic tire demo
Elastic tire demo
 
Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)Introduction To Django (Strange Loop 2011)
Introduction To Django (Strange Loop 2011)
 
Connecting your Python App to OpenERP through OOOP
Connecting your Python App to OpenERP through OOOPConnecting your Python App to OpenERP through OOOP
Connecting your Python App to OpenERP through OOOP
 
Simplifying Persistence for Java and MongoDB with Morphia
Simplifying Persistence for Java and MongoDB with MorphiaSimplifying Persistence for Java and MongoDB with Morphia
Simplifying Persistence for Java and MongoDB with Morphia
 
Slides python elixir
Slides python elixirSlides python elixir
Slides python elixir
 
Deploy and Manage the Infrastructure Using Azure Resource Manager
Deploy and Manage the Infrastructure Using Azure Resource ManagerDeploy and Manage the Infrastructure Using Azure Resource Manager
Deploy and Manage the Infrastructure Using Azure Resource Manager
 
Venturing Into The Wild: A .NET Developer's Experience As A Ruby Developer
Venturing Into The Wild: A .NET Developer's Experience As A Ruby DeveloperVenturing Into The Wild: A .NET Developer's Experience As A Ruby Developer
Venturing Into The Wild: A .NET Developer's Experience As A Ruby Developer
 
MongoDB hearts Django? (Django NYC)
MongoDB hearts Django? (Django NYC)MongoDB hearts Django? (Django NYC)
MongoDB hearts Django? (Django NYC)
 
Webinar: Simplifying Persistence for Java and MongoDB
Webinar: Simplifying Persistence for Java and MongoDBWebinar: Simplifying Persistence for Java and MongoDB
Webinar: Simplifying Persistence for Java and MongoDB
 
Mongo and Harmony
Mongo and HarmonyMongo and Harmony
Mongo and Harmony
 
Two scoopsofdjango ch16 dealing with the user model
Two scoopsofdjango ch16   dealing with the user modelTwo scoopsofdjango ch16   dealing with the user model
Two scoopsofdjango ch16 dealing with the user model
 
Magic of Ruby
Magic of RubyMagic of Ruby
Magic of Ruby
 
SAX, DOM & JDOM parsers for beginners
SAX, DOM & JDOM parsers for beginnersSAX, DOM & JDOM parsers for beginners
SAX, DOM & JDOM parsers for beginners
 
The Best (and Worst) of Django
The Best (and Worst) of DjangoThe Best (and Worst) of Django
The Best (and Worst) of Django
 
Introducing the Seneca MVP framework for Node.js
Introducing the Seneca MVP framework for Node.jsIntroducing the Seneca MVP framework for Node.js
Introducing the Seneca MVP framework for Node.js
 
20120816 nodejsdublin
20120816 nodejsdublin20120816 nodejsdublin
20120816 nodejsdublin
 
Python Part 2
Python Part 2Python Part 2
Python Part 2
 
Golang slidesaudrey
Golang slidesaudreyGolang slidesaudrey
Golang slidesaudrey
 
Tame Accidental Complexity with Ruby and MongoMapper
Tame Accidental Complexity with Ruby and MongoMapperTame Accidental Complexity with Ruby and MongoMapper
Tame Accidental Complexity with Ruby and MongoMapper
 
Java Technology
Java TechnologyJava Technology
Java Technology
 

Increase your quality and performance

  • 1. Increase your performance and code quality scaffolding and MDD Vesin Dusko: vesindusko@gmail.com @vesindusko
  • 2. Reality check • By 2019 there will be 26.4 million software developers, it is the fastest growing profession in the world with 46% growth. • But that is not nearly enough. In Germany alone there are 40000 unfulfilled positions at this moment • IT is the fastest changing industry • Startups and agile pose a new challenge
  • 3. Better yourself • master things that you do every day (language, frameworks, best practices,IDE, etc.) • read, learn, experiment with new things • centralize your knowledge, make it reusable (libraries, frameworks, tools, scripts, plugins…) • impostor syndrome • repeat until you are in the business
  • 4. Automate yourself • No matter how good you are, you have only two hands and one keyboard. • Automate your processes (build, deployment, etc. ) • Available scaffolding tools… (Spring Roo, Ruby on Rails, JHipster, Bower, Gulp, Grails, etc) • Can we do more? Refuse to do repetitive work!
  • 5. MDE, MDD & MDA • “Model-driven engineering (MDE) is a software development methodology which focuses on creating and exploiting domain models, which are conceptual models of all the topics related to a specific problem.” • “Model-driven development (MDD) is an approach to software development where extensive models are created before source code is written” • “Model-driven architecture (MDA) is a software design approach for the development of software systems. It provides a set of guidelines for the structuring of specifications, which are expressed as models.” • Model - “The model-driven architecture approach defines system functionality using a platform-independent model (PIM) using an appropriate domain-specific language (DSL)” • Generator - “Code generation means that the user abstractly models solutions, which are connoted by some model data, and then an automated tool derives from the models parts or all of the source code for the software system.”
  • 6. drytools don’t repeat yourself • Multi module project generator • Written in Scala • drydsl (readable, optimal …) • dryvalidation • drypostprocessor • drygenerators (maintainable, customisable…)
  • 7. drytools DSL project_name project[settings]( service_name server[settings]( property_name property[settings]… model_name model[settings]( properties … uniques and indexes … queries …) api_name api[api settings]( endpoint_name endpoint[settings] …) )… web_app_name web[settings] … android_app_name android[settings] … ios_app_name ios[settings] … )
  • 8. Models Role enum(USER, MODERATOR, ADMIN) User model [type sql]( id long(primary key) username text (min 6, max 20, unique) passwordHash text (min 128, max 128) firstName text (min 2, max 60) lastName text (min 2, max 60) gender enum(MALE, FEMALE) role Role (default USER) birthDate optional date findAll from User findById from User where User.Id == id findByUsername from User where User.username == username findByFirstName from User where User.firstName == firstName findByLastName from User where User.lastName == lastName findByGender from User where User.gender == gender findByRole from User where User.gender == gender findMaleUsers from User where User.gender == “MALE” findAdminUser from User where User.role == “ADMIN” findByName from User where User.firstName like name or User.lastName like name or User.userName == name )
  • 9. ModelsRole enum(USER, MODERATOR, ADMIN) User model ( username text (min 6, max 20, unique) passwordHash text (min 128, max 128) firstName text (min 2, max 60) lastName text(min 2, max 60) gender enum(MALE, FEMALE) role Role (default USER) birthDate optional date findMaleUsers from User where User.gender == “MALE” findAdminUser from User where User.role == “ADMIN” findByName from User where User.firstName like name or User.lastName like name or User.userName == name )
  • 10. Role enum(USER, MODERATOR, ADMIN) User model ( username text (min 6, max 20, unique) passwordHash text (min 128, max 128) firstName text (min 2, max 60) lastName text (min 2, max 60) gender enum (MALE, FEMALE) role Role (default USER) birthDate optional date findMaleUsers from User where User.gender == “MALE” findAdminUser from User where User.role == “ADMIN” findByName from User where User.firstName like name or User.lastName like name or User.userName == name ) Owner model ( user User (unique) findByUser from Owner where Owner.user == user findByIdWithUser from Owner with Vet.user from Owner findPetsByOwnerId min Pet where Pet.owner from Pet where Pet.owner == owner ) Vet model ( user User (unique) findByUser from Vet where Vet == user findByIdWithUser from Vet with Vet.user from Vet findVisits from Visits where Visit.vet == vet ) PetType enum (DOG, CAT) Pet ( owner Owner type PetType birthDate date description text (max 1024) ) Visit ( Vet vet Pet pet date date note text[max 1024] findByIdWithVetAndPet from Visit with Visit.vet from Visit with Visit.pet from Visit where Vet.id == id )
  • 11. Middleware • Services • Security • Simple security -security (principal User) • Role security - security (principal User, role Role) • Permission based security - security (principal User, action UserAction) • SignIn • Username - signIn (username) • Email - signIn (email) • Google - signIn (google) • Facebook - signIn (facebook)
  • 12. APIsUserApi api( adminUsers find [query User.adminUsers, secured ADMIN, rest "/admins"] users find [query User.findAll, response (User.id, User.email, User.firstName, User.lastName), secured, rest "/users"] nonAdmins find [from User where User.role != "ADMIN", secured, rest ] user crud [model User, secured ADMIN, rest] ) OwnerApi api( owner crud [model Owner, secured ADMIN]( user.firstName [save default "Petar", update default "Pera"] user.lastName [min 30, max 40] address [visible (create, read) ] user.email notes optional text[min 2, max 10] ) owners find [from Owner with Owner.user as User from Owner where optional Owner.address like address response (Owner.id, User.email, User.firstName, User.lastName), secured ADMIN, rest “/owner] ownersPets find [ from Owner with Pet.owner from Owner with Owner.user from Owner where Owner.id == ownerId response (Pet.id, Owner.id, Pet.name), secured, rest “/owner/:ownerId/pets"] ……
  • 13. APIs… myPets find [from Owner with Pet.owner from Owner with Owner.user from Owner where Owner.user == principal, rest, secured] PetWithOwnerName dto( Pet.name Pet.petType User.firstName User.lastName firstPet enum(YES, NO) ) PetDto dto(Pet.id, Pet.name) VetWithSpecialties dto( User.firstName specialties list VetSpeciality.name pets list PetDto ) vetsWithSpecialties custom [request PetWithOwnerName, response list VetWithSpecialties, secured ADMIN, get "/vets"] vetInfo custom [request dto(Vet.id), response VetWithSpecialties, secured, get "/vet/:id", transactional sql] )
  • 14. Clients • web client (AngularJS, Bootstrap, Yeoman, Grunt, Bower) with ApiCaller and ApiMock • iOS client with ApiCaller and ApiMock • Android client with ApiCaller and ApiMock
  • 15. What's next? • New DSL features • Push Api • Web sockets • UI components • Android and iOs notifications • Big data analysis with spark
  • 16. Pros/Cons • Pros • speed up to 5x • best practices • architecture as a code • refactoring • global improvements • learning tool • we are in control • Cons • controversial technique • hard to implement • hard to balance • maintenance • not suitable for every case