News for hackers. Stuff that matters.
Re:Most open-source software is libraries or frameworks by jsgo on Sunday July 23, 2017 @09:10PM (#14835278)
Honestly though, I don't think that's far off in that even those you mentioned are leveraged as a library (Firefox maybe not, not sure. Chrome can be used headless so guessing there's a possibility for Firefox. Some of the open source internals are used in other projects though). But OpenSSH for sure is used within other software. Okay, maybe libreoffice isn't a case (at least I don't think it is).

At this point, I just love seeing GUI software I leverage also coming with a CLI. I learn what it can do for me with the GUI and then can use the CLI to manage the heavy lifting for me.

Re:Most open-source software is libraries or frameworks by SwellJoe on Sunday July 23, 2017 @10:17PM (#14835462)
We could name hundreds, probably thousands, of OSS applications that are more popular than the laughably obscure #4 and #5 in the list in the article (not laughable in the sense that I mean to devalue their work, just that they are so clearly for an extremely niche user, and that user is a programmer).

I don't really care to argue semantics about what's a library vs. what's an app. Because many libraries have a UI and many apps have an API; that's another discussion, really (though, you've got tens of millions of people using Firefox through the UI daily and maybe a few thousand using it as a library daily...I know where I fall on the "is it an app or a library" continuum).

But, seriously, this article looked at one pile of data generated by a site that is entirely by and for programmers and declared that the entirety of OSS is represented by that data. The more I think about it, the more ridiculous, and maybe even offensive, it seems.

Re:Most open-source software is libraries or frameworks by KamBha on Monday July 24, 2017 @12:00AM (#14835807)
Regarding FF headless mode:- https://bugzilla.mozilla.org/show_bug.cgi?id=1338004

Basically, WIP. For now, if you have NodeJS:-

https://slimerjs.org/

It is kinda headless.

Re:Most open-source software is libraries or frameworks by jcelerier on Monday July 24, 2017 @04:29AM (#14836757)
> At this point, I just love seeing GUI software I leverage also coming with a CLI.

I really wonder what is the point of a CLI for, say, Krita or LibreOffice.

Re:Most open-source software is libraries or frameworks by SwellJoe on Monday July 24, 2017 @04:43AM (#14836808)
GIMP has Script Fu (and a newer Python interface) which has been used for wonderfully time-saving things (e.g. process a thousand images with the same plugins and settings and such, implement your own custom processing tools by combining existing ones, etc.)

I'm sure the same sorts of things can be done with Krita, though I'm not familiar with it.

As for LibreOffice, that seems obvious. An easy/automated way to get data into and out of it for processing in other programs. An automated way to process lots of documents that need to stay in LibreOffice but need the same change performed on them (currency conversion, date format normalization, copyright update, etc.).

It's the same reason you'd want anything to be programmable: Automating away the tedious stuff.

Re:Most open-source software is libraries or frameworks by jcelerier on Monday July 24, 2017 @09:09AM (#14838101)
> GIMP has Script Fu (and a newer Python interface) which has been used for wonderfully time-saving things (e.g. process a thousand images with the same plugins and settings and such, implement your own custom processing tools by combining existing ones, etc.)

Begin scriptable and having a CLI are two orthogonal concepts. With Script FU, GIMP itself executes scripts. If gimp had a CLI it means that you could be able to do stuff like "gimp --select-pen 2px solid black --moveTo 0 0 --lineTo 100 100 --lineTo 50 50" for instance (for which I don't see the point of using GIMP to do).

Re:Most open-source software is libraries or frameworks by sqeaky on Monday July 24, 2017 @12:47PM (#14840031)
Now you are picking on minor wording choices. You asked for clarification and when it was provided you start beating up the person who responded with meaningful content.
Re:Most open-source software is libraries or frameworks by SwellJoe on Monday July 24, 2017 @03:50PM (#14842015)
Re:Most open-source software is libraries or frameworks by pletnes on Monday July 24, 2017 @04:43AM (#14836809)
Automated file conversion, e.g odf to pdf, comes to mind.
Re:Most open-source software is libraries or frameworks by jcelerier on Monday July 24, 2017 @09:07AM (#14838082)
> Automated file conversion, e.g odf to pdf, comes to mind.

but why would it have to be related to libreoffice at all? couldn't the ODF format be implemented as a library, which then both libreoffice and "odf2pdf" command could be implemented upon ?

Re:Most open-source software is libraries or frameworks by hanbura on Monday July 24, 2017 @09:34AM (#14838294)
Once you have a library for reading ODF, reasoning about its structure, manipulating it and rendering it in various formats, that's just libreoffice without the GUI. When starting fresh it might be a decent idea to make it a library, but I don't think it's worth transitioning to if you started with a more traditional design
Re:Most open-source software is libraries or frameworks by jsgo on Tuesday July 25, 2017 @10:50AM (#14848114)
you could get the feature from any number of areas, I'm just saying that in a lot of cases, the GUI can act as a "gateway" to understanding the functionality of the application and the CLI can then be used to implement/extend/whatever said functionality for personal use. Handbrake is one that I think implements this well.