Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Groovy and Grails Recipes (eBook)

(Autor)

eBook Download: PDF
2009 | 1st ed.
424 Seiten
Apress (Verlag)
978-1-4302-1601-8 (ISBN)

Lese- und Medienproben

Groovy and Grails Recipes - Bashar Jawad
Systemvoraussetzungen
39,58 inkl. MwSt
(CHF 38,65)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
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.

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.
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 "e;yet another language/framework,"e; 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.

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.


Getting Started with Groovy
From Java to Groovy
Groovy Data Types and Control Structures
Object-Oriented Groovy
Closures
Builders
Working with Databases
Testing with Groovy
Miscellaneous Recipes
Getting Started with Grails
The Web Layer
The Data Layer
Scaffolding
Security
Testing
Miscellaneous Recipes

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, and—impatient with the shortcomings and limitations of Java—have decided to give Groovy a try.

They couldn’t 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 Groovy’s syntax and Java’s, 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 doesn’t get much easier than that!

2-1. What Are the Similarities Between Java and Groovy?

Most of Groovy’s 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 Groovy’s 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 Java’s syntax is part of Groovy, therefore, Groovy can be considered a near superset of Java. The only Java elements that Groovy doesn’t 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 Java’s inner and anonymous classes, thus completing the superset. The decision to make Groovy support almost all of Java’s 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 Groovy’s 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.

Erscheint lt. Verlag 29.1.2009
Zusatzinfo 424 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Mathematik / Informatik Informatik Web / Internet
Schlagworte Control • Database • Framework • Grails • Java • programming • Web Services
ISBN-10 1-4302-1601-8 / 1430216018
ISBN-13 978-1-4302-1601-8 / 9781430216018
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 2,8 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das umfassende Handbuch

von Johannes Ernesti; Peter Kaiser

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 32,90
Das Handbuch für Webentwickler

von Philip Ackermann

eBook Download (2023)
Rheinwerk Computing (Verlag)
CHF 36,55