aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2004-09-28-raggle-reorg-notes.html
blob: c2469e4d5940a1b21e49ad989633e7a8e4c1d994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
date: "2004-09-28T18:15:42Z"
title: Raggle Reorg Notes
---

<p>
<a href='http://richlowe.net/'>Richard (richlowe)</a> will kill me for saying this, but this (roughly) how I want code for the next version of <a href='http://raggle.org/'>Raggle</a> to look:
</p>

<pre><code>
require 'raggle/engine'
require 'raggle/interface/ncurses'

# load raggle config
Raggle::Config::load_config

# start raggle engine
engine = Raggle::Engine.new

# start interface and bind it to engine
iface_class = Raggle::Config::interfaces[$config['interface']]
iface = iface_class.new(engine)
</code>
</pre>

<p>
(He'll be pissed because he was pushing or that forever, and I kept
saying I wanted <a href='http://raggle.org/'>Raggle</a> to be all one
file, simple to install and use).  Well, it's getting bigger and bigger,
and I don't see any other way to keep the code manageable and to do some
of the things I plan to do other than splitting it up into separate
files.
</p>