| Post Reply | RetroFed Forum Forum Index
» Programmer Humor
Page 1 of 4 Goto page 1, 2, 3, 4 Next Last » |
| Author | Message | ||
|---|---|---|---|
skepller
lemmy.world
skepller@lemmy.worldJoined: 2025-02-21 |
|
||
| 618 Original | |||
artifex
piefed.social
artifex@piefed.socialJoined: 2025-06-10 |
JSON is like the carcinization of programming |
||
| 221 | |||
|
tribut
infosec.pub
tribut@infosec.pub Joined: 2023-06-01 |
No, sir. That's an inline table, sir. That is clearly totally different, sir! |
||
| 13 | |||
Valmond
lemmy.dbzer0.com
Valmond@lemmy.dbzer0.comJoined: 2025-11-13 |
JSON is like the carcinization of programming
Chuck in comments and I'm on board. |
||
| 82 | |||
|
[object Object]
lemmy.ca
panda_abyss@lemmy.ca Joined: 2025-07-20 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t. |
||
| 98 | |||
|
[object Object]
lemmy.ca
panda_abyss@lemmy.ca Joined: 2025-07-20 |
Chuck in comments and I'm on board.
If we’re adding comments to json, can we add canonical support for trailing commas? |
||
| 96 | |||
Alavi
programming.dev
somegeek@programming.devJoined: 2023-06-25 |
I think edn is almost the only more advanced and ergonomic option to json. Edn is like the evolved json, but its interesting that its roots are way older than JSON. The fact that you can very efficiently define whole applications and software just with edn (and the lisp syntax in general) is what makes really amazing. I think this blog post sheds more light on how we only need lisp for defining data and applications. |
||
| 8 | |||
Valmond
lemmy.dbzer0.com
Valmond@lemmy.dbzer0.comJoined: 2025-11-13 |
If we’re adding comments to json, can we add canonical support for trailing commas?
Found the python guy! |
||
| 31 | |||
|
[object Object]
lemmy.ca
panda_abyss@lemmy.ca Joined: 2025-07-20 |
Found the python guy!
Oh, a trailing comma? That’s a tuple.
|
||
| 44 | |||
🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮
pawb.social
Kolanaki@pawb.socialJoined: 2024-10-06 |
Is there any real reason why most progranming languages look more like the 3rd panel and not like the 1st panel? There's gotta be a reason for all the nesting and indents that has nothing to do with readability since that shit makes it harder to read. |
||
| 7 | |||
dohpaz42
lemmy.world
dohpaz42@lemmy.worldJoined: 2023-07-01 |
JSON is like the carcinization of programming
That’s not JSON. Note the use of equal signs for the property names. That’s something else. |
||
| 4 | |||
Valmond
lemmy.dbzer0.com
Valmond@lemmy.dbzer0.comJoined: 2025-11-13 |
Yeah when the call_func((a,)) is the way to go it is a newbie pain for sure. Remember banging my head on that one. |
||
| 12 | |||
|
ProfessorScience
lemmy.world
ProfessorScience@lemmy.world Joined: 2023-06-12 |
Is there any real reason why most progranming languages look more like the 3rd panel and not like the 1st panel? There's gotta be a reason for all the nesting and indents that has nothing to do with readability since that shit makes it harder to read.
I would guess that it has to do with making it easier to parse. The indents won't matter very much, but the parser sees "physical = " and knows that a property named physical is being defined. What is the value of that property? Well, there's a "{", so the value is an object. And the value of that object is everything up until the matching "}". If you have a structure more like panel 1, then it's harder for the parser to know when the value of orange.physical is complete. There might be a [orange.physical.texture] section somewhere, for example. |
||
| 16 | |||
AnyOldName3
lemmy.world
AnyOldName3@lemmy.worldJoined: 2023-06-12 |
TOML's design is based on the idea that INI was a good format. This was always going to cause problems, as INI was never good, and never a format. In reality, it was hundreds of different formats people decided to use the same file extension for, all with their own incompatible quirks and rarely any ability to identify which variant you were using and therefore which quirks would need to be worked around. The changes in the third panel were inevitable, as people have data with nested structure that they're going to want to represent, and without significant whitespace, TOML was always going to need some kind of character to delimit nesting. |
||
| 46 | |||
|
[object Object]
lemmy.ca
panda_abyss@lemmy.ca Joined: 2025-07-20 |
Yeah when the call_func((a,)) is the way to go it is a newbie pain for sure. Remember banging my head on that one.
I’ve spent hours on that, and debugging missing commas between string literals. Even on separate lines you’re not safe from implicit concatenation. |
||
| 7 | |||
|
FishFace
piefed.social
FishFace@piefed.social Joined: 2025-10-16 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t.
|
||
| 9 | |||
|
Brokkr
lemmy.world
Brokkr@lemmy.world Joined: 2023-07-17 |
Is there any real reason why most progranming languages look more like the 3rd panel and not like the 1st panel? There's gotta be a reason for all the nesting and indents that has nothing to do with readability since that shit makes it harder to read.
Because the 3rd panel looks better when you have dozens of physical properties to track. It also makes retrieval easier because you can get all the physical properties at once, instead of having to read every line. For an example that small it doesn't matter, but for something larger it could become a performance benefit. |
||
| 26 | |||
|
ulterno
programming.dev
ulterno@programming.dev Joined: 2024-11-12 |
That’s not JSON. Note the use of equal signs for the property names. That’s something else.
Equals schmequals.
Now, if it took multiple separators, each giving some specific different meaning, then it would be a something else. |
||
| 23 | |||
|
floquant
lemmy.dbzer0.com
floquant@lemmy.dbzer0.com Joined: 2024-05-31 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t.
YAML is redeemed by one thing only: All JSON is valid YAML. |
||
| 60 | |||
|
arcine
jlai.lu
arcine@jlai.lu Joined: 2026-02-15 |
[deleted]
|
||
| 37 | |||
massive_bereavement
fedia.io
massive_bereavement@fedia.ioJoined: 2024-06-14 |
[deleted]
Sounds like Nix is a pathway to many abilities I consider to be unnatural. |
||
| 45 | |||
|
ulterno
programming.dev
ulterno@programming.dev Joined: 2024-11-12 |
Is there any real reason why most progranming languages look more like the 3rd panel and not like the 1st panel? There's gotta be a reason for all the nesting and indents that has nothing to do with readability since that shit makes it harder to read.
A good way to feel that for yourself is by programming a little program in Assembly and C. Make sure the program needs to loop a bit and perhaps also require some In C, you would do something like:
In assembly, you would go (writing pseudo, because I have forgotten most assembly stuff):
I also realised that you could just try using C with In conclusion, it is easier to understand something like BASIC, if you haven't been introduced to other languages, but these
|
||
| 6 | |||
|
404
lemmy.zip
404@lemmy.zip Joined: 2023-07-23 |
Is there any real reason why most progranming languages look more like the 3rd panel and not like the 1st panel? There's gotta be a reason for all the nesting and indents that has nothing to do with readability since that shit makes it harder to read.
For programming languages that make use of Take for instance this:
compared to this:
The intent of the first one is unclear. In the second one it's clear you should loop
Languages that use indentation and line breaks for scope look more similar to this:
|
||
| 8 | |||
|
unmagical
lemmy.ml
unmagical@lemmy.ml Joined: 2023-10-30 |
That’s not JSON. Note the use of equal signs for the property names. That’s something else.
Carcinisation is the phenomenon of non crabs to evolve crab like characteristics. It is not the process of non crabs becoming true crabs. In this case the language is trending toward JSON syntax, but it doesn't have to actually be JSON for carcinisation to be an applicable analogy. |
||
| 43 | |||
|
palordrolap
fedia.io
palordrolap@fedia.io Joined: 2024-08-13 |
|
||
| 170 | |||
|
derek
infosec.pub
derek@infosec.pub Joined: 2024-06-05 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t.
I'm a fan of NestedText. It's no panacea but I'd argue it's the most well-considered and useful file format for structured data in plain text. |
||
| 3 | |||
|
Hudell
lemmy.dbzer0.com
Hudell@lemmy.dbzer0.com Joined: 2023-06-22 |
Is there any real reason why most progranming languages look more like the 3rd panel and not like the 1st panel? There's gotta be a reason for all the nesting and indents that has nothing to do with readability since that shit makes it harder to read.
It makes it harder to read the individual lines, but makes it easier to read them as a group, so you won't have to read as many lines on your day to day. |
||
| 13 | |||
|
marcos
lemmy.world
marcos@lemmy.world Joined: 2023-06-16 |
JSON is like the carcinization of programming
Well... It's name-value pairs, with groups denoted by balanced brackets. It's close to as good as you can get for one kind of data serialization. What is impressive is how many problems people manage to fit in something so small. |
||
| 41 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
TOML's design is based on the idea that INI was a good format. This was always going to cause problems, as INI was never good, and never a format. In reality, it was hundreds of different formats people decided to use the same file extension for, all with their own incompatible quirks and rarely any ability to identify which variant you were using and therefore which quirks would need to be wor...
Well, Wikipedia does say:
|
||
| 27 | |||
|
suicidaleggroll
lemmy.world
suicidaleggroll@lemmy.world Joined: 2025-06-04 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t.
I want to like yaml, I really do, but why are there so many different ways of specifying the same thing? |
||
| 28 | |||
|
kibiz0r
midwest.social
kibiz0r@midwest.social Joined: 2023-07-14 |
I'm a fan of NestedText. It's no panacea but I'd argue it's the most well-considered and useful file format for structured data in plain text.
There just needs to be one universal standard that handles everyone’s use cases |
||
| 5 | |||
|
kibiz0r
midwest.social
kibiz0r@midwest.social Joined: 2023-07-14 |
[deleted]
Lazily-evaluated, too! |
||
| 4 | |||
qevlarr
lemmy.world
qevlarr@lemmy.worldJoined: 2023-06-18 |
Time to read this if you haven't already https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell |
||
| 87 | |||
Anafabula
discuss.tchncs.de
Anafabula@discuss.tchncs.deJoined: 2023-06-10 |
Chuck in comments and I'm on board.
Just make JSON5 the new official version and I would be ok |
||
| 29 | |||
KindaABigDyl
programming.dev
KindaABigDyl@programming.devJoined: 2023-06-14 |
[deleted]
You have inspired me. I will make JSON with meta-programming I will call it DyJSON, i.e. "Dynamic JSON" but pronounced "Die, Jason!" It is JSON with meta-programming and the ability to call C functions from libraries Example:
As you can see, it is also a LISP to some degree Is there a need for this? A purpose? No. But some things simply should exist Thank you for helping bring this language into existence |
||
| 23 | |||
|
[object Object]
lemmy.world
SlurpingPus@lemmy.world Joined: 2025-11-03 |
JSON is like the carcinization of programming
What's it called when people try to reinvent Lisp for the hundredth time? |
||
| 35 | |||
KindaABigDyl
programming.dev
KindaABigDyl@programming.devJoined: 2023-06-14 |
It’s basically just JSON that can generate itself ! You have inspired me. I will make JSON with meta-programming I will call it DyJSON, i.e. "Dynamic JSON" but pronounced "Die, Jason!" It is JSON with meta-programming and the ability to call C functions from libraries Example: # This is a line comment # Put your function definitions up here (concat str_a str_b: "concat" "my-lib.so") # Import a ...
Here is the grammar:
|
||
| 9 | |||
owsei
programming.dev
owsei@programming.devJoined: 2023-09-16 |
What's it called when people try to reinvent Lisp for the hundredth time?
carthinazation |
||
| 57 | |||
jcorvera
quokk.au
jcorvera@quokk.auJoined: 2026-02-01 |
Equals schmequals. It could be a ⇨ and it would be the same as JSON because it is still a single symbol used as a separator. a distinction without a difference Now, if it took multiple separators, each giving some specific different meaning, then it would be a something else.
Nah, that's a Ruby Hash... |
||
| 3 | |||
|
Bassman1805
lemmy.world
Bassman1805@lemmy.world Joined: 2023-07-01 |
Sounds like Nix is a pathway to many abilities I consider to be unnatural.
Yeah, it really is. A plaintext document that generates an entire OS? |
||
| 17 | |||
Flamekebab
piefed.social
Flamekebab@piefed.socialJoined: 2024-07-25 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t.
As someone who works with YAML regularly: Fuck YAML. |
||
| 38 | |||
|
ulterno
programming.dev
ulterno@programming.dev Joined: 2024-11-12 |
It could be a ⇨ and it would be the same as JSON because it is still a single symbol used as a separator. Nah, that's a Ruby Hash...
schmooby schmash |
||
| 5 | |||
|
AMoistGrandpa
lemmy.ca
AMoistGrandpa@lemmy.ca Joined: 2025-06-05 |
It’s basically just JSON that can generate itself ! You have inspired me. I will make JSON with meta-programming I will call it DyJSON, i.e. "Dynamic JSON" but pronounced "Die, Jason!" It is JSON with meta-programming and the ability to call C functions from libraries Example: # This is a line comment # Put your function definitions up here (concat str_a str_b: "concat" "my-lib.so") # Import a ...
I think you've just invented Jsonnet, but with C integration. |
||
| 17 | |||
|
PumaStoleMyBluff
lemmy.world
PumaStoleMyBluff@lemmy.world Joined: 2023-08-04 |
It could be a ⇨ and it would be the same as JSON because it is still a single symbol used as a separator. Nah, that's a Ruby Hash...
Excuse me, it's a Ruby Hash Rocket. |
||
| 2 | |||
|
0ops
piefed.zip
0ops@piefed.zip Joined: 2025-07-07 |
schmooby schmash
|
||
| 8 | |||
|
tfw_no_toiletpaper
lemmy.world
tfw_no_toiletpaper@lemmy.world Joined: 2024-04-09 |
Time to read this if you haven't already https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell
As if I didn't hate the format enough before |
||
| 17 | |||
|
ramble81
lemmy.zip
ramble81@lemmy.zip Joined: 2025-06-08 |
If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing. But yaml is a mess, and you’d think you could parse it easily, but you can’t.
I have a fundamental disdain for formats with restrictive white space definitions (I’m looking too at you Python) |
||
| 18 | |||
|
[object Object]
lemmy.ca
panda_abyss@lemmy.ca Joined: 2025-07-20 |
I have a fundamental disdain for formats with restrictive white space definitions (I’m looking too at you Python)
I’ve never had this issue with Python, but makefile has given me plenty of whitespace issues. |
||
| 17 | |||
|
ramble81
lemmy.zip
ramble81@lemmy.zip Joined: 2025-06-08 |
I’ve never had this issue with Python, but makefile has given me plenty of whitespace issues.
Should have added if it cares about tabs vs spaces. |
||
| 6 | |||
TheOneCurly
feddit.online
TheOneCurly@feddit.onlineJoined: 2024-10-03 |
[deleted]
I had the same thought. At panel 3 it's just oh that's nix with commas. |
||
| 4 | |||
|
Damage
feddit.it
Damage@feddit.it Joined: 2023-06-12 |
As someone who works with YAML regularly: Fuck YAML.
As someone who runs Home Assistant: |
||
| 23 | |||
| Post Reply |
Page 1 of 4
Goto page
1, 2, 3, 4
Next
Last »
Back to top |