▲ 608 ▼ Javascript can create atomic bombs (programming.dev) submitted 3 years ago by TechCodecPawx@programming.dev to c/programmerhumor@lemmy.ml 64 comments fedilink hide all child comments
[–] judgeholden@hexbear.net 30 points 3 years ago (3 children) JS bad, please clap permalink fedilink source parent hideshow 6 child comments replies: [–] scottmeme@sh.itjust.works 10 points 3 years ago (1 child) 👏 permalink fedilink source parent hideshow 2 child comments replies: [–] starman@programming.dev 8 points 3 years ago (1 child) 👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] HumanPerson@sh.itjust.works 6 points 3 years ago (1 child) 👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] lemann@lemmy.one 7 points 3 years ago (1 child) 👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] vicfic@iusearchlinux.fyi 2 points 3 years ago (1 child) 👏👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent [–] Durotar@lemmy.ml 7 points 3 years ago The real question is since when CSS is good? permalink fedilink source parent [–] SnowdenHeroOfOurTime@unilem.org 0 points 3 years ago (1 child) ITs NoT StRoNgLy TyPeD aNd Is ThErEfOrE gArBaGe permalink fedilink source parent hideshow 2 child comments replies: [–] starman@programming.dev 0 points 3 years ago (2 children) Give me one advantage of language that isn't strongly typed permalink fedilink source parent hideshow 4 child comments replies: [–] SnowdenHeroOfOurTime@unilem.org 2 points 3 years ago It's not a debate I care to have, I just think it's funny that people want to build websites but hate how websites are built. permalink fedilink source parent [–] kogasa@programming.dev 2 points 3 years ago* Fluent polymorphism via duck typing. It's useful when you're treating objects as a collection of properties, and therefore it's not their type that matters but which properties they have. Types can still be used to label common collections of properties but it's less painful to talk about objects that are "like an X but with/without certain properties," or where some properties themselves have a different shape, etc. This is applicable to web APIs, not just because of JSON, but because it allows to define both very rigid and very flexible schemas without much overhead or repetition. See the OpenAPI specification. permalink fedilink source parent
[–] scottmeme@sh.itjust.works 10 points 3 years ago (1 child) 👏 permalink fedilink source parent hideshow 2 child comments replies: [–] starman@programming.dev 8 points 3 years ago (1 child) 👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] HumanPerson@sh.itjust.works 6 points 3 years ago (1 child) 👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] lemann@lemmy.one 7 points 3 years ago (1 child) 👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] vicfic@iusearchlinux.fyi 2 points 3 years ago (1 child) 👏👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent
[–] starman@programming.dev 8 points 3 years ago (1 child) 👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] HumanPerson@sh.itjust.works 6 points 3 years ago (1 child) 👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] lemann@lemmy.one 7 points 3 years ago (1 child) 👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] vicfic@iusearchlinux.fyi 2 points 3 years ago (1 child) 👏👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent
[–] HumanPerson@sh.itjust.works 6 points 3 years ago (1 child) 👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] lemann@lemmy.one 7 points 3 years ago (1 child) 👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] vicfic@iusearchlinux.fyi 2 points 3 years ago (1 child) 👏👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent
[–] lemann@lemmy.one 7 points 3 years ago (1 child) 👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] vicfic@iusearchlinux.fyi 2 points 3 years ago (1 child) 👏👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent
[–] vicfic@iusearchlinux.fyi 2 points 3 years ago (1 child) 👏👏👏👏👏 permalink fedilink source parent hideshow 2 child comments replies: [–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent
[–] KIM_JONG_JUICEBOX@lemmy.ml 0 points 3 years ago Little diddy bout Jack and Diane permalink fedilink source parent
[–] Durotar@lemmy.ml 7 points 3 years ago The real question is since when CSS is good? permalink fedilink source parent
[–] SnowdenHeroOfOurTime@unilem.org 0 points 3 years ago (1 child) ITs NoT StRoNgLy TyPeD aNd Is ThErEfOrE gArBaGe permalink fedilink source parent hideshow 2 child comments replies: [–] starman@programming.dev 0 points 3 years ago (2 children) Give me one advantage of language that isn't strongly typed permalink fedilink source parent hideshow 4 child comments replies: [–] SnowdenHeroOfOurTime@unilem.org 2 points 3 years ago It's not a debate I care to have, I just think it's funny that people want to build websites but hate how websites are built. permalink fedilink source parent [–] kogasa@programming.dev 2 points 3 years ago* Fluent polymorphism via duck typing. It's useful when you're treating objects as a collection of properties, and therefore it's not their type that matters but which properties they have. Types can still be used to label common collections of properties but it's less painful to talk about objects that are "like an X but with/without certain properties," or where some properties themselves have a different shape, etc. This is applicable to web APIs, not just because of JSON, but because it allows to define both very rigid and very flexible schemas without much overhead or repetition. See the OpenAPI specification. permalink fedilink source parent
[–] starman@programming.dev 0 points 3 years ago (2 children) Give me one advantage of language that isn't strongly typed permalink fedilink source parent hideshow 4 child comments replies: [–] SnowdenHeroOfOurTime@unilem.org 2 points 3 years ago It's not a debate I care to have, I just think it's funny that people want to build websites but hate how websites are built. permalink fedilink source parent [–] kogasa@programming.dev 2 points 3 years ago* Fluent polymorphism via duck typing. It's useful when you're treating objects as a collection of properties, and therefore it's not their type that matters but which properties they have. Types can still be used to label common collections of properties but it's less painful to talk about objects that are "like an X but with/without certain properties," or where some properties themselves have a different shape, etc. This is applicable to web APIs, not just because of JSON, but because it allows to define both very rigid and very flexible schemas without much overhead or repetition. See the OpenAPI specification. permalink fedilink source parent
[–] SnowdenHeroOfOurTime@unilem.org 2 points 3 years ago It's not a debate I care to have, I just think it's funny that people want to build websites but hate how websites are built. permalink fedilink source parent
[–] kogasa@programming.dev 2 points 3 years ago* Fluent polymorphism via duck typing. It's useful when you're treating objects as a collection of properties, and therefore it's not their type that matters but which properties they have. Types can still be used to label common collections of properties but it's less painful to talk about objects that are "like an X but with/without certain properties," or where some properties themselves have a different shape, etc. This is applicable to web APIs, not just because of JSON, but because it allows to define both very rigid and very flexible schemas without much overhead or repetition. See the OpenAPI specification. permalink fedilink source parent