anything

Author Topic: Redesign of the Command-Line Edition  (Read 12721 times)

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1158
  • Programmer
Redesign of the Command-Line Edition
« on: September 23, 2007, 02:26:06 AM »
Since it seems anyone who uses this edition and asks about appears to not use the Firefox Edition, I'm wondering if we should try to make an effort to make this edition more standalone, like the online edition is currently? If so, how do we do it?
"I'm not drunk, just sleep deprived."

Offline tanstaafl

  • Moderator
  • *****
  • Posts: 1363
Re: Redesign of the Command-Line Edition
« Reply #1 on: September 23, 2007, 02:40:37 AM »
Being that I'm not a programmer, my answer will be simplistic and general in nature, but...

It should use a well-defined (established? industry standard?) API, so that any other program could hook into it - feed it a password, and return the generated password.

Beyond that, I don't know...

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1158
  • Programmer
Re: Redesign of the Command-Line Edition
« Reply #2 on: September 23, 2007, 03:01:23 AM »
Were you even using computers during the DOS days? (Or did you start at Windows 95, or 3.1 with it set to autostart anyway?)
"I'm not drunk, just sleep deprived."

Offline tanstaafl

  • Moderator
  • *****
  • Posts: 1363
Re: Redesign of the Command-Line Edition
« Reply #3 on: September 23, 2007, 03:18:53 AM »
Oh, yeah - I did some fun stuff with batch files...

I think DOS was at about 3.1 when I first got into the game... well, whatever it was at in 1985...

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
Re: Redesign of the Command-Line Edition
« Reply #4 on: September 24, 2007, 12:32:02 AM »
Tanstaafl- I think what Miquel is getting at is that the command-line edition already supports an "API" through the use of standard out and standard in. These are about as well-established of a standard "api" as you could hope for. There are certainly other standards which we could wrap around the core, such as COM, but I don't see the effort worth the limited payback.

Miquel- when you say "try to make an effort to make this edition more standalone", can you elaborate? In what ways do you see it as non-standalone right now?

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1158
  • Programmer
Re: Redesign of the Command-Line Edition
« Reply #5 on: September 24, 2007, 12:52:33 AM »
Well, right now, you need to set some sort of settings when you run it, or it will only work with the defaults (which, currently, may not match other editions...), and uses the RDF format for storing settings anyway, which you need the Firefox Edition to create.
"I'm not drunk, just sleep deprived."

Offline tanstaafl

  • Moderator
  • *****
  • Posts: 1363
Re: Redesign of the Command-Line Edition
« Reply #6 on: September 24, 2007, 02:57:18 PM »
Ok, so maybe just switch it to a standard text .conf file format... and it would be neat (but not necessary) if the Firefox extension supported exporting a single accounts settings to this format too...

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1158
  • Programmer
Re: Redesign of the Command-Line Edition
« Reply #7 on: September 24, 2007, 03:19:12 PM »
I think the new XML format that's used on the desktop edition would be enough.
"I'm not drunk, just sleep deprived."

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
Re: Redesign of the Command-Line Edition
« Reply #8 on: September 24, 2007, 06:38:38 PM »
I think the new XML format that's used on the desktop edition would be enough.
Yes, that sounds good. And with FF's debate over when/if to deprecate RDF support, the FF edition might need to convert to using XML instead of RDF sooner rather than later.

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1158
  • Programmer
Re: Redesign of the Command-Line Edition
« Reply #9 on: September 24, 2007, 08:15:26 PM »
Who knows, if all goes well, switching to the XML format (as currently planned) may help with the fact that the select accounts appears out of order every time or something.
"I'm not drunk, just sleep deprived."

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
Re: Redesign of the Command-Line Edition
« Reply #10 on: September 24, 2007, 08:47:20 PM »
It will help with that but other things, too, like sorting. It will make writing sorting code easier. However, converting the FF edition from RDF to XML is a ginormous undertaking--on the scale of internationalizing PasswordMaker like Mauro did. Worse yet, it's not a change/enhancement that most users will notice. So I could spend months on it and most people won't even realize anything changes between versions.

Offline Miquel 'Fire' Burns

  • Administrator
  • *****
  • Posts: 1158
  • Programmer
Re: Redesign of the Command-Line Edition
« Reply #11 on: September 25, 2007, 02:46:27 AM »
Yea, I know. Maybe make a branch for XML support at some point? At first, just work on getting it to be able to at least import and export in the new XML format, then we'll deal with having it use the format natively.

But first, finalize the XML format! Only Defaults and Settings are basically set in stone right now. (because that's all that the Desktop Edition supports)
"I'm not drunk, just sleep deprived."

PasswordMaker Forums

Re: Redesign of the Command-Line Edition
« Reply #11 on: September 25, 2007, 02:46:27 AM »