zigg is a user on cybre.space. You can follow them or interact with them if you have an account anywhere in the fediverse.

I love Python to pieces...

... but ...

I desperately hate when a string gets interpreted as a list and suddenly I'm tracing down a bunch of single-character nonsense.

['f', 'u', 'c', 'k', ' ', 't', 'h', 'a', 't', ' ', 's', 'h', 'i', 't']

#python

@craigmaloney We've got to go deeper

[['f'], ['u'], ['c'], ['k'], [' '], ['t'], ['h'], ['a'], ['t'], [' '], ['s'], ['h'], ['i'], ['t']]

zigg @zigg

@balrogboogie @craigmaloney There's also the JSON API version

{"string": [{"character": "f"}, {"character": "u"}, {"character": "c"}, {"character": "k"}, {"character": " "}, {"character": "t"}, {"character": "h"}, {"character": "a"}, {"character": "t"}, {"character": " "}, {"character": "s"}, {"character": "h"}, {"character": "i"}, {"character": "t"}]}

· Web · 3 · 9

@balrogboogie @craigmaloney The effort-to-funny ratio for XML is too high 😄

@zigg @balrogboogie @craigmaloney

<?xml version="1.0" encoding="UTF-8" ?>
<root>
<string>
<character>f</character>
</string>
<string>
<character>u</character>
</string>
<string>
<character>c</character>
</string>
<string>
<character>k</character>
</string>
...
</root>

@balrogboogie @zigg @craigmaloney nah, I mean EDI. It's an older standard for document exchange, and is generally a pain to work with.