Search the web
Sign In
New User? Sign Up
frontierkernel · Frontier Kernel
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
The future life of Frontier vs. migrating to other platforms   Message List  
Reply | Forward Message #3808 of 3834 |
Re: The future life of Frontier vs. migrating to other platforms

> 1.2. Re: The future life of Frontier vs. migrating to other platforms
> Posted by: "steve harley" yahoo.20020228.groups@...
> garbanzito_real
> Date: Mon Jul 6, 2009 8:57 am ((PDT))
>
>
> i don't manage websites with Frontier, and it sounds like my use
> of the odb is not what you'd expect
>
> i have a very fine-grained ODB that my client needs to be able to
> edit conveniently; for example just one of the numerous book
> formatting configurations in my system exports as 1325 files and
> folders, nested 7 deep; all of the values are scalars or short
> strings
>
> this would translate well to Python dictionaries, with a fairly
> simple code translation path; i'm sure i could read a set of
> files into dictionaries, the problem is how to edit the files? i
> don't know anything as convenient as Frontier's odb editor

Yes, this puzzled me too, as I was contemplating writing RubyFrontier -
that's going back a couple of years now. At the time, as I saw that my hopes
for the Frontier Open Source project were not going to be realized, I
started to think about alternatives. At first I feared that I might have to
write some kind of Cocoa-based GUI front end to allow editing of some sort
of ODB-like structure. Then I discovered that Ruby likes to save structured
data as YAML.

http://www.yaml.org/

Saving out a "dictionary" (Ruby calls this a hash) to a text file, or
reading it back in, is a single brief line of code. Now you've got (wait for
it) a text file! With a good text editor, such as TextMate's YAML module,
that's easy to edit. And TextMate's wonderful project / folder editing
abilities make it easy to go after those files no matter how deeply they are
nested.

Just to give a simple example, here's how YAML and RubyFrontier save a web
site prefs table to a text file:

---
:renderoutlinewith: halo
:dreamweaver: false
:smartypants: true
:halo_shortcut: "|"
:haloautoparagraphs: true
:useImageCache: false
:includeMetaCharset: true
:stylesheetstyles: true
:includeMetaGenerator: true
:dolinkback: false
:markdown: true
:draft: false
:flatten: false

Look familiar? Look easy to edit?

So, as I say, I don't think there is anything special about the odb or about
Frontier's interface for editing it. YAML is all about configuration files -
configuration files that are edited as text but are then instantly read in
as complex data structures (like Frontier's tables). Look at Ruby on Rails
if you don't believe me.

At this point, the only thing Frontier does well that I miss is edit
outlines. But I just use another outliner (OmniOutliner, at the moment) and
save out as OPML. OPML is just XML (really crappy XML, but never mind), so
RubyFrontier can easily read it and parse it and Bob's your uncle.

I'm saying all this not to persuade you to use any particular tool. Others
have pointed out Python and various Python-based solutions. It doesn't
matter what you eventually use. I'm saying it because a couple of years ago,
I was where you are (I think). I felt trapped in the ODB. But the more I
began get my head out of the sand and to look into what was going on in the
real world, the more I began to understand that every part of the puzzle was
already a solved problem, and that Frontier wasn't doing *anything* on which
I was absolutely dependent.

m.

--
matt neuburg, phd = matt@..., http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Customizing Leopard, http://tinyurl.com/2t9629
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com






Tue Jul 7, 2009 12:22 am

mattneub
Offline Offline
Send Email Send Email

Forward
Message #3808 of 3834 |
Expand Messages Author Sort by Date

... RubyFrontier has definitely caught my interest in past mentions ... i don't manage websites with Frontier, and it sounds like my use of the odb is not what...
steve harley
garbanzito_real
Offline Send Email
Jul 6, 2009
3:57 pm

... Yes, this puzzled me too, as I was contemplating writing RubyFrontier - that's going back a couple of years now. At the time, as I saw that my hopes for...
Matt Neuburg
mattneub
Offline Send Email
Jul 7, 2009
12:22 am

... excellent -- looks like nested YAML outlines in key/value form are reasonable enough for my non-geek client to edit in BBEdit (which folds YAML nicely),...
steve harley
garbanzito_real
Offline Send Email
Jul 7, 2009
1:25 am

... Jumping in: it's not crazy to use Frontier for editing, then write the file to disk for Python/Ruby. Many folks don't like editing text files. Or, as Matt...
Scott S. Lawton
prefabsoftware
Offline Send Email
Jul 7, 2009
2:04 am

... well, if i'm just using Frontier as an outline editor, i'd probably choose OmniOutliner; either adds an export step, and as i mentioned OmniOutliner can do...
steve harley
garbanzito_real
Offline Send Email
Jul 7, 2009
4:35 am

On Mon, Jul 6, 2009 at 9:24 PM, steve ... Let me know if you run into any problems with BBEdit's YAML module. I wrote it, I can fix it. (I know there are a...
Seth Dillingham
macrobyteres...
Online Now Send Email
Jul 7, 2009
3:53 pm
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help