Talk:Simple database: Difference between revisions

→‎command line interface: I favor separation
(→‎command line interface: I favor separation)
Line 8:
Presumably it does not matter if the command line interface uses a command line supplied by the application, the language or the operating system? --[[User:Rdm|Rdm]] 11:59, 1 November 2011 (UTC)
:well, one point of the task is to tie in other tasks like the use of serialization and also reading commandline options. i think building an interface on top of a REPL is worth a separate task: [[Readline interface]] (build a simple application with a readline interface.) the functionality of this program may be taken from [[Simple database]])--[[User:EMBee|eMBee]] 06:20, 2 November 2011 (UTC)
:: In general, the way I'd do it is to write a library that implements the functionality as a collection of procedures(/classes/whatever) and then an application or two that wraps that into a true command-line interface, an interactive shell, a GUI, a webapp, etc. as necessary. (Well, I wouldn't normally bother with writing an interactive shell as my preferred language already has one, but you get the picture.) Dividing functionality from (user-facing) interface makes testing much easier too. –[[User:Dkf|Donal Fellows]] 09:05, 2 November 2011 (UTC)
Anonymous user