Groovy 4

Course Number:

NTJVA350

Audience:

Course Duration:
2 days

Prerequisites:

Course Objectives:
Course Outline:
  • Getting Started with Groovy
    • Installing the Java JDK
    • Installing Groovy on Windows
    • SDKMAN
    • groovysh
    • groovyc
  • Language Basics and Data Types
    • Lab Using an IDE (eclipse) Creating Number and Other Datatypes
    • String and GString
    • Lab – Strings
    • Methods and Method Signatures
    • Lab – Calling Methods
    • Groovy Truth
    • Lab – What is True and What is False?
    • Regular Expressions
    • Lab – Expressions
  • Collections
    • Lists, Sets and Ranges
    • Lab – Working with Collections
    • Using Sort, Reverse, Join and the Spread Dot Operator
    • Lab – Collection Operation
    • Using any, every find and findAll
    • Lab – Using Groovy Truth
    • Map Elements
    • Lab – Map Operations
  • Closures
    • Basics
    • Parameters
    • Iteration
    • Lab – Iterating Using Closures
    • Maps and Closures
    • Sort collect find and findAll
    • Lab – Map Operations
  • Conditionals and Loops
    • If else, switch, Elvis and Safe De-Reference Operators
    • Lab – Conditional Operators
    • For Loops and Iterations
  • Classes
    • Class Definition
    • Packages, Variables and Groovy Beans
    • Lab – Creating Classes
    • Methods and Constructors
    • Lab – Constructors and Methods
    • Exceptions
    • Duck Typing
    • Lab – Polymorphism
    • AST Transformations
    • Lab – AST
  • Runtime MetaProgramming
    • Intro to Runtime Metaprogramming
    • Meta Object Protocol (MOP)
    • Customizing the MOP
    • MetaClass
    • Category Classes
    • Intercept / Cache / Invoke Pattern
  • Compile Time MetaProgramming
    • @ToString
    • @EqualsAndHashCode
    • @TupleConstructor
    • @Canonical
    • @Singleton
    • @Sortable
    • @Immutable
    • @TypeChecked
    • @CompileStatic
    • @Builder
  • Builders and Parsers
    • MarkUpBuilder and JsonBuilder
    • Lab – Using Builders
    • XmlSlurper
    • Lab – Using Parsers
  • Working with REST Services
    • Working with XML
    • Working with JSON
    • HTTP Request Methods (Verbs)
    • HTTP Status Codes
    • Content Negotiation
    • Using REST based APIs
  • Working with the GDK
    • Working with Files & I/O
    • Threads
    • Queries and Updates
    • SQL
    • Templates
    • Dates

Related Posts

About Us

IT Training, Agile Ways of Working and High Impact Talent Development Strategies

Let Us Come to You!

Classes recently delivered in: Atlanta, Boston, Chicago, Columbus, Dallas, Detroit, Indianapolis, Jerusalem, London, Milan, New York, Palo Alto, Phoenix, Pittsburgh, Portland, Raleigh, San Antonio, San Diego, San Francisco, San Jose, Seattle, Springfield, Mass., St. Louis, Tampa and more!