Your SlideShare is downloading. ×
0
Groovy


2009.12.12 DevLOVE 2009 Fusion
   takuma.watabiki@jggug.org
JGGUG            Grails/Groovy


twitter id : bikisuke
Groovy
10
Groovy
Groovy
Groovy
• JVM
Groovy
• JVM
•
Groovy
• JVM
•
•
Groovy
• JVM
•
•
• Java
Groovy
• JVM
•
•
• Java
• Ruby   Python, Smalltalk
Java
Java




       C)
Java        Groovy




       C)
Groovy     Java
         Java
Groovy     Java
         Java
ERROR


 Java
Groovy
import java.io.*;
import java.util.regex.*;
public class ErrorExtractor {
	

  public static void main(String[] args) {
	
...
import java.io.*;
import java.util.regex.*;
public class ErrorExtractor {
	

  public static void main(String[] args) {
	
...
import java.util.regex.*;

BufferedReader br = null;
BufferedWriter bw = null;
try {
	

   br = new BufferedReader(new Inp...
import java.util.regex.*;

BufferedReader br = new BufferedReader(new InputStreamReader(
	

  	

   new FileInputStream(ne...
File f = new File("/work/errorlist.log")
new File("/work/server.log").eachLine { line ->
   if(line =~ ".*ERROR.*") {
    ...
import java.io.*;
import java.util.regex.*;
public class ErrorExtractor {
	

  public static void main(String[] args) {
	
...
File f = new File("/work/errorlist.log")
new File("/work/server.log").eachLine { line ->
   if(line =~ ".*ERROR.*") {
    ...
•
• Expando Meta Class
• Grape
• Mixin
• AST
•                ...
Groovy
Groovy
Groovy
Groovy
Hudson
  kkawa



Groovy    ※
Hudson
  kkawa



Groovy                   ※




          ※2008   SDC SQUARE
Groovy Q&A
Q.
A. Hudson




CLI        groovy
groovysh
Q.   Scala
A.
     Groovy
Q.
A.
 Groovy
          !




     Groovy   @torazuka
Q. Groovy
A.


                     Groovy




              JOJO
     Groovy
A.


                     Groovy




              JOJO
     Groovy
Q. Groovy
A.
Groovy
Groovy




         JGGUG
Groovy




         JGGUG
Groovy   JVM
Java
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Groovyノススメ
Upcoming SlideShare
Loading in...5
×

Groovyノススメ

2,824

Published on

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,824
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

Transcript of "Groovyノススメ"

  1. 1. Groovy 2009.12.12 DevLOVE 2009 Fusion takuma.watabiki@jggug.org
  2. 2. JGGUG Grails/Groovy twitter id : bikisuke
  3. 3. Groovy 10
  4. 4. Groovy
  5. 5. Groovy
  6. 6. Groovy • JVM
  7. 7. Groovy • JVM •
  8. 8. Groovy • JVM • •
  9. 9. Groovy • JVM • • • Java
  10. 10. Groovy • JVM • • • Java • Ruby Python, Smalltalk
  11. 11. Java
  12. 12. Java C)
  13. 13. Java Groovy C)
  14. 14. Groovy Java Java
  15. 15. Groovy Java Java
  16. 16. ERROR Java Groovy
  17. 17. import java.io.*; import java.util.regex.*; public class ErrorExtractor { public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); } catch(Exception e) {} Java } } }
  18. 18. import java.io.*; import java.util.regex.*; public class ErrorExtractor { public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); .groovy } catch(Exception e) {} } } }
  19. 19. import java.util.regex.*; BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); main } catch(Exception e) {} }
  20. 20. import java.util.regex.*; BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } br.close(); bw.close(); try-catch
  21. 21. File f = new File("/work/errorlist.log") new File("/work/server.log").eachLine { line -> if(line =~ ".*ERROR.*") { f.append(line + "¥n") } } Groovy
  22. 22. import java.io.*; import java.util.regex.*; public class ErrorExtractor { public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = null; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(new File("/work/server.log")))); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("/work/errorlist.log"))); String line = null; Pattern p = Pattern.compile(".*ERROR.*"); while((line = br.readLine()) != null) { Matcher m = p.matcher(line); if(m.matches()) bw.write(line + "¥n"); } } catch (Exception e) { } finally { try { br.close(); bw.close(); } catch(Exception e) {} } } }
  23. 23. File f = new File("/work/errorlist.log") new File("/work/server.log").eachLine { line -> if(line =~ ".*ERROR.*") { f.append(line + "¥n") } }
  24. 24. • • Expando Meta Class • Grape • Mixin • AST • ...
  25. 25. Groovy
  26. 26. Groovy
  27. 27. Groovy
  28. 28. Groovy
  29. 29. Hudson kkawa Groovy ※
  30. 30. Hudson kkawa Groovy ※ ※2008 SDC SQUARE
  31. 31. Groovy Q&A
  32. 32. Q.
  33. 33. A. Hudson CLI groovy groovysh
  34. 34. Q. Scala
  35. 35. A. Groovy
  36. 36. Q.
  37. 37. A. Groovy ! Groovy @torazuka
  38. 38. Q. Groovy
  39. 39. A. Groovy JOJO Groovy
  40. 40. A. Groovy JOJO Groovy
  41. 41. Q. Groovy
  42. 42. A.
  43. 43. Groovy
  44. 44. Groovy JGGUG
  45. 45. Groovy JGGUG
  46. 46. Groovy JVM Java
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×