Post 9mDQW6CMYaLEkDJoqe by slaveriq@chaos.social
(DIR) More posts by slaveriq@chaos.social
(DIR) Post #9mCidV6pwQ0232S9Uu by fribbledom@mastodon.social
2019-08-24T07:30:00Z
1 likes, 2 repeats
Structured data? Sure, but I prefer this format:
(DIR) Post #9mCigaf9kXwO8myl0a by tn5421@niu.moe
2019-08-24T07:30:35Z
0 likes, 0 repeats
@fribbledom which one of you assholes actually unironically voted csv
(DIR) Post #9mCiiMHuAOha8Wwk2S by a7@skippers-bin.com
2019-08-24T07:30:56.350Z
0 likes, 0 repeats
@fribbledom@mastodon.social ini isnt on your poll
(DIR) Post #9mCiksmSKXpfUSRLJg by mjog@octodon.social
2019-08-24T07:31:16Z
0 likes, 0 repeats
@fribbledom Four options, all terrible. I'm abstaining.
(DIR) Post #9mCimXt4yvKbGpKaRM by feonixrift@hackers.town
2019-08-24T07:31:38Z
0 likes, 0 repeats
@fribbledom it depends on the structure?
(DIR) Post #9mCimrYBsIVQFpiBeq by fribbledom@mastodon.social
2019-08-24T07:31:43Z
0 likes, 0 repeats
@mjogThat list would be rather infinite π
(DIR) Post #9mCiqOjmwUuQ3Dp2dk by tn5421@niu.moe
2019-08-24T07:32:20Z
0 likes, 0 repeats
@fribbledom >no yaml
(DIR) Post #9mCisVxT4Egn1aEJeK by bb010g@weirder.earth
2019-08-24T07:32:32Z
0 likes, 0 repeats
@fribbledom TOML is less of a program-to-program interchange format, and more of a human-oriented thingtranslate to it when appropriate, and deal purely with it for configs maybe, but it's not something I'd consider normalized enough for that sort of poll
(DIR) Post #9mCisudpIOpfZuEU0O by brunopostle@mastodon.xyz
2019-08-24T07:32:45Z
0 likes, 0 repeats
@fribbledom YAML?
(DIR) Post #9mCizlz7sXOil2Szi4 by absturztaube@fedi.absturztau.be
2019-08-24T07:34:03.216609Z
1 likes, 1 repeats
@fribbledom all formats that our gov didn't supply on their first "opengov"/"opendata" platform
(DIR) Post #9mCj0qdU4WtdTJr9mK by fribbledom@mastodon.social
2019-08-24T07:34:14Z
0 likes, 0 repeats
@bb010gFair point, even though it applies to most of three of these options to a certain degree. You can figure the odd one out π
(DIR) Post #9mCj6DWaOqF1uMBql6 by mjog@octodon.social
2019-08-24T07:35:11Z
0 likes, 0 repeats
@fribbledom True. It depends on if humans are in the loop or not though. If not, it doesn't matter which format and so you might well go binary. If so, the humanist approach would be to use a DSL.
(DIR) Post #9mCjA8DW4iNEba8YGu by bb010g@weirder.earth
2019-08-24T07:35:53Z
0 likes, 0 repeats
@fribbledom *you wish* people didn't pipe CSV and XML around like there was no tomorrow
(DIR) Post #9mCjEsSE6kpXALHS1A by cringe@social.tchncs.de
2019-08-24T07:36:45Z
0 likes, 0 repeats
@tn5421 @fribbledom ppl are the worst! I bet it was the same ppl who unironically say things like "let's generate a csv, that's the easiest" and then go ahead and write a bunch of strings with , to a file...
(DIR) Post #9mCjHXHdHFOcNGaoue by storchp@chaos.social
2019-08-24T07:37:13Z
0 likes, 0 repeats
@fribbledomIt depends π
(DIR) Post #9mCjHy5VcQk1VU81GS by tn5421@niu.moe
2019-08-24T07:37:15Z
0 likes, 0 repeats
@cringe @fribbledom That did used to be the easiest way......back in like 2006.
(DIR) Post #9mCjIPnka3AnSW2ETI by 00dani@vulpine.club
2019-08-24T07:37:24Z
0 likes, 0 repeats
@fribbledom where's yaml tho :ohno:β
(DIR) Post #9mCjIdAurEQaw7yPsu by Wolf480pl@niu.moe
2019-08-24T07:37:27Z
0 likes, 0 repeats
@tn5421 @fribbledom I voted CSV, but only because DSV wasn't on the list. awk for the win!
(DIR) Post #9mCjPdqOlhU92SifnU by snaums@toot.kif.rocks
2019-08-24T07:38:41Z
0 likes, 0 repeats
@fribbledom at least you can verify XML against its definition.
(DIR) Post #9mCjPzwWbbSRZpksOu by Creideiki@mastodon.social
2019-08-24T07:38:45Z
0 likes, 0 repeats
@fribbledom In theory, S-expressions. In reality (since nothing actually uses S-expressions), YAML.
(DIR) Post #9mCjRZBn2wIvBGdwA4 by Wolf480pl@niu.moe
2019-08-24T07:39:02Z
0 likes, 0 repeats
@tn5421 @fribbledom I think this question could use some more context.For example, I would use YAML for config files, but I wouldn't use YAML for an output of one tool that I want to pipe to another tool.
(DIR) Post #9mCjab8HBsEfoXJ2Qq by tn5421@niu.moe
2019-08-24T07:40:40Z
0 likes, 0 repeats
@Wolf480pl @fribbledom i know im not very experienced but if i needed to pipe something to another tool wouldn't json be the best choice, unless it's something really old?
(DIR) Post #9mCjm7TDIfEJIEaqC8 by Wolf480pl@niu.moe
2019-08-24T07:42:44Z
0 likes, 0 repeats
@tn5421 @fribbledom If it's nested - yeah, JSON.But if it isn't, IMO Delimiter-Separated Values are good enough.
(DIR) Post #9mCkBKNESi9WYIodN2 by marix@chaos.social
2019-08-24T07:47:15Z
0 likes, 0 repeats
@fribbledom those are all for very different use cases. And I'd use either of them for different reasons. However, I'd rather use DSV with ANSI control characters than CSV and I'd avoid using XML if any of the other cuts it.
(DIR) Post #9mCkY9ZCo9UxhCIfz6 by tyil@soc.fglt.nl
2019-08-24T07:51:28.161829Z
0 likes, 0 repeats
@fribbledom JSON if the machine makes and reads it. TOML if the human makes it, but a machine reads it. CSV for output of tables (for instance, from a database). I don't think XML has much of a use now that we have JSON, however, I know some places still prefer XML because of XSD validation.
(DIR) Post #9mCkZAcwLqv3H1X33I by Jame@radical.town
2019-08-24T07:51:36Z
0 likes, 0 repeats
@fribbledom csv for dynamic files of structured data (any tail -f or pipe/stream situation where the information stream is constant) or for large quantities of homogeneously-structured data.xml for data most akin to trees with properties on the leaves/nodes (cop out, I know, but xml is better imo for stuff like tree-ing directories or potentially for creating representations of git directories). but xml to me should be static state-records (ie. saved and then reloaded later) & not a representation of dynamic state.idk TOML but I like JSON in the AJAJ/AJAX world because it's great for creating human-parsable structured data representations in the native object structure of JS, and for a lot of more dynamic piece-wise situations with non-homogenous data points (Which apis tend to encompass).My opinions though.YAML is super top tier for human readability but having had to interact with it low-level I'm much more of a fan of JSON in any situation where someone would want to use it
(DIR) Post #9mCkkGmzmTlBZRWnFA by thibaultamartin@mamot.fr
2019-08-24T07:53:37Z
0 likes, 0 repeats
@fribbledom You assume the output is necessarily text :)PowerShell allows piping and manipulating kind of objects, which are printed as text (or tables) when output to stdout. I enjoyed playing around with it!
(DIR) Post #9mClHhFgPjqzCQsxcm by merelysounds@mastodon.social
2019-08-24T07:59:41Z
0 likes, 0 repeats
@fribbledom no preference here, my choice would depend on context; e.g. data structure, tooling available and target end user.
(DIR) Post #9mClWr2OJVkjtPtcPY by tyil@soc.fglt.nl
2019-08-24T08:02:26.447732Z
0 likes, 0 repeats
@thibaultamartin @fribbledom That's a well known design flaw of PowerShell.
(DIR) Post #9mClyjZRfWwMqKePq4 by phryk@mastodon.social
2019-08-24T08:07:27Z
0 likes, 0 repeats
@fribbledom I prefer plain ASCII: https://ronaldduncan.wordpress.com/2009/10/31/text-file-formats-ascii-delimited-text-not-csv-or-tab-delimited-text/
(DIR) Post #9mCmvUpM7zH4Cd73ui by mehdorn@fem.social
2019-08-24T08:17:31Z
0 likes, 0 repeats
@fribbledom Depends on the complexity of the structured data. For simple strings and arrays CSV is fine, for nested arrays etc. I prefer JSON.
(DIR) Post #9mCmy6JNjVxJ2NOoZE by squaregoldfish@mastodon.social
2019-08-24T08:18:32Z
0 likes, 0 repeats
@fribbledom Depends what your data is. Most of my data is tabulated numeric, so csv is just fine.
(DIR) Post #9mCq00u373Vohk9b96 by stuart_otterson@meow.social
2019-08-24T08:52:28Z
0 likes, 0 repeats
@fribbledom dunno, my exposure to CSV, JSON and XML have generally been contextual to my work. When we want to bulk edit products in WooCommerce we export as an CSV, edit in a spreadsheet and import merge back and that is actually a time saver.
(DIR) Post #9mCrUwLCDzJRUEA7mq by gaab@mastodon.technology
2019-08-24T09:09:17Z
0 likes, 0 repeats
@fribbledom From these, maybe YAML ;-)
(DIR) Post #9mCsnkDzb2P9MhK77Y by manuelcaeiro@mastodon.social
2019-08-24T09:23:54Z
0 likes, 0 repeats
@fribbledom - CSV format is the most compact format;- CSV format is about half the size of the JSON and other format files;- Its filename extension is .csv and its internet media type is text/CSV;- It is a common data exchange format that is mainly supported by business and scientific applications.- Does not require a specific character encoding, byte order.- SQLite can import csv but not JSON;- CSV files are MUCH easier to search and inspect using simple code scripts;...QED
(DIR) Post #9mCsv4cUANkue8H5KS by fribbledom@mastodon.social
2019-08-24T09:25:14Z
0 likes, 0 repeats
@manuelcaeiro... not everything's a table.
(DIR) Post #9mCt2HWEbdM4gBmu92 by manuelcaeiro@mastodon.social
2019-08-24T09:26:32Z
0 likes, 0 repeats
@fribbledom TG...
(DIR) Post #9mCwF3N8oWmoQoJeyG by weldon@social.librem.one
2019-08-24T10:02:26Z
0 likes, 0 repeats
@fribbledom s-expressions
(DIR) Post #9mCwXcWqqDSQgEiAPA by bVork@niu.moe
2019-08-24T10:05:45Z
0 likes, 0 repeats
@fribbledom CSV because it's human-readable unlike everything else.
(DIR) Post #9mD0HSBvuJVJnpTQPY by cjd@mastodon.social
2019-08-24T10:47:43Z
0 likes, 0 repeats
@fribbledom ndjson (newline-delineated json) is awesome for machine parsable logs.
(DIR) Post #9mD3sv4Xn8zZx5Zewy by masterofthetiger@theres.life
2019-08-24T11:28:03Z
0 likes, 0 repeats
@fribbledom I've used JSON and CSV in some of my projects. It depends on the data I'm storing. Mostly JSON though.
(DIR) Post #9mD782LhJqZij6UvJo by nightpool@cybre.space
2019-08-24T12:04:24Z
0 likes, 0 repeats
@fribbledom yamlllllll
(DIR) Post #9mD7vvigEzlWe42S3c by grainloom@cybre.space
2019-08-24T12:13:26Z
0 likes, 0 repeats
@Wolf480pl @tn5421 @fribbledom same for "linear tsv"it's super nice to use with unix tools
(DIR) Post #9mDDPPLNg3Tugx12w4 by lexi@anticapitalist.party
2019-08-24T13:14:46Z
0 likes, 0 repeats
@fribbledom uhm. Protocol buffers, anyone�
(DIR) Post #9mDQW6CMYaLEkDJoqe by slaveriq@chaos.social
2019-08-24T15:41:39Z
0 likes, 0 repeats
@fribbledom that depends heavily on what it's used for.
(DIR) Post #9mDRP4APoLl2N4cNxg by grin@mastodon.grin.hu
2019-08-24T15:51:31Z
0 likes, 0 repeats
@fribbledom but toml yes but no yaml? and no binary formats? ;-)
(DIR) Post #9mDRQFkQEuw2Zt1fii by fribbledom@mastodon.social
2019-08-24T15:51:50Z
0 likes, 0 repeats
@grin I was only granted four options ;-(
(DIR) Post #9mDRTef44H1QiN8sAC by grin@mastodon.grin.hu
2019-08-24T15:52:26Z
0 likes, 0 repeats
@fribbledom down with activitypub! evil stuffff! π
(DIR) Post #9mDaOygJ6c2awfZGy0 by jwkicklighter@mastodon.technology
2019-08-24T17:32:24Z
0 likes, 0 repeats
@fribbledom this was such a hard pick because though I use one often (and so I would probably reach for it out of habit) I prefer another. Also good idea including XML as a Honeypot π
(DIR) Post #9mDlGBCMIVfUehZDc0 by syme@masto.nixnet.xyz
2019-08-24T19:34:06Z
0 likes, 0 repeats
@tn5421 @fribbledom I love you too
(DIR) Post #9mDmQZyl7P4iMSjF8y by lwriemen@social.librem.one
2019-08-24T19:47:10Z
0 likes, 0 repeats
@fribbledom UML
(DIR) Post #9mDtyiWIZLSMNLdqxk by lwriemen@social.librem.one
2019-08-24T21:11:47Z
0 likes, 0 repeats
@fribbledom UML...actually thinking about the term, "structured data", closer, relational database is a better answer.
(DIR) Post #9mEEqECNW7lp3Z7MBc by morix@loci.onl
2019-08-25T01:05:28Z
0 likes, 0 repeats
@fribbledom surely the answer is - whatever I have a library to cleanly write and parse from and to data structures?
(DIR) Post #9mEPYIKmVAAqALhQOG by tn5421@niu.moe
2019-08-25T03:05:37Z
0 likes, 0 repeats
@syme @fribbledom ara ara
(DIR) Post #9mEwXhVAjyjuQ4ssQC by Mr_Teatime@social.tchncs.de
2019-08-25T09:15:14Z
0 likes, 0 repeats
@tn5421 @fribbledom too late to vote, but I do use CSV. Mostly because most of the data I produce is fairly simple and fits in the table format nicely. Dead easy to produce or load, including in a spreadsheet.Everything that's more complicated than that, I either pickle (or dill), or store the inputs and the script which produced the outputs ...There's also HDF5, but that's often more complicated to use than I need it to be.
(DIR) Post #9mFDTRXJr8EMxyRagy by juliank@mastodon.social
2019-08-25T12:24:58Z
0 likes, 0 repeats
@fribbledom I'd like a JSON with clear semantics and comment support
(DIR) Post #9mIRwfaye5K1neri9g by Mr_Teatime@social.tchncs.de
2019-08-27T01:51:13Z
0 likes, 0 repeats
@fribbledom @manuelcaeiro If what you want to save is not a table, a file format for tables (like CSV) does indeed sound like a rather bad choice ... in my line of work, that would be a case for HDF5 -- but then you'll need a suitable viewer/editor, as it's no fun to read in a text editor.