From 4b6c0e31385f5f27a151088c0a2b614495c4e589 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 14 Oct 2021 12:47:50 -0400 Subject: initial commit, including theme --- content/posts/2004-09-28-raggle-reorg-notes.html | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 content/posts/2004-09-28-raggle-reorg-notes.html (limited to 'content/posts/2004-09-28-raggle-reorg-notes.html') diff --git a/content/posts/2004-09-28-raggle-reorg-notes.html b/content/posts/2004-09-28-raggle-reorg-notes.html new file mode 100644 index 0000000..c2469e4 --- /dev/null +++ b/content/posts/2004-09-28-raggle-reorg-notes.html @@ -0,0 +1,34 @@ +--- +date: "2004-09-28T18:15:42Z" +title: Raggle Reorg Notes +--- + +

+Richard (richlowe) will kill me for saying this, but this (roughly) how I want code for the next version of Raggle to look: +

+ +

+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)
+
+
+ +

+(He'll be pissed because he was pushing or that forever, and I kept +saying I wanted Raggle 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. +

+ -- cgit v1.2.3