On Mon, Mar 14, 2011 at 8:07 AM, Adam Hardy wrote:
> But for the future I am writing an app where the user can upload a file of
> data and specify the input using that printf/scanf pattern description, and
> output the same data into new file with a new format according to a secocnd
> pattern. It's OHLC historical data from the financial markets, and it must
> be in the correct format for importing into various different analysis
> programs.

DSL. In fact a guy at the Clojure NYC meetup did this exact thing (for
financial data, in clojure) to generate all the Java APIs needed to
consume/write the data files.

Groovy or JRuby might be a better choice depending on how averse you
are to toenail-based languages, but this is precisely the kind of
thing DSLs are good for, and it's a lot easier to remember a
human-readable DSL than the scanf spec, and it'd be easier to add
domain-specific data types.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to