Skip to content
This repository
  • 11 commits
  • 7 files changed
  • 0 comments
  • 2 contributors
3  assets/css/custom.css
@@ -26,6 +26,9 @@ body {
26 26
   font-weight: 400;
27 27
 }
28 28
 
  29
+#footer, article footer {
  30
+  margin-top: 40px;
  31
+}
29 32
 
30 33
 
31 34
 /* Simlates the styling of the <pre> tag */
115  ruby/alreadyknow.html
... ...
@@ -0,0 +1,115 @@
  1
+<!DOCTYPE html>
  2
+<html lang="en">
  3
+<head>
  4
+  <meta charset="utf-8">
  5
+  <title>Ruby: What Should I Already Know?</title>
  6
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7
+
  8
+  <!--Brief page description:-->
  9
+  <meta name="description" content="">
  10
+  <!--Name(s) of primary authors-->
  11
+  <meta name="author" content="">
  12
+
  13
+  <!--Styles-->
  14
+  <link href="/assets/css/bootstrap.css" rel="stylesheet">
  15
+  <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
  16
+  <link href="/assets/css/prettify.css" rel="stylesheet">
  17
+
  18
+  <!--Custom styles-->
  19
+  <link href="/assets/css/custom.css" rel="stylesheet">
  20
+
  21
+  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  22
+  <!--[if lt IE 9]>
  23
+    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  24
+  <![endif]-->
  25
+
  26
+</head>
  27
+
  28
+<body>
  29
+
  30
+<div class="navbar navbar-inverse navbar-fixed-top">
  31
+  <div class="navbar-inner">
  32
+    <div class="container-fluid">
  33
+      <a class="brand" href="/">Bootcamp</a>
  34
+        <ul class="nav">
  35
+          <li><a href="/cli/">CLI</a></li>
  36
+          <li><a href="/git/">Git</a></li>
  37
+          <li><a href="/md/">Markdown</a></li>
  38
+          <li><a href="/html/">HTML</a></li>
  39
+          <li><a href="/css/">CSS</a></li>
  40
+          <li><a href="/js/">Javascript</a></li>
  41
+          <li class="active"><a href="/ruby/">Ruby</a></li>
  42
+        </ul>
  43
+    </div>
  44
+  </div>
  45
+</div>
  46
+
  47
+<header id="page-header" class="">
  48
+  <div class="container-fluid hero-unit ruby-header">
  49
+    <h1>Ruby</h1>
  50
+    <p>Programming Made Easier</p>
  51
+  </div>
  52
+</header>
  53
+
  54
+<div class="container-fluid">
  55
+
  56
+  <div class="row-fluid">
  57
+    <div class="span3 bs-docs-sidebar">
  58
+      <ul class="nav nav-list bs-docs-sidenav">
  59
+        <li><a href="index.html"><i class="icon-chevron-right"></i> Why Program?</a></li>
  60
+        <li><a href="alreadyknow.html"><i class="icon-chevron-right"></i> What Should I Already Know?</a></li>
  61
+        <li><a href="tolearn.html"><i class="icon-chevron-right"></i> What Should I Learn?</a></li>
  62
+        <li><a href="whyruby.html"><i class="icon-chevron-right"></i> Why Ruby?</a></li>
  63
+        <li><a href="#doing"><i class="icon-chevron-right"></i> Doing Something</a></li>
  64
+        <li><a href="#methods"><i class="icon-chevron-right"></i> Methods</a></li>
  65
+        <li><a href="#vars"><i class="icon-chevron-right"></i> Variables</a></li>
  66
+        <li><a href="#"><i class="icon-chevron-right"></i> </a></li>
  67
+      </ul>
  68
+    </div>
  69
+
  70
+    <div class="span9">
  71
+
  72
+      <article id="know">
  73
+        <header class="page-header">
  74
+          <h2>What Should I Already Know?</h2>
  75
+        </header>
  76
+        <section>
  77
+          <p>This section assumes that you know:</p>
  78
+          <ul>
  79
+            <li>How to use a text editor</li>
  80
+            <li>How to use the Linux command line</li>
  81
+            <li>How to use Git</li>
  82
+            <li>How to read <a href="/html/">HTML</a></li>
  83
+          </ul>
  84
+        </section>
  85
+        <footer>
  86
+          <ul class="pager">
  87
+            <li><a href="index.html">Previous</a></li>
  88
+            <li><a href="tolearn.html">Next</a></li>
  89
+          </ul>
  90
+          <h5>Progress in This Tutorial</h5>
  91
+          <div class="progress progress-striped">
  92
+            <div class="bar" style="width: 10%;"></div>
  93
+          </div>
  94
+        </footer>
  95
+      </article>
  96
+
  97
+    </div><!--/.span9 -->
  98
+
  99
+  </div><!--/.row-fluid -->
  100
+  <footer id="page-footer">
  101
+    <p>Written and designed by Anthony T. Sansone. &copy;2012. Licensed under Creative Commons</p>
  102
+  </footer>
  103
+
  104
+</div><!--/.container-fluid-->
  105
+
  106
+  <!-- JavaScript
  107
+  ================================================== -->
  108
+  <!-- Placed at the end of the document so the pages load faster -->
  109
+  <script src="/assets/js/jquery.js"></script>
  110
+  <script src="/assets/js/bootstrap.min.js"></script>
  111
+  <script src="/assets/js/prettify/prettify.js"></script>
  112
+
  113
+</body>
  114
+</html>
  115
+
6  ruby/file_read.rb
@@ -16,7 +16,7 @@ def read_csv(test_file)
16 16
       class_file.push(line)
17 17
     end
18 18
 
19  
-    puts "File read"
  19
+    puts test_file + " file read."
20 20
 
21 21
     class_file
22 22
 
@@ -32,7 +32,7 @@ def parse_csv(class_file)
32 32
       i+=1
33 33
     end
34 34
 
35  
-    puts "File parsed"
  35
+    puts "File parsed."
36 36
 
37 37
     course_list
38 38
 
@@ -60,7 +60,7 @@ def convert_csv(csv_data,html_filename)
60 60
       end
61 61
       html_file.puts "</table>"
62 62
 
63  
-    puts "File converted"
  63
+    puts html_filename + " created."
64 64
 
65 65
   end
66 66
 
120  ruby/index.html
@@ -2,7 +2,7 @@
2 2
 <html lang="en">
3 3
 <head>
4 4
   <meta charset="utf-8">
5  
-  <title>Ruby: Introduction</title>
  5
+  <title>Ruby: Why Program?</title>
6 6
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 7
 
8 8
   <!--Brief page description:-->
@@ -29,78 +29,82 @@
29 29
 
30 30
 <div class="navbar navbar-inverse navbar-fixed-top">
31 31
   <div class="navbar-inner">
32  
-      <div class="container-fluid">
33  
-    <a class="brand" href="/">PreReq</a>
34  
-    <ul class="nav">
35  
-      <li><a href="/cli/">CLI</a></li>
36  
-      <li><a href="/git/">Git</a></li>
37  
-      <li><a href="/md/">Markdown</a></li>
38  
-      <li><a href="/html/">HTML</a></li>
39  
-      <li><a href="/css/">CSS</a></li>
40  
-      <li><a href="/js/">Javascript</a></li>
41  
-      <li class="active"><a href="/ruby/">Ruby</a></li>
42  
-    </ul>
43  
-
  32
+    <div class="container-fluid">
  33
+      <a class="brand" href="/">Bootcamp</a>
  34
+        <ul class="nav">
  35
+          <li><a href="/cli/">CLI</a></li>
  36
+          <li><a href="/git/">Git</a></li>
  37
+          <li><a href="/md/">Markdown</a></li>
  38
+          <li><a href="/html/">HTML</a></li>
  39
+          <li><a href="/css/">CSS</a></li>
  40
+          <li><a href="/js/">Javascript</a></li>
  41
+          <li class="active"><a href="/ruby/">Ruby</a></li>
  42
+        </ul>
44 43
     </div>
45 44
   </div>
46 45
 </div>
47 46
 
  47
+<header id="page-header" class="">
  48
+  <div class="container-fluid hero-unit ruby-header">
  49
+    <h1>Ruby</h1>
  50
+    <p>Programming Made Easier</p>
  51
+  </div>
  52
+</header>
  53
+
  54
+<div class="container-fluid">
  55
+
  56
+  <div class="row-fluid">
  57
+    <div class="span3 bs-docs-sidebar">
  58
+      <ul class="nav nav-list bs-docs-sidenav">
  59
+        <li><a href="index.html"><i class="icon-chevron-right"></i> Why Program?</a></li>
  60
+        <li><a href="alreadyknow.html"><i class="icon-chevron-right"></i> What Should I Already Know?</a></li>
  61
+        <li><a href="tolearn.html"><i class="icon-chevron-right"></i> What Should I Learn?</a></li>
  62
+        <li><a href="whyruby.html"><i class="icon-chevron-right"></i> Why Ruby?</a></li>
  63
+        <li><a href="#doing"><i class="icon-chevron-right"></i> Doing Something</a></li>
  64
+        <li><a href="#methods"><i class="icon-chevron-right"></i> Methods</a></li>
  65
+        <li><a href="#vars"><i class="icon-chevron-right"></i> Variables</a></li>
  66
+        <li><a href="#"><i class="icon-chevron-right"></i> </a></li>
  67
+      </ul>
  68
+    </div>
48 69
 
49  
-    <header id="page-header" class="">
50  
-      <div class="container-fluid hero-unit ruby-header center">
51  
-        <h1>Ruby</h1>
52  
-        <p>Programming Made Easier</p>
53  
-        <!-- <p>
54  
-          <a class="btn btn-primary btn-large">
55  
-            Learn more
56  
-          </a>
57  
-        </p> -->
58  
-      </div>
59  
-    </header>
60  
-
61  
-    <div class="container-fluid">
62  
-
63  
-    <div class="row-fluid">
  70
+    <div class="span9">
64 71
 
65  
-      <div class="span12">
66  
-      <article>
67  
-        <header>
68  
-          <hgroup class="center not-bold">
69  
-            <h1>Why Learn Ruby?</h1>
70  
-            <h2>Because You Just Want to Get Things Done</h2>
71  
-          </hgroup>
  72
+      <article id="intro">
  73
+        <header class="page-header">
  74
+            <h2>Why Program?</h2>
72 75
         </header>
73 76
         <section>
  77
+
  78
+          <p>Most programming guides just jump into the language, but don't get into why someone would want to make their own program. With all of the commercial software available, why would anyone want to create their own?</p>
  79
+
  80
+          <p>If you want to build a piece of furniture or repair a leaky faucet, you need the right tool. You wouldn't use a hammer when assembling a chair if all it came with were screws; you wouldn't try to tighten a pipe joint with a screwdriver. Even if you have a screwdriver or wrench, is it the proper screwdriver or the proper wrench? What if you could create the exact tool you needed when you needed it?</p>
  81
+
  82
+          <p>We do. Programs are tools. They create or change data.</p>
  83
+
  84
+          <p>Why program? So you can make the exact tool you need to work with your data. If you want to merge ten files into one, you can write a program to do it. If you want to change a comma-separated text file into an HTML table, you can write a program to do it.</p>
  85
+
  86
+          <p>Let's get to it.</p>
  87
+
74 88
         </section>
75 89
         <footer>
  90
+          <ul class="pager">
  91
+            <li><a href="alreadyknow.html">Next</a></li>
  92
+          </ul>
  93
+          <h5>Progress in This Tutorial</h5>
  94
+          <div class="progress progress-striped">
  95
+            <div class="bar" style="width: 5%;"></div>
  96
+          </div>
76 97
         </footer>
77 98
       </article>
78 99
 
79  
-      </div>
  100
+    </div><!--/.span9 -->
80 101
 
81  
-    </div>
82  
-
83  
-    <div class="row-fluid center">
84  
-      <ul class="example-sites not-bold">
85  
-        <li class="span4">
86  
-          <h2>Less Code</h2>
87  
-          <p>Most programming languages make you write 10 lines of code to say "hello." Not Ruby.</p>
88  
-        </li>
89  
-        <li class="span4">
90  
-          <h2>Less Repetition</h2>
91  
-          <p>Ruby's guiding principle is don't repeat yourself. It's written to make that happen.</p>
92  
-        </li>
93  
-        <li class="span4">
94  
-          <h2>Less Time</h2>
95  
-          <p>You can actually make something useful in a few minutes and an entire web application in a few hours.</p>
96  
-        </li>
97  
-      </ul>
98  
-    </div>
99  
-    <footer id="page-footer">
100  
-      <p>Written and designed by Anthony T. Sansone. &copy;2012. Licensed under Creative Commons</p>
101  
-    </footer>
  102
+  </div><!--/.row-fluid -->
  103
+  <footer id="page-footer">
  104
+    <p>Written and designed by Anthony T. Sansone. &copy;2012. Licensed under Creative Commons</p>
  105
+  </footer>
102 106
 
103  
-  </div><!--/.container-fluid-->
  107
+</div><!--/.container-fluid-->
104 108
 
105 109
   <!-- JavaScript
106 110
   ================================================== -->
119  ruby/tolearn.html
... ...
@@ -0,0 +1,119 @@
  1
+<!DOCTYPE html>
  2
+<html lang="en">
  3
+<head>
  4
+  <meta charset="utf-8">
  5
+  <title>Ruby: What Should I Learn?</title>
  6
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7
+
  8
+  <!--Brief page description:-->
  9
+  <meta name="description" content="">
  10
+  <!--Name(s) of primary authors-->
  11
+  <meta name="author" content="">
  12
+
  13
+  <!--Styles-->
  14
+  <link href="/assets/css/bootstrap.css" rel="stylesheet">
  15
+  <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
  16
+  <link href="/assets/css/prettify.css" rel="stylesheet">
  17
+
  18
+  <!--Custom styles-->
  19
+  <link href="/assets/css/custom.css" rel="stylesheet">
  20
+
  21
+  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  22
+  <!--[if lt IE 9]>
  23
+    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  24
+  <![endif]-->
  25
+
  26
+</head>
  27
+
  28
+<body>
  29
+
  30
+<div class="navbar navbar-inverse navbar-fixed-top">
  31
+  <div class="navbar-inner">
  32
+    <div class="container-fluid">
  33
+      <a class="brand" href="/">Bootcamp</a>
  34
+        <ul class="nav">
  35
+          <li><a href="/cli/">CLI</a></li>
  36
+          <li><a href="/git/">Git</a></li>
  37
+          <li><a href="/md/">Markdown</a></li>
  38
+          <li><a href="/html/">HTML</a></li>
  39
+          <li><a href="/css/">CSS</a></li>
  40
+          <li><a href="/js/">Javascript</a></li>
  41
+          <li class="active"><a href="/ruby/">Ruby</a></li>
  42
+        </ul>
  43
+    </div>
  44
+  </div>
  45
+</div>
  46
+
  47
+<header id="page-header" class="">
  48
+  <div class="container-fluid hero-unit ruby-header">
  49
+    <h1>Ruby</h1>
  50
+    <p>Programming Made Easier</p>
  51
+  </div>
  52
+</header>
  53
+
  54
+<div class="container-fluid">
  55
+
  56
+  <div class="row-fluid">
  57
+    <div class="span3 bs-docs-sidebar">
  58
+      <ul class="nav nav-list bs-docs-sidenav">
  59
+        <li><a href="index.html"><i class="icon-chevron-right"></i> Why Program?</a></li>
  60
+        <li><a href="alreadyknow.html"><i class="icon-chevron-right"></i> What Should I Already Know?</a></li>
  61
+        <li><a href="tolearn.html"><i class="icon-chevron-right"></i> What Should I Learn?</a></li>
  62
+        <li><a href="whyruby.html"><i class="icon-chevron-right"></i> Why Ruby?</a></li>
  63
+        <li><a href="#doing"><i class="icon-chevron-right"></i> Doing Something</a></li>
  64
+        <li><a href="#methods"><i class="icon-chevron-right"></i> Methods</a></li>
  65
+        <li><a href="#vars"><i class="icon-chevron-right"></i> Variables</a></li>
  66
+        <li><a href="#"><i class="icon-chevron-right"></i> </a></li>
  67
+      </ul>
  68
+    </div>
  69
+
  70
+    <div class="span9">
  71
+
  72
+      <article id="tolearn">
  73
+        <header class="page-header">
  74
+            <h2>What Should I Learn?</h2>
  75
+        </header>
  76
+        <section>
  77
+          <p>After completing this section, you should understand how to:</p>
  78
+          <ul>
  79
+            <li>Read Ruby code</li>
  80
+            <li>Understand general programming terms</li>
  81
+            <li>Identify operators, variables, arrays, hashes, methods, objects, classes, modules, symbols</li>
  82
+            <li>Create variables, arrays and hashes and assign values to them</li>
  83
+            <li>Create methods</li>
  84
+            <li>Create classes and objects</li>
  85
+            <li>Create symbols</li>
  86
+            <li>Error check your program</li>
  87
+          </ul>
  88
+        </section>
  89
+        <footer>
  90
+          <ul class="pager">
  91
+            <li><a href="alreadyknow.html">Previous</a></li>
  92
+            <li><a href="whyruby.html">Next</a></li>
  93
+          </ul>
  94
+          <h5>Progress in This Tutorial</h5>
  95
+          <div class="progress progress-striped">
  96
+            <div class="bar" style="width: 15%;"></div>
  97
+          </div>
  98
+        </footer>
  99
+      </article>
  100
+
  101
+    </div><!--/.span9 -->
  102
+
  103
+  </div><!--/.row-fluid -->
  104
+  <footer id="page-footer">
  105
+    <p>Written and designed by Anthony T. Sansone. &copy;2012. Licensed under Creative Commons</p>
  106
+  </footer>
  107
+
  108
+</div><!--/.container-fluid-->
  109
+
  110
+  <!-- JavaScript
  111
+  ================================================== -->
  112
+  <!-- Placed at the end of the document so the pages load faster -->
  113
+  <script src="/assets/js/jquery.js"></script>
  114
+  <script src="/assets/js/bootstrap.min.js"></script>
  115
+  <script src="/assets/js/prettify/prettify.js"></script>
  116
+
  117
+</body>
  118
+</html>
  119
+
152  ruby/whyruby.html
... ...
@@ -0,0 +1,152 @@
  1
+<!DOCTYPE html>
  2
+<html lang="en">
  3
+<head>
  4
+  <meta charset="utf-8">
  5
+  <title>Ruby: Why Ruby?</title>
  6
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7
+
  8
+  <!--Brief page description:-->
  9
+  <meta name="description" content="">
  10
+  <!--Name(s) of primary authors-->
  11
+  <meta name="author" content="">
  12
+
  13
+  <!--Styles-->
  14
+  <link href="/assets/css/bootstrap.css" rel="stylesheet">
  15
+  <link href="/assets/css/bootstrap-responsive.css" rel="stylesheet">
  16
+  <link href="/assets/css/prettify.css" rel="stylesheet">
  17
+
  18
+  <!--Custom styles-->
  19
+  <link href="/assets/css/custom.css" rel="stylesheet">
  20
+
  21
+  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  22
+  <!--[if lt IE 9]>
  23
+    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  24
+  <![endif]-->
  25
+
  26
+</head>
  27
+
  28
+<body>
  29
+
  30
+<div class="navbar navbar-inverse navbar-fixed-top">
  31
+  <div class="navbar-inner">
  32
+    <div class="container-fluid">
  33
+      <a class="brand" href="/">Bootcamp</a>
  34
+        <ul class="nav">
  35
+          <li><a href="/cli/">CLI</a></li>
  36
+          <li><a href="/git/">Git</a></li>
  37
+          <li><a href="/md/">Markdown</a></li>
  38
+          <li><a href="/html/">HTML</a></li>
  39
+          <li><a href="/css/">CSS</a></li>
  40
+          <li><a href="/js/">Javascript</a></li>
  41
+          <li class="active"><a href="/ruby/">Ruby</a></li>
  42
+        </ul>
  43
+    </div>
  44
+  </div>
  45
+</div>
  46
+
  47
+<header id="page-header" class="">
  48
+  <div class="container-fluid hero-unit ruby-header">
  49
+    <h1>Ruby</h1>
  50
+    <p>Programming Made Easier</p>
  51
+  </div>
  52
+</header>
  53
+
  54
+<div class="container-fluid">
  55
+
  56
+  <div class="row-fluid">
  57
+    <div class="span3 bs-docs-sidebar">
  58
+      <ul class="nav nav-list bs-docs-sidenav">
  59
+        <li><a href="index.html"><i class="icon-chevron-right"></i> Why Program?</a></li>
  60
+        <li><a href="alreadyknow.html"><i class="icon-chevron-right"></i> What Should I Already Know?</a></li>
  61
+        <li><a href="tolearn.html"><i class="icon-chevron-right"></i> What Should I Learn?</a></li>
  62
+        <li><a href="whyruby.html"><i class="icon-chevron-right"></i> Why Ruby?</a></li>
  63
+        <li><a href="#doing"><i class="icon-chevron-right"></i> Doing Something</a></li>
  64
+        <li><a href="#methods"><i class="icon-chevron-right"></i> Methods</a></li>
  65
+        <li><a href="#vars"><i class="icon-chevron-right"></i> Variables</a></li>
  66
+        <li><a href="#"><i class="icon-chevron-right"></i> </a></li>
  67
+      </ul>
  68
+    </div>
  69
+
  70
+    <div class="span9">
  71
+
  72
+      <article id="whyruby">
  73
+        <header class="page-header">
  74
+          <h2>Why Ruby?</h2>
  75
+        </header>
  76
+        <section>
  77
+          <p>There are many programming languages available to a new programmer. Some you may know: Java, C and Javascript. Some you may not know: Haskell, Lisp or SmallTalk.</p>
  78
+          <p>Ruby is flexible, popular, easy to code and free.</p>
  79
+
  80
+          <h3>Flexible</h3>
  81
+          <p>Ruby can be used for most anything: web applications, system utilities or even games. It is not made to only do one thing.</p>
  82
+          <p>Any programmer can also alter Ruby. If needed functionality does not exist in Ruby, the programmer can add it.</p>
  83
+
  84
+          <h3>Popular</h3>
  85
+          <p>Ruby is one of the top ten most used programming languages. Ruby on Rails, introduced in 2003, allows for rapid development of web applications. Many well known sites use Rails: <a href="http://www.groupon.com">Groupon</a>, LinkedIn, GitHub, Hulu, Basecamp, Penny Arcade and others.</p>
  86
+
  87
+          <p>Ruby's popularity stems from its ease of use and comprehension.</p>
  88
+
  89
+          <h3>Easy to Read and Code</h3>
  90
+
  91
+          <p>Ruby is written to appear as close to English as possible. It does not add more to the language to do something simple.</p>
  92
+
  93
+          <p>If you want to have your computer show "Hello world!" on the screen, you would need to do the following...</p>
  94
+
  95
+          <h4>In Java</h4>
  96
+
  97
+<pre>
  98
+public class HelloWorld {
  99
+  public static void main(String[] args) {
  100
+    System.out.println("Hello world!");
  101
+  }
  102
+}
  103
+</pre>
  104
+
  105
+          <p>Translated, this says: Create a block of code that anyone can use to show "Hello world!". In this block, there is a block of code, a function, that runs by default, called "main", whenever someone tries to use HelloWorld. This function does not require additional information. This function runs a command, called a method, that prints a line of text ("Hello world!") out to the system (System.out.println). <i>Whew.</i></p>
  106
+
  107
+          <h4>In Ruby</h4>
  108
+
  109
+<pre>
  110
+puts "Hello world!"
  111
+</pre>
  112
+
  113
+          <p>This says put "Hello world!" on the screen.</p>
  114
+
  115
+          <p>Which language would you rather learn?</p>
  116
+
  117
+          <h3>Free</h3>
  118
+
  119
+          <p>Ruby can be downloaded and installed at no cost. All you need to program with it is a text editor; no specialized programs are required.</p>
  120
+
  121
+        </section>
  122
+        <footer>
  123
+          <ul class="pager">
  124
+            <li><a href="tolearn.html">Previous</a></li>
  125
+            <li><a href="#">Next</a></li>
  126
+          </ul>
  127
+          <h5>Progress in This Tutorial</h5>
  128
+          <div class="progress progress-striped">
  129
+            <div class="bar" style="width: 20%;"></div>
  130
+          </div>
  131
+        </footer>
  132
+      </article>
  133
+
  134
+    </div><!--/.span9 -->
  135
+
  136
+  </div><!--/.row-fluid -->
  137
+  <footer id="page-footer">
  138
+    <p>Written and designed by Anthony T. Sansone. &copy;2012. Licensed under Creative Commons</p>
  139
+  </footer>
  140
+
  141
+</div><!--/.container-fluid-->
  142
+
  143
+  <!-- JavaScript
  144
+  ================================================== -->
  145
+  <!-- Placed at the end of the document so the pages load faster -->
  146
+  <script src="/assets/js/jquery.js"></script>
  147
+  <script src="/assets/js/bootstrap.min.js"></script>
  148
+  <script src="/assets/js/prettify/prettify.js"></script>
  149
+
  150
+</body>
  151
+</html>
  152
+
53  ruby/writeup.md
Source Rendered
... ...
@@ -0,0 +1,53 @@
  1
+Why Program?
  2
+
  3
+Most programming guides just jump into the language, but don't get into why someone would want to make their own program. With all of the commercial software available, why would anyone want to create their own?
  4
+
  5
+If you want to build a piece of furniture or repair a leaky faucet, you need the right tool. You wouldn't use a hammer when assembling a chair if all it came with were screws; you wouldn't try to tighten a pipe joint with a screwdriver. Even if you have a screwdriver or wrench, is it the proper screwdriver or the proper wrench? What if you could create the exact tool you needed when you needed it?
  6
+
  7
+Well, at Technical Communication, we are not building chairs or fixing pipes; we are communicating information: we are working with data. Wouldn't it be great to have exactly the right tool to create new data or change data?
  8
+
  9
+We do. Programs are tools. They create or change data.
  10
+
  11
+Why program? So you can make the exact tool you need to work with your data. If you want to merge ten files into one, you can write a program to do it. If you want to change a comma-separated text file into an HTML table, you can write a program to do it.
  12
+
  13
+Let's get to it.
  14
+
  15
+What Should I Already Know?
  16
+
  17
+This section assumes that you know:
  18
+How to use a text editor
  19
+How to use the Linux command line
  20
+How to use Git
  21
+How to read HTML
  22
+
  23
+What Should I Learn?
  24
+
  25
+After completing this section, you should understand how to:
  26
+Read Ruby code
  27
+Identify variables, arrays, hashes, methods, objects, classes, modules, symbols
  28
+Create variables, arrays and hashes and assign values to them
  29
+Create methods
  30
+Create classes and objects
  31
+Create symbols
  32
+Error check your program
  33
+
  34
+Why Ruby?
  35
+
  36
+There are many programming languages available to a new programmer. Some you may have heard--Java, C and Javascript, some you may not--Haskell, Lisp or SmallTalk.
  37
+
  38
+Ruby is flexible, popular, easy to read and free.
  39
+
  40
+
  41
+
  42
+Java
  43
+
  44
+public class HelloWorld {
  45
+   public static void main(String[] args) {
  46
+       System.out.println("Hello world!");
  47
+   }
  48
+}
  49
+
  50
+Ruby
  51
+
  52
+puts "Hello world!"
  53
+

No commit comments for this range

Something went wrong with that request. Please try again.