aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-21 05:59:08 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-21 05:59:08 +0200
commita84e1b2afafc49449461c49e4afe8c58387cab3a (patch)
tree523f16fa1537b32cc72d5c981193c15e535956bd /website
parenta466b566873936caae3656c7892f75acd23f65e9 (diff)
downloadlombok-a84e1b2afafc49449461c49e4afe8c58387cab3a.tar.gz
lombok-a84e1b2afafc49449461c49e4afe8c58387cab3a.tar.bz2
lombok-a84e1b2afafc49449461c49e4afe8c58387cab3a.zip
Added the slideshow
Diffstat (limited to 'website')
-rw-r--r--website/slideshow.html95
-rw-r--r--website/slideshow/eclipse-generate.pngbin0 -> 279930 bytes
-rw-r--r--website/slideshow/eclipse-lombok.pngbin0 -> 141944 bytes
-rw-r--r--website/slideshow/javac.pngbin0 -> 90828 bytes
-rw-r--r--website/slideshow/slideshow.css15
5 files changed, 110 insertions, 0 deletions
diff --git a/website/slideshow.html b/website/slideshow.html
new file mode 100644
index 00000000..1be62eb4
--- /dev/null
+++ b/website/slideshow.html
@@ -0,0 +1,95 @@
+<!DOCTYPE html>
+<html><head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <script src="logi/jQuery-all.js" type="text/javascript"></script>
+ <script src="index.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="logi/reset.css" />
+ <link rel="stylesheet" type="text/css" href="index.css" />
+ <link rel="stylesheet" type="text/css" href="slideshow/slideshow.css" />
+ <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
+ <meta name="description" content="Spice up your java" />
+ <title>Project Lombok</title>
+ <!--[if lt IE 7]><script type="text/javascript" src="logi/iepngfix_tilebg.js"></script><![endif]-->
+</head><body>
+ <a id="forkMe" href="http://github.com/rzwitserloot/lombok"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
+ <div class="meat">
+ <h1>Project Lombok</h1>
+ <div id="downloadInfo" class="buttonBar" style="display: none;">
+ <span></span>
+ <div class="downloadActions">
+ <a class="backToBar" href="http://projectlombok.googlecode.com/files/lombok.jar">Okay, download <strong>lombok</strong></a>
+ <a href="#" class="backToBar">No, don't</a>
+ </div>
+ </div>
+ <div id="buttonBar" class="buttonBar">
+ <a class="button" href="features/index.html">
+ <img src="icon_overview.png" />
+ <span>Feature Overview</span>
+ </a>
+ <a class="button" href="http://groups.google.com/group/project-lombok">
+ <img src="icon_discussion.png" />
+ <span>Discuss / Help</span>
+ </a>
+ <a class="button" href="http://wiki.github.com/rzwitserloot/lombok/contributing">
+ <img src="icon_contribute.png" />
+ <span>Contribute</span>
+ </a>
+ <a class="button" href="http://code.google.com/p/projectlombok/issues/list">
+ <img src="icon_bugs.png" />
+ <span>Report an issue</span>
+ </a>
+ <a class="download" id="downloadLink" href="download.html">
+ <img src="icon_download.png" />
+ <span>Download!</span>
+ </a>
+ </div>
+ <div class="slideshow">
+ <div class="para">
+ Imagine you have a very simple class:
+ </div><div class="snippet">public class Mountain {
+ private final String name;
+ private final double latitude, longitude;
+ private String country;
+}</div>
+ <div class="para">
+ While that is fairly clear, that class is not complete. In fact, it won't compile like that.<br />
+ You'll need to add a constructor to initialize those final fields, you probably want getters, a setter for <code>country</code>,
+ and to be complete, a nice <code>toString</code> as well as an implementation for <code>equals</code> and <code>hashCode</code>.
+ Eclipse can generate all these methods for you, but then you end up with over 70 lines of boilerplate. It's going to be hard
+ to see any surprises buried amongst all those lines of code! Lombok has the answer to this problem.
+ </div><div class="para">
+ So instead of this mess:
+ <img class="screenshot" src="slideshow/eclipse-generate.png" />
+ lombok simply offers you an annotation that tells eclipse to generate all this stuff for us silently, without
+ cluttering up your source file, like so:
+ <img class="screenshot" src="slideshow/eclipse-lombok.png" />
+ </div><div class="para">
+ Note how we haven't even saved the file yet, but in the outline view you can already see all the various methods generated
+ by the <code>@Data</code> annotation. That's because lombok is completely integrated into eclipse. The moment you type
+ the last character of your annotation, all the methods exist, just as if you write the last character on a method declaration.
+ In other words, lombok is <em>not</em> just an annotation processor!
+ </div><div class="para">
+ But what about your build process? Lombok works just as well in <strong>javac</strong>. All you need to do is add
+ <code>lombok.jar</code> to the class path as you compile. Like so:
+ <img class="screenshot" src="slideshow/javac.png" />
+ </div><div class="para">
+ <code>@Data</code> is nice, but its certainly not the only boilerplate buster that lombok has to offer. If you need
+ more fine grained control, there's <code>@Getter</code> and <code>@Setter</code>, and to help you in correctly
+ cleaning up your resources, <code>@Cleanup</code> can automatically and without cluttering your source files generate
+ try/finally blocks to safely call <code>close()</code> on your resource objects. That's not all, but for the complete
+ list you'll need to head over to the <a href="features/index.html">feature overview</a>.
+ </div><div class="para">
+ Ready to install lombok? Start by clicking the download button at the top of this page. Going from clicking that button
+ to having your eclipse ready to go takes less than 12 seconds - it's that simple.
+ </div><div class="para">
+ Thanks for checking out Project Lombok, and let us know what you think!
+ </div>
+ </div>
+ <div class="endBar">
+ <a href="index.html">I changed my mind - I do want to see the video!</a>
+ </div>
+ <div class="footer">
+ <a href="credits.html" class="creditsLink">credits</a> | Copyright &copy; 2009 Reinier Zwitserloot and Roel Spilker, licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT licence</a>.
+ </div>
+ </div>
+</body></html>
diff --git a/website/slideshow/eclipse-generate.png b/website/slideshow/eclipse-generate.png
new file mode 100644
index 00000000..64439b74
--- /dev/null
+++ b/website/slideshow/eclipse-generate.png
Binary files differ
diff --git a/website/slideshow/eclipse-lombok.png b/website/slideshow/eclipse-lombok.png
new file mode 100644
index 00000000..91b6f0f4
--- /dev/null
+++ b/website/slideshow/eclipse-lombok.png
Binary files differ
diff --git a/website/slideshow/javac.png b/website/slideshow/javac.png
new file mode 100644
index 00000000..483234f5
--- /dev/null
+++ b/website/slideshow/javac.png
Binary files differ
diff --git a/website/slideshow/slideshow.css b/website/slideshow/slideshow.css
new file mode 100644
index 00000000..130f0679
--- /dev/null
+++ b/website/slideshow/slideshow.css
@@ -0,0 +1,15 @@
+
+.para {
+ margin: 4px 0 4px 0;
+}
+
+.screenshot {
+ margin: 4px 0 4px 0;
+}
+.snippet {
+ font-family: "Courier New", Courier;
+ font-weight: bold;
+ white-space: pre;
+ padding: 4px 16px 4px 16px;
+ border: 1px #888 dashed;
+}