News for hackers. Stuff that matters.
Re:What Is Wrong with TOML? by lucumo on Wednesday September 13, 2023 @07:06AM (#37495130)
Were there any downsides? Because this sounds kind of awesome.
Re:What Is Wrong with TOML? by dagw on Wednesday September 13, 2023 @07:14AM (#37495189)
Once you got used to it, honestly not really, other than needing Excel (not a huge deal since it was a Windows only application). I've no idea what the config parsing code looked like, but with the right library I doubt it was worse than any other non-trivial config parsing code. Mainly it just felt very wrong to my Unix, everything must be a text file, brain.
Re:What Is Wrong with TOML? by throwaway290 on Wednesday September 13, 2023 @09:42AM (#37496634)
Well, xlsx is just a zipped dir of text (XML) files, so you can think of it as sort of following the .d pattern...
Re:What Is Wrong with TOML? by kagevf on Wednesday September 13, 2023 @11:07AM (#37497770)
> the .d pattern

What's that? I ddg'd it and I got a bunch of hits for regex \d ...

Re:What Is Wrong with TOML? by throwaway290 on Wednesday September 13, 2023 @11:17AM (#37497903)
conf.d, init.d
Re:What Is Wrong with TOML? by kagevf on Wednesday September 13, 2023 @11:46AM (#37498285)
Ah, got it, thanks!
Re:What Is Wrong with TOML? by urinotherapist on Thursday September 14, 2023 @01:06AM (#37505183)
Re:What Is Wrong with TOML? by kagevf on Thursday September 14, 2023 @06:11PM (#37515500)
That was an informative read - thank you!
Re:What Is Wrong with TOML? by arethuza on Wednesday September 13, 2023 @10:56AM (#37497589)
There are some pretty awesome libraries for reading and working with Excel files - Aspose.Cells being one I used for years - basically a headless re-implementation of most of Excel usable via an API.
Re:What Is Wrong with TOML? by sowbug on Wednesday September 13, 2023 @02:27PM (#37499898)
Never thought I'd get a chance to tell this story.

Early 1990s, college internship. The company did presentations for clients, like many do. They had an unusual way of presenting data that required using actual protractors to draw circles and curves, with pencil, on otherwise computer-generated charts. They read numbers from Excel spreadsheets and plotted them on paper.

I was shocked, to say the least. I proposed writing a program that read Excel spreadsheets and emitted the graphics. They loved the idea, especially from a summer intern.

So I wrote a letter to Microsoft asking for documentation of the Excel file format. A week later I got a thick envelope with a photocopied manual completely describing the format. I remember the word BIFF throughout. I wrote the program, it worked great, and I even negotiated a hefty lump-sum payment to sell it to them at the end of the summer.

It left me with a very positive impression of Microsoft as a developer-friendly company. Makes sense; developers are their platform's customers, and they're good at serving their customers.

Re:What Is Wrong with TOML? by andrew_eu on Wednesday September 13, 2023 @11:02AM (#37497686)
For better or worse I created a very similar system, but using Google Sheets instead of Excel files and fetched with the GSheets API. In that case the configuration was gigantic (many of the configuration values were product-decisions, and it ran in hundreds of different environments with different tweaks), so the tabular structure made navigating things very natural. It also had the advantage of structurally highlighting how environments differed. Doing it with Google Sheets came with some extra nice benefits: online sharing, versioning, access control down to specific ranges, etc.

Basically every engineer who joined the team thought it was a unforgivable blemish on the system, yet it survived a few years with no major issues, long enough for the team to build an internal backoffice and port the whole sheet structure into a proper CRUD API.

Re:What Is Wrong with TOML? by hot_gril on Wednesday September 13, 2023 @03:21PM (#37500557)
Biggest downside I've discovered by doing this is that there's no great way to diff separate versions of one sheet. Best I've done is export to CSV and use a generic text diff.