SlideShare une entreprise Scribd logo
1  sur  52
PAUL WOODS [email_address] TWITTER: @MR_PAUL_WOODS 7/7/2010 Groovy Every Day
Resources ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - create ,[object Object],[object Object],[object Object]
List – non typed elements ,[object Object],[object Object]
List – adding elements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - iterating ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - transform ,[object Object],[object Object],[object Object],[object Object],[object Object]
List – retrieving elements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List – removing elements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - sorting ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List – unique elements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - find ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - join ,[object Object],[object Object],[object Object]
List – advanced 1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List – advanced 2 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
List - mystery ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Map - create ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Map – adding elements
Map - iterating ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Map – retrieving elements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Map – removing elements ,[object Object],[object Object],[object Object],[object Object]
Map – find ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Range – the basics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Operation – ?. subscript ,[object Object],[object Object],[object Object],[object Object]
Operation – ?: conditional ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Operation - <=> - spaceship ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Closures - introduction ,[object Object],[object Object],[object Object],[object Object],[object Object]
Closure - example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Closure - syntax ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MultiAssign ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Optional parenthesis, semicolons, and returns ,[object Object]
Optional – Parenthesis 1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – Parenthesis 2 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – Parenthesis 3 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – Parenthesis 4 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – semicolons ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – returns – 1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – returns – 2 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Optional – returns – 3
 
PowerAssert ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PowerAssert - gotcha ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Get the current groovy Version ,[object Object],[object Object],[object Object]
 
Groovy ,[object Object],[object Object],[object Object]
Download and Install ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances

Perl.Hacks.On.Vim
Perl.Hacks.On.VimPerl.Hacks.On.Vim
Perl.Hacks.On.VimLin Yo-An
 
DBIx::Class introduction - 2010
DBIx::Class introduction - 2010DBIx::Class introduction - 2010
DBIx::Class introduction - 2010leo lapworth
 
The Magic Of Tie
The Magic Of TieThe Magic Of Tie
The Magic Of Tiebrian d foy
 
The Joy of Smartmatch
The Joy of SmartmatchThe Joy of Smartmatch
The Joy of SmartmatchAndrew Shitov
 
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...Arc & Codementor
 
20191116 custom operators in swift
20191116 custom operators in swift20191116 custom operators in swift
20191116 custom operators in swiftChiwon Song
 
Class 4 - PHP Arrays
Class 4 - PHP ArraysClass 4 - PHP Arrays
Class 4 - PHP ArraysAhmed Swilam
 
Advanced Perl Techniques
Advanced Perl TechniquesAdvanced Perl Techniques
Advanced Perl TechniquesDave Cross
 
ABC of Perl programming
ABC of Perl programmingABC of Perl programming
ABC of Perl programmingBo Hua Yang
 
Php Using Arrays
Php Using ArraysPhp Using Arrays
Php Using Arraysmussawir20
 
DBIx::Class beginners
DBIx::Class beginnersDBIx::Class beginners
DBIx::Class beginnersleo lapworth
 
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6Andrew Shitov
 

Tendances (19)

Perl.Hacks.On.Vim
Perl.Hacks.On.VimPerl.Hacks.On.Vim
Perl.Hacks.On.Vim
 
DBIx::Class introduction - 2010
DBIx::Class introduction - 2010DBIx::Class introduction - 2010
DBIx::Class introduction - 2010
 
The Magic Of Tie
The Magic Of TieThe Magic Of Tie
The Magic Of Tie
 
Perl6 grammars
Perl6 grammarsPerl6 grammars
Perl6 grammars
 
The Joy of Smartmatch
The Joy of SmartmatchThe Joy of Smartmatch
The Joy of Smartmatch
 
Php Basic
Php BasicPhp Basic
Php Basic
 
Perl6 in-production
Perl6 in-productionPerl6 in-production
Perl6 in-production
 
Abuse Perl
Abuse PerlAbuse Perl
Abuse Perl
 
07 php
07 php07 php
07 php
 
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
 
Bag of tricks
Bag of tricksBag of tricks
Bag of tricks
 
20191116 custom operators in swift
20191116 custom operators in swift20191116 custom operators in swift
20191116 custom operators in swift
 
Perl
PerlPerl
Perl
 
Class 4 - PHP Arrays
Class 4 - PHP ArraysClass 4 - PHP Arrays
Class 4 - PHP Arrays
 
Advanced Perl Techniques
Advanced Perl TechniquesAdvanced Perl Techniques
Advanced Perl Techniques
 
ABC of Perl programming
ABC of Perl programmingABC of Perl programming
ABC of Perl programming
 
Php Using Arrays
Php Using ArraysPhp Using Arrays
Php Using Arrays
 
DBIx::Class beginners
DBIx::Class beginnersDBIx::Class beginners
DBIx::Class beginners
 
Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6Text in search queries with examples in Perl 6
Text in search queries with examples in Perl 6
 

En vedette

Zelena čistka
Zelena čistkaZelena čistka
Zelena čistkaGavranica
 
Focus on What Matters
Focus on What MattersFocus on What Matters
Focus on What MattersJennifer Orr
 
Presentation1
Presentation1Presentation1
Presentation1Imsoaring
 
Examenopleiding energieconsulent mfl
Examenopleiding energieconsulent mflExamenopleiding energieconsulent mfl
Examenopleiding energieconsulent mflwweijmans
 
Bibliografia soundscape, sound, landscape
Bibliografia soundscape, sound, landscapeBibliografia soundscape, sound, landscape
Bibliografia soundscape, sound, landscapeagata stanisz
 
The best power diy marketing tips for entrepreneurs
The best power diy marketing tips for entrepreneursThe best power diy marketing tips for entrepreneurs
The best power diy marketing tips for entrepreneursDIYMarketers
 
Marketing strategies to increase the ROI on mobile
Marketing strategies to increase the ROI on mobileMarketing strategies to increase the ROI on mobile
Marketing strategies to increase the ROI on mobileAmit Ambastha
 
Слайды к конференции "Маркетинг Финансовых Услуг" 24.06.10
Слайды к конференции "Маркетинг Финансовых Услуг"  24.06.10Слайды к конференции "Маркетинг Финансовых Услуг"  24.06.10
Слайды к конференции "Маркетинг Финансовых Услуг" 24.06.10Mikhail Grafsky
 
How To Keep Men Women Happy
How To Keep Men Women HappyHow To Keep Men Women Happy
How To Keep Men Women Happyagek2005
 
Integracija poslovnega sistema
Integracija poslovnega sistemaIntegracija poslovnega sistema
Integracija poslovnega sistemaDanilo Tic
 
Central Oh Prsa Socmed 10 3 09
Central Oh Prsa Socmed 10 3 09Central Oh Prsa Socmed 10 3 09
Central Oh Prsa Socmed 10 3 09Lara Kretler
 
Eski fotoğraf ve kartpostallar
Eski fotoğraf ve kartpostallarEski fotoğraf ve kartpostallar
Eski fotoğraf ve kartpostallarhalid şen
 
Continuous deployments in Azure websites (by Anton Vidishchev)
Continuous deployments in Azure websites (by Anton Vidishchev)Continuous deployments in Azure websites (by Anton Vidishchev)
Continuous deployments in Azure websites (by Anton Vidishchev)Alexandra Chudner
 
1.2 Estimating With Whole #S And Decimals
1.2 Estimating With Whole #S And Decimals1.2 Estimating With Whole #S And Decimals
1.2 Estimating With Whole #S And DecimalsAmy Langelli
 
TEL4Health research at University College Cork (UCC)
TEL4Health research at University College Cork (UCC)TEL4Health research at University College Cork (UCC)
TEL4Health research at University College Cork (UCC)Hendrik Drachsler
 
Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...
Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...
Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...Guy Haviv
 
Votingsystems110607public
Votingsystems110607publicVotingsystems110607public
Votingsystems110607publicLis Parcell
 

En vedette (20)

Zelena čistka
Zelena čistkaZelena čistka
Zelena čistka
 
Iatefl 2014
Iatefl 2014Iatefl 2014
Iatefl 2014
 
Focus on What Matters
Focus on What MattersFocus on What Matters
Focus on What Matters
 
Presentation1
Presentation1Presentation1
Presentation1
 
Examenopleiding energieconsulent mfl
Examenopleiding energieconsulent mflExamenopleiding energieconsulent mfl
Examenopleiding energieconsulent mfl
 
Bibliografia soundscape, sound, landscape
Bibliografia soundscape, sound, landscapeBibliografia soundscape, sound, landscape
Bibliografia soundscape, sound, landscape
 
The best power diy marketing tips for entrepreneurs
The best power diy marketing tips for entrepreneursThe best power diy marketing tips for entrepreneurs
The best power diy marketing tips for entrepreneurs
 
Marketing strategies to increase the ROI on mobile
Marketing strategies to increase the ROI on mobileMarketing strategies to increase the ROI on mobile
Marketing strategies to increase the ROI on mobile
 
Слайды к конференции "Маркетинг Финансовых Услуг" 24.06.10
Слайды к конференции "Маркетинг Финансовых Услуг"  24.06.10Слайды к конференции "Маркетинг Финансовых Услуг"  24.06.10
Слайды к конференции "Маркетинг Финансовых Услуг" 24.06.10
 
How To Keep Men Women Happy
How To Keep Men Women HappyHow To Keep Men Women Happy
How To Keep Men Women Happy
 
Integracija poslovnega sistema
Integracija poslovnega sistemaIntegracija poslovnega sistema
Integracija poslovnega sistema
 
Central Oh Prsa Socmed 10 3 09
Central Oh Prsa Socmed 10 3 09Central Oh Prsa Socmed 10 3 09
Central Oh Prsa Socmed 10 3 09
 
Eski fotoğraf ve kartpostallar
Eski fotoğraf ve kartpostallarEski fotoğraf ve kartpostallar
Eski fotoğraf ve kartpostallar
 
Continuous deployments in Azure websites (by Anton Vidishchev)
Continuous deployments in Azure websites (by Anton Vidishchev)Continuous deployments in Azure websites (by Anton Vidishchev)
Continuous deployments in Azure websites (by Anton Vidishchev)
 
1.2 Estimating With Whole #S And Decimals
1.2 Estimating With Whole #S And Decimals1.2 Estimating With Whole #S And Decimals
1.2 Estimating With Whole #S And Decimals
 
The CLAS APP
The CLAS APPThe CLAS APP
The CLAS APP
 
Iatefl 2013 titova
Iatefl 2013 titovaIatefl 2013 titova
Iatefl 2013 titova
 
TEL4Health research at University College Cork (UCC)
TEL4Health research at University College Cork (UCC)TEL4Health research at University College Cork (UCC)
TEL4Health research at University College Cork (UCC)
 
Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...
Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...
Bezalel: Introduction to Interactive Design: ב4 - מבוא לעיצוב אינטראקטיבי - ה...
 
Votingsystems110607public
Votingsystems110607publicVotingsystems110607public
Votingsystems110607public
 

Similaire à Groovy every day

Intro python
Intro pythonIntro python
Intro pythonkamzilla
 
Exploiting Php With Php
Exploiting Php With PhpExploiting Php With Php
Exploiting Php With PhpJeremy Coates
 
High-level Web Testing
High-level Web TestingHigh-level Web Testing
High-level Web Testingpetersergeant
 
Intro to #memtech PHP 2011-12-05
Intro to #memtech PHP   2011-12-05Intro to #memtech PHP   2011-12-05
Intro to #memtech PHP 2011-12-05Jeremy Kendall
 
PHP 102: Out with the Bad, In with the Good
PHP 102: Out with the Bad, In with the GoodPHP 102: Out with the Bad, In with the Good
PHP 102: Out with the Bad, In with the GoodJeremy Kendall
 
Php Basic Security
Php Basic SecurityPhp Basic Security
Php Basic Securitymussawir20
 
Petitparser at the Deep into Smalltalk School 2011
Petitparser at the Deep into Smalltalk School 2011Petitparser at the Deep into Smalltalk School 2011
Petitparser at the Deep into Smalltalk School 2011Tudor Girba
 
Drupal Lightning FAPI Jumpstart
Drupal Lightning FAPI JumpstartDrupal Lightning FAPI Jumpstart
Drupal Lightning FAPI Jumpstartguestfd47e4c7
 
Dropping ACID with MongoDB
Dropping ACID with MongoDBDropping ACID with MongoDB
Dropping ACID with MongoDBkchodorow
 
03 Php Array String Functions
03 Php Array String Functions03 Php Array String Functions
03 Php Array String FunctionsGeshan Manandhar
 
perl usage at database applications
perl usage at database applicationsperl usage at database applications
perl usage at database applicationsJoe Jiang
 
Functional Pearls 4 (YAPC::EU::2009 remix)
Functional Pearls 4 (YAPC::EU::2009 remix)Functional Pearls 4 (YAPC::EU::2009 remix)
Functional Pearls 4 (YAPC::EU::2009 remix)osfameron
 

Similaire à Groovy every day (20)

Intro python
Intro pythonIntro python
Intro python
 
Oo Perl
Oo PerlOo Perl
Oo Perl
 
Exploiting Php With Php
Exploiting Php With PhpExploiting Php With Php
Exploiting Php With Php
 
Modern Perl
Modern PerlModern Perl
Modern Perl
 
High-level Web Testing
High-level Web TestingHigh-level Web Testing
High-level Web Testing
 
Perl5i
Perl5iPerl5i
Perl5i
 
Intro to #memtech PHP 2011-12-05
Intro to #memtech PHP   2011-12-05Intro to #memtech PHP   2011-12-05
Intro to #memtech PHP 2011-12-05
 
Ae internals
Ae internalsAe internals
Ae internals
 
Scala 2 + 2 > 4
Scala 2 + 2 > 4Scala 2 + 2 > 4
Scala 2 + 2 > 4
 
PHP 102: Out with the Bad, In with the Good
PHP 102: Out with the Bad, In with the GoodPHP 102: Out with the Bad, In with the Good
PHP 102: Out with the Bad, In with the Good
 
Php Basic Security
Php Basic SecurityPhp Basic Security
Php Basic Security
 
Petitparser at the Deep into Smalltalk School 2011
Petitparser at the Deep into Smalltalk School 2011Petitparser at the Deep into Smalltalk School 2011
Petitparser at the Deep into Smalltalk School 2011
 
Drupal Lightning FAPI Jumpstart
Drupal Lightning FAPI JumpstartDrupal Lightning FAPI Jumpstart
Drupal Lightning FAPI Jumpstart
 
Dropping ACID with MongoDB
Dropping ACID with MongoDBDropping ACID with MongoDB
Dropping ACID with MongoDB
 
03 Php Array String Functions
03 Php Array String Functions03 Php Array String Functions
03 Php Array String Functions
 
Oscon 2010 Specs talk
Oscon 2010 Specs talkOscon 2010 Specs talk
Oscon 2010 Specs talk
 
perl usage at database applications
perl usage at database applicationsperl usage at database applications
perl usage at database applications
 
Php My Sql
Php My SqlPhp My Sql
Php My Sql
 
Functional Pearls 4 (YAPC::EU::2009 remix)
Functional Pearls 4 (YAPC::EU::2009 remix)Functional Pearls 4 (YAPC::EU::2009 remix)
Functional Pearls 4 (YAPC::EU::2009 remix)
 
Perl Presentation
Perl PresentationPerl Presentation
Perl Presentation
 

Groovy every day