Permalink
Browse files

Don't keep .html and .beam files.

  • Loading branch information...
1 parent 5be0f8b commit c0b6faddc5f8ca30286f6d338a79ab9a367626a0 @sschaefer committed Sep 28, 2011
View
@@ -1 +1,3 @@
+ebin/*.beam
+docs/*.html
erl_crash.dump
View
11 README
@@ -0,0 +1,11 @@
+This is code transcribed, modified or created by Stephen P. Schaefer as he
+works the examples in "Erlang and OLT in Action" by Logan, Merritt, and
+Carlsson, published by Manning. I find the exercises quite useful, and
+very much recommend the book.
+
+The authors have graciously provided the code with an MIT license, as declared
+here: http://www.manning-sandbox.com/thread.jspa?threadID=46558&tstart=0
+
+I've typed the code in rather than cloning the git repository, so as to
+learn how to understand and correct my errors. I've also made modifications;
+don't rely on this code as you would the original author's!
@@ -1,66 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Module minimal_genserver</title>
-<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<hr>
-
-<h1>Module minimal_genserver</h1>
-<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Transcribed from the minimal genserver behavior implementation code in
- the "OTP in Action" book by Logan, Merritt and Carlsson.
-<p>Copyright © Stephen P. Schaefer</p>
-
-<p><b>Behaviours:</b> <a href="gen_server.html"><tt>gen_server</tt></a>.</p>
-<p><b>Authors:</b> Martin &amp; Eric (<a href="mailto:erlware-dev@googlegroups.com"><tt>erlware-dev@googlegroups.com</tt></a>) [<em>web site:</em> <tt><a href="http://www.manning.com/logan" target="_top">http://www.manning.com/logan</a></tt>], transcribed by Stephen P. Schaefer (<a href="mailto:sschaefer@acm.org"><tt>sschaefer@acm.org</tt></a>) [<em>web site:</em> <tt><a href="http://followingthesystemtutorial.blogspot.com" target="_top">http://followingthesystemtutorial.blogspot.com</a></tt>].</p>
-
-<h2><a name="description">Description</a></h2>Transcribed from the minimal genserver behavior implementation code in
- the "OTP in Action" book by Logan, Merritt and Carlsson.
-<h2><a name="index">Function Index</a></h2>
-<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#code_change-3">code_change/3</a></td><td></td></tr>
-<tr><td valign="top"><a href="#handle_call-3">handle_call/3</a></td><td></td></tr>
-<tr><td valign="top"><a href="#handle_cast-2">handle_cast/2</a></td><td></td></tr>
-<tr><td valign="top"><a href="#handle_info-2">handle_info/2</a></td><td></td></tr>
-<tr><td valign="top"><a href="#init-1">init/1</a></td><td></td></tr>
-<tr><td valign="top"><a href="#terminate-2">terminate/2</a></td><td></td></tr>
-</table>
-
-<h2><a name="functions">Function Details</a></h2>
-
-<h3 class="function"><a name="code_change-3">code_change/3</a></h3>
-<div class="spec">
-<p><tt>code_change(OldVsn::_OldVsn, State, Extra::_Extra) -&gt; {ok, State}</tt><br></p>
-</div>
-
-<h3 class="function"><a name="handle_call-3">handle_call/3</a></h3>
-<div class="spec">
-<p><tt>handle_call(Request::_Request, From::_From, State::#state{}) -&gt; {reply, ok, State}</tt><br></p>
-</div>
-
-<h3 class="function"><a name="handle_cast-2">handle_cast/2</a></h3>
-<div class="spec">
-<p><tt>handle_cast(Msg::_Msg, State) -&gt; {noreply, State}</tt><br></p>
-</div>
-
-<h3 class="function"><a name="handle_info-2">handle_info/2</a></h3>
-<div class="spec">
-<p><tt>handle_info(Info::_Info, State) -&gt; {noreply, State}</tt><br></p>
-</div>
-
-<h3 class="function"><a name="init-1">init/1</a></h3>
-<div class="spec">
-<p><tt>init(X1::_Ignored) -&gt; {ok, #state{}}</tt><br></p>
-</div>
-
-<h3 class="function"><a name="terminate-2">terminate/2</a></h3>
-<div class="spec">
-<p><tt>terminate(Reason::_Resason, State::_State) -&gt; ok</tt><br></p>
-</div>
-<hr>
-
-<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<p><i>Generated by EDoc, Sep 28 2011, 01:57:25.</i></p>
-</body>
-</html>
View
@@ -1,15 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>Overview</title>
-<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
-</head>
-<body bgcolor="white">
-<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<h1>Overview</h1>
-
-<hr>
-<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
-<p><i>Generated by EDoc, Sep 28 2011, 01:57:26.</i></p>
-</body>
-</html>
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -19,6 +19,16 @@
-include("minimal_genserver.hrl").
-export([]).
+-ifndef(TEST).
+-export([
+ init_test/0,
+ handle_call_test/0,
+ handle_cast_test/0,
+ handle_info_test/0,
+ terminate_test/0,
+ code_change_test/0
+ ]).
+-endif.
%%%==============================================================================
%%% Tests

0 comments on commit c0b6fad

Please sign in to comment.