User Tools

Site Tools


at-m42:lecture10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
at-m42:lecture10 [2009/04/16 15:10] eechrisat-m42:lecture10 [2011/01/14 12:45] (current) – external edit 127.0.0.1
Line 293: Line 293:
 ===== A 75 Line Web Server ====== ===== A 75 Line Web Server ======
  
-To demonstrate the power of Groovy, Jeremy rayner, one of the core Groovy developers, wrote a simple HTTP server in less than 75 lines of code!+To demonstrate the power of Groovy, Jeremy Rayner, one of the core Groovy developers, wrote a simple HTTP server in less than 75 lines of code!
  
 [[http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/examples/commandLineTools/SimpleWebServer.groovy|Listing]] is in the notes. [[http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/examples/commandLineTools/SimpleWebServer.groovy|Listing]] is in the notes.
 +
 +It really works:
 +<cli prompt='>'>
 +e:\dev\at-m42-2009\Examples\lecture10>groovy -l 80 SimpleWebServer.groovy
 +</cli>
  
 ---- ----
-<code groovy|Example 8: a web server in 75 lines of code>+<code groovy 1|Example 8: a web server in 74 lines of code>
 extern> http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/examples/commandLineTools/SimpleWebServer.groovy extern> http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/examples/commandLineTools/SimpleWebServer.groovy
 </code> </code>
at-m42/lecture10.1239894611.txt.gz · Last modified: 2011/01/14 12:21 (external edit)