▲ 516 ▼ You can pry pattern matching from my cold dead hands (sopuli.xyz) submitted 8 months ago by flamingo_pinyata@sopuli.xyz to c/programmer_humor@programming.dev 222 comments fedilink hide all child comments
[–] bleistift2@sopuli.xyz 22 points 8 months ago (2 children) You can use spaces in Python. permalink fedilink source parent hideshow 4 child comments replies: [–] marduk@lemmy.sdf.org 23 points 8 months ago (7 children) Two, three or four spaces? If you answer wrong I'll never forgive you permalink fedilink source parent hideshow 14 child comments replies: [+] pennomi@lemmy.world 22 points 8 months ago* (last edited 1 month ago) [deleted] permalink fedilink source parent [–] TeamAssimilation@infosec.pub 16 points 8 months ago Whatever your place defines as a standard. I’ve seen ugly code in C, JavaScript, Java, etc., that uses them all over the place because they’re not mandatory. If you don’t have consistent indenting, your code looks like copy/paste from several sources; but if you do have consistent indenting, then the indenting of Python is a non-issue. permalink fedilink source parent [–] qjkxbmwvz@startrek.website 7 points 8 months ago (1 child) Per the Linux kernel coding style: Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 8 points 8 months ago First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture. permalink fedilink source parent [–] fartsparkles@lemmy.world 6 points 8 months ago I’m rather partial to five myself but only when I’m feeling fancy. permalink fedilink source parent [–] SpaceNoodle@lemmy.world 5 points 8 months ago Yes permalink fedilink source parent [–] a_non_monotonic_function@lemmy.world 3 points 8 months ago No one will ever know. That is my editor's job. XD permalink fedilink source parent [–] ChaosMonkey@lemmy.dbzer0.com 2 points 8 months ago Depends on the mood. permalink fedilink source parent [–] firelizzard@programming.dev 12 points 8 months ago (2 children) Indentation-driven control flow is one of the most cursed things ever invented, excluding things explicitly designed to inflict pain or death. permalink fedilink source parent hideshow 4 child comments replies: [–] CompactFlax@discuss.tchncs.de 8 points 8 months ago White space sensitive languages are evil. permalink fedilink source parent [–] KSPAtlas@sopuli.xyz 5 points 8 months ago Haskell has the choice of both indentation based and brackets for things like do blocks, but most people use indentation based cause it's the norm and looks cleaner permalink fedilink source parent
[–] marduk@lemmy.sdf.org 23 points 8 months ago (7 children) Two, three or four spaces? If you answer wrong I'll never forgive you permalink fedilink source parent hideshow 14 child comments replies: [+] pennomi@lemmy.world 22 points 8 months ago* (last edited 1 month ago) [deleted] permalink fedilink source parent [–] TeamAssimilation@infosec.pub 16 points 8 months ago Whatever your place defines as a standard. I’ve seen ugly code in C, JavaScript, Java, etc., that uses them all over the place because they’re not mandatory. If you don’t have consistent indenting, your code looks like copy/paste from several sources; but if you do have consistent indenting, then the indenting of Python is a non-issue. permalink fedilink source parent [–] qjkxbmwvz@startrek.website 7 points 8 months ago (1 child) Per the Linux kernel coding style: Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 8 points 8 months ago First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture. permalink fedilink source parent [–] fartsparkles@lemmy.world 6 points 8 months ago I’m rather partial to five myself but only when I’m feeling fancy. permalink fedilink source parent [–] SpaceNoodle@lemmy.world 5 points 8 months ago Yes permalink fedilink source parent [–] a_non_monotonic_function@lemmy.world 3 points 8 months ago No one will ever know. That is my editor's job. XD permalink fedilink source parent [–] ChaosMonkey@lemmy.dbzer0.com 2 points 8 months ago Depends on the mood. permalink fedilink source parent
[+] pennomi@lemmy.world 22 points 8 months ago* (last edited 1 month ago) [deleted] permalink fedilink source parent
[–] TeamAssimilation@infosec.pub 16 points 8 months ago Whatever your place defines as a standard. I’ve seen ugly code in C, JavaScript, Java, etc., that uses them all over the place because they’re not mandatory. If you don’t have consistent indenting, your code looks like copy/paste from several sources; but if you do have consistent indenting, then the indenting of Python is a non-issue. permalink fedilink source parent
[–] qjkxbmwvz@startrek.website 7 points 8 months ago (1 child) Per the Linux kernel coding style: Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 8 points 8 months ago First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture. permalink fedilink source parent
[–] hemko@lemmy.dbzer0.com 8 points 8 months ago First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture. permalink fedilink source parent
[–] fartsparkles@lemmy.world 6 points 8 months ago I’m rather partial to five myself but only when I’m feeling fancy. permalink fedilink source parent
[–] a_non_monotonic_function@lemmy.world 3 points 8 months ago No one will ever know. That is my editor's job. XD permalink fedilink source parent
[–] ChaosMonkey@lemmy.dbzer0.com 2 points 8 months ago Depends on the mood. permalink fedilink source parent
[–] firelizzard@programming.dev 12 points 8 months ago (2 children) Indentation-driven control flow is one of the most cursed things ever invented, excluding things explicitly designed to inflict pain or death. permalink fedilink source parent hideshow 4 child comments replies: [–] CompactFlax@discuss.tchncs.de 8 points 8 months ago White space sensitive languages are evil. permalink fedilink source parent [–] KSPAtlas@sopuli.xyz 5 points 8 months ago Haskell has the choice of both indentation based and brackets for things like do blocks, but most people use indentation based cause it's the norm and looks cleaner permalink fedilink source parent
[–] CompactFlax@discuss.tchncs.de 8 points 8 months ago White space sensitive languages are evil. permalink fedilink source parent
[–] KSPAtlas@sopuli.xyz 5 points 8 months ago Haskell has the choice of both indentation based and brackets for things like do blocks, but most people use indentation based cause it's the norm and looks cleaner permalink fedilink source parent