Grails in 5mins (2010-v0.3)
-
Upload
david-trattnig -
Category
Technology
-
view
209 -
download
0
description
Transcript of Grails in 5mins (2010-v0.3)
![Page 1: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/1.jpg)
The Grails Framework in 5 minutes
David Trattnig, 2010
![Page 2: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/2.jpg)
Full-Stack Framework
• Presentation
• Business Logic
• Persistence
• Build & Test
• Documentationphoto credits: http://www.flickr.com/photos/slipstreamjc/748716731
![Page 3: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/3.jpg)
An evolution.
Java Virtual Machine
Java Language
Java EE
JDK
• Leverages existing resources(works with „JVM friendly“ hardware, software and humans)
• Build upon industry-proven technologies (established, well tested and scalable Java frameworks & libraries)
![Page 4: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/4.jpg)
Convention over Configuration (CoC)
• No more painful XML settings
• 80 / 20 rule
• Don‘t repeat yourself (DRY)
photo credits: http://www.flickr.com/photos/squirmelia/2451382877
![Page 5: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/5.jpg)
Domain Driven Design (DDD)
• Focus on the domain, rather than technology
• Rapid prototyping
• Adaptable architecture
photo credits: http://www.flickr.com/photos/garibaldi/209338463
![Page 6: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/6.jpg)
Grails Plugin System
• 350+ Plugins available
• Modularized app architecture
• Reuse established Java libraries
photo credits: http://www.flickr.com/photos/oskay/265899865, http://www.flickr.com/photos/oskay/265899967, http://www.flickr.com/photos/oskay/265899811/
![Page 7: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/7.jpg)
Groovy, the language
• Less and more expressive code
• Mix Java & Groovy
• Dynamic language for changing requirements
• Compiles to Java bytecode
• „Relaxed“ learning-curve for Java programmers
![Page 8: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/8.jpg)
Possible Pitfalls
• difficult debugging - nature of dynamic languages(but enforces proper test-cases)
• multiple sources for possible defects (stack of many but well-tested Java frameworks)
• „Fear of learning a new language“(Split the project in a Grails-Part and pure Java-Part for „traditional“ developers)
![Page 9: Grails in 5mins (2010-v0.3)](https://reader034.fdocuments.us/reader034/viewer/2022051322/54531c32b1af9f7f248b5734/html5/thumbnails/9.jpg)
Success Stories...
... are happy with