From Thundering Crow, 9 Years ago, written in Plain Text.
Embed
  1. <!doctype html>
  2. <html>
  3. <head>
  4.     <title></title>
  5.     <style>
  6.         body {
  7.             background: white;
  8.             text-align: center;
  9.             padding: 20px;
  10.             font-family: Georgia, serif;
  11.             font-weight: bold;
  12.             font-style: italic;
  13.             color: #999;
  14.         }
  15.  
  16.         a {
  17.             color: #99f;
  18.         }
  19.  
  20.         h1 {
  21.             font-size: 16px;
  22.         }
  23.  
  24.         h2 {
  25.             font-size: 12px;
  26.         }
  27.  
  28.         #word {
  29.             font-size: 36px;
  30.             color: black;
  31.         }
  32.  
  33.         button {
  34.             font-size: 24px;
  35.             padding: 10px;
  36.         }
  37.     </style>
  38. </head>
  39. <body>
  40.  
  41.     <h1>Enterprisify your Java Class Names!</h1>
  42.     <h2>By <a href="http://www.haykranen.nl">Hay Kranen</a></h2>
  43.  
  44.     <p id="word"></p>
  45.  
  46.     <button id="enterprise">Enterprisify!</button>
  47.     <button id="again">Again</button>
  48.  
  49.     <br /><br /><br />
  50.  
  51.     <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="huskyr">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
  52.  
  53.     <br /><br /><br />
  54.     <small><a href="https://gist.github.com/1351230">Fork this gist on Github to add your own words ;)</a></small>
  55.  
  56.     <script>
  57.         var words = [
  58.                 "Factory", "Bean", "Wrapper", "Visitor", "Model", "Singleton",
  59.                 "Method", "Configuration", "Exception", "Error", "Property", "Value",
  60.                 "Identifier", "Attribute", "Authentication", "Policy", "Container",
  61.                 "Order", "Info", "Parameter", "Request", "Adapter", "Bridge",
  62.                 "Decorator", "Facade", "Proxy", "Worker",
  63.                 "Interpreter", "Iterator", "Observer",
  64.                 "State", "Strategy", "Template", "Comparator", "Clone", "Task",
  65.                 "Resolver", "Candidate", "Expression", "Predicate",
  66.                 "Thread", "Pool", "Descriptor", "Interceptor", "Definition",
  67.                 "Getter", "Setter", "Listener", "Proccesor", "Printer",
  68.                 "Prototype", "Composer", "Event", "Helper", "Utils",
  69.                 "Invocation", "Exporter", "Importer", "Serializer", "Callback",
  70.                 "Tag", "Context", "Mapping", "Advisor", "Filter", "Field", "Test",
  71.                 "Tests", "Connection", "Annotation", "Service", "Repository",
  72.                 "Stub", "Mock", "Instance", "Dispatcher", "Client", "Server",
  73.                 "Message", "Map", "List", "Collection", "Queue", "Manager",
  74.                 "Database", "Reponse", "Broadcaster",
  75.                 "Watcher", "Schema", "Mapper", "Publisher", "Consumer", "Producer"
  76.             ],
  77.             inWords = [
  78.                 "Composite", "Invalid", "Supported", "Focus", "Traversal", "Abstract",
  79.                 "Transformer", "Common", "Concrete", "Autowire", "Simple", "Aware",
  80.                 "Aspect", "Principal", "Driven", "Interruptible", "Batch",
  81.                 "Prepared", "Statement", "Remote", "Stateless", "Session",
  82.                 "Transaction", "Transactional", "Based", "Meta", "Data", "Jms",
  83.                 "Readable", "Literal", "Reflective", "Scope", "Multipart", "Xml",
  84.                 "Generic", "Interface", "Advisable", "Observable", "Identifiable",
  85.                 "Iterable", "Distributed", "Notification", "Failure", "Type",
  86.                 "Http", "Jdbc"
  87.             ];
  88.  
  89.         function $(id) {
  90.             return document.getElementById(id);
  91.         }
  92.  
  93.         function rand(min, max) {
  94.             return Math.round(Math.random() * (max - min)) + min;
  95.         }
  96.  
  97.         function generate(min, max) {
  98.             var allWords = words.concat( inWords ),
  99.                 word = '';
  100.  
  101.             for (var i = 0, l = rand(min, max) - 1; i < l; i++) {
  102.                 do {
  103.                     var w = allWords[ rand(0, allWords.length - 1) ];
  104.                 } while (word.indexOf(w) !== -1);
  105.                 word += w;
  106.             }
  107.  
  108.             word += words[ rand(0, words.length) ];
  109.  
  110.             return word;
  111.         }
  112.  
  113.         $("again").onclick = function() {
  114.             $("word").innerHTML = generate(2, 3);
  115.             $("enterprise").innerHTML = "Enterprisify!";
  116.         }
  117.  
  118.         $("enterprise").onclick = function() {
  119.             var word = $("word").innerHTML;
  120.             $("word").innerHTML = generate(1, 1) + word;
  121.             $("enterprise").innerHTML = "Enterprisify even more!";
  122.         }
  123.  
  124.         $("word").innerHTML = generate(2, 3);
  125.     </script>
  126.  
  127. <script type="text/javascript">
  128.  
  129.   var _gaq = _gaq || [];
  130.   _gaq.push(['_setAccount', 'UA-15405780-12']);
  131.   _gaq.push(['_trackPageview']);
  132.  
  133.   (function() {
  134.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  135.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  136.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  137.   })();
  138.  
  139. </script>
  140. </body>
  141. </html>