▲ 1320 ▼ The lengths we have to go to (sh.itjust.works) submitted 2 years ago by alphacyberranger@sh.itjust.works to c/programmer_humor@programming.dev 124 comments fedilink hide all child comments
[–] sentient_loom@sh.itjust.works 48 points 2 years ago (2 children) I'll take the curly braces permalink fedilink source parent hideshow 4 child comments replies: [–] TheGreenGolem@lemm.ee 29 points 2 years ago (1 child) Me too, any day. I hate everything where indentation matters. Let me just throw my garbage there and YOU sort it out, you are the fucking computer, not me. You do the work. So fuck you, YAML! All my homies love JSON! permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG@lemmy.world 15 points 2 years ago (3 children) All your homies hate comments. permalink fedilink source parent hideshow 6 child comments replies: [–] TheGreenGolem@lemm.ee 6 points 2 years ago My code also documents itself, of course. permalink fedilink source parent [–] nilloc@discuss.tchncs.de 3 points 2 years ago Yeah Yaml is nicer than json, but I’m not into the Python indenting at all. permalink fedilink source parent [–] JonEFive@midwest.social 2 points 2 years ago I'm here to spread the good word about JSONC. It is the way and everyone should adopt it in place of JSON wherever possible. permalink fedilink source parent [–] wols@lemm.ee 15 points 2 years ago (1 child) Yup. Spaces? Tabs? Don't care, works regardless. Copied some code from somewhere else? No problem, 9/10 times it just works. Bonus: a smart IDE will let you quick-format the entire code to whatever style you configured at the click of a button even if it was a complete mess to begin with, as long as all the curly braces are correct. Also, in any decent IDE you will very rarely need to actually count curly braces, it finds the pair for you, and even lets you easily navigate between them. The inconsistent way that whitespace is handled across applications makes interacting with code outside your own code files incredibly finicky when your language cares so much about the layout. There's an argument to be made for the simplicity of python-style indentation and for its aesthetic merits, but IMO that's outweighed by the practical inconvenience it brings. permalink fedilink source parent hideshow 2 child comments replies: [–] merc@sh.itjust.works 1 point 2 years ago But, nobody ever copies code from Stack Overflow! permalink fedilink source parent
[–] TheGreenGolem@lemm.ee 29 points 2 years ago (1 child) Me too, any day. I hate everything where indentation matters. Let me just throw my garbage there and YOU sort it out, you are the fucking computer, not me. You do the work. So fuck you, YAML! All my homies love JSON! permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG@lemmy.world 15 points 2 years ago (3 children) All your homies hate comments. permalink fedilink source parent hideshow 6 child comments replies: [–] TheGreenGolem@lemm.ee 6 points 2 years ago My code also documents itself, of course. permalink fedilink source parent [–] nilloc@discuss.tchncs.de 3 points 2 years ago Yeah Yaml is nicer than json, but I’m not into the Python indenting at all. permalink fedilink source parent [–] JonEFive@midwest.social 2 points 2 years ago I'm here to spread the good word about JSONC. It is the way and everyone should adopt it in place of JSON wherever possible. permalink fedilink source parent
[–] KIM_JONG@lemmy.world 15 points 2 years ago (3 children) All your homies hate comments. permalink fedilink source parent hideshow 6 child comments replies: [–] TheGreenGolem@lemm.ee 6 points 2 years ago My code also documents itself, of course. permalink fedilink source parent [–] nilloc@discuss.tchncs.de 3 points 2 years ago Yeah Yaml is nicer than json, but I’m not into the Python indenting at all. permalink fedilink source parent [–] JonEFive@midwest.social 2 points 2 years ago I'm here to spread the good word about JSONC. It is the way and everyone should adopt it in place of JSON wherever possible. permalink fedilink source parent
[–] TheGreenGolem@lemm.ee 6 points 2 years ago My code also documents itself, of course. permalink fedilink source parent
[–] nilloc@discuss.tchncs.de 3 points 2 years ago Yeah Yaml is nicer than json, but I’m not into the Python indenting at all. permalink fedilink source parent
[–] JonEFive@midwest.social 2 points 2 years ago I'm here to spread the good word about JSONC. It is the way and everyone should adopt it in place of JSON wherever possible. permalink fedilink source parent
[–] wols@lemm.ee 15 points 2 years ago (1 child) Yup. Spaces? Tabs? Don't care, works regardless. Copied some code from somewhere else? No problem, 9/10 times it just works. Bonus: a smart IDE will let you quick-format the entire code to whatever style you configured at the click of a button even if it was a complete mess to begin with, as long as all the curly braces are correct. Also, in any decent IDE you will very rarely need to actually count curly braces, it finds the pair for you, and even lets you easily navigate between them. The inconsistent way that whitespace is handled across applications makes interacting with code outside your own code files incredibly finicky when your language cares so much about the layout. There's an argument to be made for the simplicity of python-style indentation and for its aesthetic merits, but IMO that's outweighed by the practical inconvenience it brings. permalink fedilink source parent hideshow 2 child comments replies: [–] merc@sh.itjust.works 1 point 2 years ago But, nobody ever copies code from Stack Overflow! permalink fedilink source parent
[–] merc@sh.itjust.works 1 point 2 years ago But, nobody ever copies code from Stack Overflow! permalink fedilink source parent