Groovy and Grails Recipes (PDF)
(Sprache: Englisch)
Groovy and Grails Recipes is the busy developer's guide to developing applications in Groovy and Grails. Rather than boring you with theoretical knowledge of "yet another language/framework," this book delves straight into solving real-life problems in...
sofort als Download lieferbar
eBook (pdf)
39.58 €
19 DeutschlandCard Punkte sammeln
- Lastschrift, Kreditkarte, Paypal, Rechnung
- Kostenloser tolino webreader
Produktdetails
Produktinformationen zu „Groovy and Grails Recipes (PDF)“
Groovy and Grails Recipes is the busy developer's guide to developing applications in Groovy and Grails. Rather than boring you with theoretical knowledge of "yet another language/framework," this book delves straight into solving real-life problems in Groovy and Grails using easy-to-understand, well-explained code snippets. Through learning by example, you will be able to pick up on Groovy and Grails quickly and use the book as an essential reference when developing applications.
Lese-Probe zu „Groovy and Grails Recipes (PDF)“
CHAPTER 2 From Java to Groovy (S. 17-18)If you are reading this book, you probably have some experience working with Java. As I explained in the introduction, this book assumes an intermediate- level knowledge of Java. This is because I have noticed that most people learning Groovy have some Java background, andimpatient with the shortcomings and limitations of Javahave decided to give Groovy a try.
They couldnt be more right! This chapter focuses mainly on explaining the similarities and differences between Java and Groovy and how to integrate Groovy with Java. Thanks to the similarity between Groovys syntax and Javas, the transition from Java to Groovy is a smooth one with an almost flat learning curve. As a matter of fact, Java developers can learn and start programming with Groovy in less than a day. It doesnt get much easier than that!
2-1. What Are the Similarities Between Java and Groovy?
Most of Groovys code should look instantly familiar to Java developers. As a matter of fact, Java developers can start up the Groovy console and start playing with Groovy before even reading a word about Groovys syntax. Almost all Java code can be compiled as is with no errors by using the command. Both Java and Groovy are compiled languages. They compile to the same intermediate binary format (bytecode), which runs on the same virtual machine (JVM). As mentioned in Chapter 1, this model guarantees perfect interoperability between Groovy code and Java code and enables Java developers to use Groovy with all of their favorite Java- based frameworks and libraries.
Almost all of Javas syntax is part of Groovy, therefore, Groovy can be considered a near superset of Java. The only Java elements that Groovy doesnt support at the moment are nested and anonymous inner classes. Groovy replaces them with closures, which are much more powerful. However, future versions of Groovy might add support to Javas inner and
... mehr
anonymous classes, thus completing the superset. The decision to make Groovy support almost all of Javas syntax was a deliberate one on the part of the Groovy developers.
They wanted to provide seamless integration with Java, and to make the transition from Java to Groovy as smooth and easy as possible. Even though Groovys syntax can be considered a near superset of Java, you should be aware of the few semantic differences. For example, I showed in Chapter 1 that Groovy performs floating- point division by default when both operands are integers. In contrast, Java performs integer division. Another example is the operator, which in Groovy, unlike Java, denotes equality rather than identity.
They wanted to provide seamless integration with Java, and to make the transition from Java to Groovy as smooth and easy as possible. Even though Groovys syntax can be considered a near superset of Java, you should be aware of the few semantic differences. For example, I showed in Chapter 1 that Groovy performs floating- point division by default when both operands are integers. In contrast, Java performs integer division. Another example is the operator, which in Groovy, unlike Java, denotes equality rather than identity.
... weniger
Autoren-Porträt von Bashar Jawad
Bashar Abdul Jawad is a senior software engineer at Video Monitoring Services, Inc., as well as a practicing Java, Groovy, and Grails expert, and he has a number of web sites in operation today based on Groovy and Grails.
Bibliographische Angaben
- Autor: Bashar Jawad
- 2009, 1st ed, 424 Seiten, Englisch
- Verlag: Springer-Verlag GmbH
- ISBN-10: 1430216018
- ISBN-13: 9781430216018
- Erscheinungsdatum: 29.01.2009
Abhängig von Bildschirmgröße und eingestellter Schriftgröße kann die Seitenzahl auf Ihrem Lesegerät variieren.
eBook Informationen
- Dateiformat: PDF
- Größe: 3.32 MB
- Ohne Kopierschutz
- Vorlesefunktion
Sprache:
Englisch
Kommentar zu "Groovy and Grails Recipes"
0 Gebrauchte Artikel zu „Groovy and Grails Recipes“
Zustand | Preis | Porto | Zahlung | Verkäufer | Rating |
---|
Schreiben Sie einen Kommentar zu "Groovy and Grails Recipes".
Kommentar verfassen