▲ 397 ▼ STOP DOING DEPENDENCY INJECTION (sopuli.xyz) submitted 2 years ago by bort@sopuli.xyz to c/programmer_humor@programming.dev 74 comments fedilink hide all child comments
[–] SpaceNoodle@lemmy.world 11 points 2 years ago (4 children) It's a markup language, not a programming language. permalink fedilink source parent hideshow 8 child comments replies: [–] steventhedev@lemmy.world 44 points 2 years ago (2 children) Whoosh Seriously though, spring configurations are written in XML and you create variables, call functions, and have control flow. Effectively turning XML into a horrible twisted shadow of a programming language. All in the name of "configurability" through dependency injection. permalink fedilink source parent hideshow 4 child comments replies: [–] lars@programming.dev 10 points 2 years ago (2 children) Spring moved away from XML ages ago. I work on a 6 year old Spring project and it has never had a single line of XML in it. permalink fedilink source parent hideshow 4 child comments replies: [–] MajorHavoc@programming.dev 5 points 2 years ago (1 child) I'm fond of saying that all great code earns it's right to become good code by starting as trash... But I still think we should all quietly and politely let Spring die a simple dignified death, as soon as possible. Out of wildly morbid curiosity, do Maven and Ant still shit all over each other to make sure no one has any real idea what the build inputs and outputs are? I shouldn't ask things I don't really want to know, though. My inbox is gonna be full of Java apologists. permalink fedilink source parent hideshow 2 child comments replies: [–] lars@programming.dev 3 points 2 years ago* (1 child) No idea, I've never used either of those tools. I think some people still use Maven, but I use Gradle in all of mine. Gradle build files are written in Kotlin instead of XML like Maven. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 1 point 2 years ago No idea, I've never used either of those tools. That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad. I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven... permalink fedilink source parent [–] JustBrian7872@feddit.de 3 points 2 years ago* Thanks, my works' codebase feels old now. permalink fedilink source parent [–] AMDIsOurLord@lemmy.ml 5 points 2 years ago (1 child) So if you take XML, pervert it beyond recognition, cut off it's balls and one hand, then it's somehow it's fault that it sucks? permalink fedilink source parent hideshow 2 child comments replies: [–] steventhedev@lemmy.world 3 points 2 years ago They started from XML. There's nowhere to go but up but spring managed to fuck even that up. FactoryStrategyFactoryFactoryObserverInterface Friends don't let friends use Java 😜 permalink fedilink source parent [–] frezik@midwest.social 12 points 2 years ago (1 child) It was a markup language until someone decided to parse and execute it as a programming language. This person should be watched for other deranged behavior. permalink fedilink source parent hideshow 2 child comments replies: [–] ZILtoid1991@lemmy.world 3 points 2 years ago (1 child) I use XML as markup language, what kind of deranged person thought to turn it into a programming language? My problems with the Lua API led me down the rabbit hole of making my own VM and implementation, not looking at a markup languge, then go "what if I used this for scripting?". permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago When they make XML do these things (or the way Github Actions does it with YAML), they're essentially creating a representation of the AST that the compiler would make internally from a mini language. So there's a few possibilities: They don't know how compilers work and reach for a tool they do know They know, but figure the problem at hand doesn't need the complexity of a mini language and start the project the quick and dirty way, and it gets out of hand as they add features They may or may not know, but they do get caught up in the hype of some other tool (likely what happened with XSLT) permalink fedilink source parent [–] dohpaz42@lemmy.world 11 points 2 years ago (1 child) Tell that to SOAP. permalink fedilink source parent hideshow 2 child comments replies: [–] deadbeef79000@lemmy.nz 4 points 2 years ago Yo dawg, I heard you like XML over HTTP so I put XML over HTTP in your XML over HTTP. permalink fedilink source parent [–] towerful@programming.dev 4 points 2 years ago (1 child) Like yaml/toml permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 7 points 2 years ago (2 children) The one benefit of toml is that nobody creates a programing language over it. permalink fedilink source parent hideshow 4 child comments replies: [–] MajorHavoc@programming.dev 7 points 2 years ago (1 child) The one benefit of toml is that nobody creates a programing language over it. Heh. Any day though, right? I can't wait to see an excited presentation on code-free coding in YAML... permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago (1 child) Github Actions have entered the chat. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 3 points 2 years ago Thanks. I hate that you're right. permalink fedilink source parent [–] nxdefiant@startrek.website 4 points 2 years ago so far permalink fedilink source parent
[–] steventhedev@lemmy.world 44 points 2 years ago (2 children) Whoosh Seriously though, spring configurations are written in XML and you create variables, call functions, and have control flow. Effectively turning XML into a horrible twisted shadow of a programming language. All in the name of "configurability" through dependency injection. permalink fedilink source parent hideshow 4 child comments replies: [–] lars@programming.dev 10 points 2 years ago (2 children) Spring moved away from XML ages ago. I work on a 6 year old Spring project and it has never had a single line of XML in it. permalink fedilink source parent hideshow 4 child comments replies: [–] MajorHavoc@programming.dev 5 points 2 years ago (1 child) I'm fond of saying that all great code earns it's right to become good code by starting as trash... But I still think we should all quietly and politely let Spring die a simple dignified death, as soon as possible. Out of wildly morbid curiosity, do Maven and Ant still shit all over each other to make sure no one has any real idea what the build inputs and outputs are? I shouldn't ask things I don't really want to know, though. My inbox is gonna be full of Java apologists. permalink fedilink source parent hideshow 2 child comments replies: [–] lars@programming.dev 3 points 2 years ago* (1 child) No idea, I've never used either of those tools. I think some people still use Maven, but I use Gradle in all of mine. Gradle build files are written in Kotlin instead of XML like Maven. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 1 point 2 years ago No idea, I've never used either of those tools. That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad. I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven... permalink fedilink source parent [–] JustBrian7872@feddit.de 3 points 2 years ago* Thanks, my works' codebase feels old now. permalink fedilink source parent [–] AMDIsOurLord@lemmy.ml 5 points 2 years ago (1 child) So if you take XML, pervert it beyond recognition, cut off it's balls and one hand, then it's somehow it's fault that it sucks? permalink fedilink source parent hideshow 2 child comments replies: [–] steventhedev@lemmy.world 3 points 2 years ago They started from XML. There's nowhere to go but up but spring managed to fuck even that up. FactoryStrategyFactoryFactoryObserverInterface Friends don't let friends use Java 😜 permalink fedilink source parent
[–] lars@programming.dev 10 points 2 years ago (2 children) Spring moved away from XML ages ago. I work on a 6 year old Spring project and it has never had a single line of XML in it. permalink fedilink source parent hideshow 4 child comments replies: [–] MajorHavoc@programming.dev 5 points 2 years ago (1 child) I'm fond of saying that all great code earns it's right to become good code by starting as trash... But I still think we should all quietly and politely let Spring die a simple dignified death, as soon as possible. Out of wildly morbid curiosity, do Maven and Ant still shit all over each other to make sure no one has any real idea what the build inputs and outputs are? I shouldn't ask things I don't really want to know, though. My inbox is gonna be full of Java apologists. permalink fedilink source parent hideshow 2 child comments replies: [–] lars@programming.dev 3 points 2 years ago* (1 child) No idea, I've never used either of those tools. I think some people still use Maven, but I use Gradle in all of mine. Gradle build files are written in Kotlin instead of XML like Maven. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 1 point 2 years ago No idea, I've never used either of those tools. That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad. I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven... permalink fedilink source parent [–] JustBrian7872@feddit.de 3 points 2 years ago* Thanks, my works' codebase feels old now. permalink fedilink source parent
[–] MajorHavoc@programming.dev 5 points 2 years ago (1 child) I'm fond of saying that all great code earns it's right to become good code by starting as trash... But I still think we should all quietly and politely let Spring die a simple dignified death, as soon as possible. Out of wildly morbid curiosity, do Maven and Ant still shit all over each other to make sure no one has any real idea what the build inputs and outputs are? I shouldn't ask things I don't really want to know, though. My inbox is gonna be full of Java apologists. permalink fedilink source parent hideshow 2 child comments replies: [–] lars@programming.dev 3 points 2 years ago* (1 child) No idea, I've never used either of those tools. I think some people still use Maven, but I use Gradle in all of mine. Gradle build files are written in Kotlin instead of XML like Maven. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 1 point 2 years ago No idea, I've never used either of those tools. That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad. I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven... permalink fedilink source parent
[–] lars@programming.dev 3 points 2 years ago* (1 child) No idea, I've never used either of those tools. I think some people still use Maven, but I use Gradle in all of mine. Gradle build files are written in Kotlin instead of XML like Maven. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 1 point 2 years ago No idea, I've never used either of those tools. That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad. I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven... permalink fedilink source parent
[–] MajorHavoc@programming.dev 1 point 2 years ago No idea, I've never used either of those tools. That's a relief to hear. They were quite bad. Or rather, the way most teams used them was quite bad. I've heard nice things about Gradle. Of course that was mainly from people with deep psychological scars after working with Ant and Maven... permalink fedilink source parent
[–] JustBrian7872@feddit.de 3 points 2 years ago* Thanks, my works' codebase feels old now. permalink fedilink source parent
[–] AMDIsOurLord@lemmy.ml 5 points 2 years ago (1 child) So if you take XML, pervert it beyond recognition, cut off it's balls and one hand, then it's somehow it's fault that it sucks? permalink fedilink source parent hideshow 2 child comments replies: [–] steventhedev@lemmy.world 3 points 2 years ago They started from XML. There's nowhere to go but up but spring managed to fuck even that up. FactoryStrategyFactoryFactoryObserverInterface Friends don't let friends use Java 😜 permalink fedilink source parent
[–] steventhedev@lemmy.world 3 points 2 years ago They started from XML. There's nowhere to go but up but spring managed to fuck even that up. FactoryStrategyFactoryFactoryObserverInterface Friends don't let friends use Java 😜 permalink fedilink source parent
[–] frezik@midwest.social 12 points 2 years ago (1 child) It was a markup language until someone decided to parse and execute it as a programming language. This person should be watched for other deranged behavior. permalink fedilink source parent hideshow 2 child comments replies: [–] ZILtoid1991@lemmy.world 3 points 2 years ago (1 child) I use XML as markup language, what kind of deranged person thought to turn it into a programming language? My problems with the Lua API led me down the rabbit hole of making my own VM and implementation, not looking at a markup languge, then go "what if I used this for scripting?". permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago When they make XML do these things (or the way Github Actions does it with YAML), they're essentially creating a representation of the AST that the compiler would make internally from a mini language. So there's a few possibilities: They don't know how compilers work and reach for a tool they do know They know, but figure the problem at hand doesn't need the complexity of a mini language and start the project the quick and dirty way, and it gets out of hand as they add features They may or may not know, but they do get caught up in the hype of some other tool (likely what happened with XSLT) permalink fedilink source parent
[–] ZILtoid1991@lemmy.world 3 points 2 years ago (1 child) I use XML as markup language, what kind of deranged person thought to turn it into a programming language? My problems with the Lua API led me down the rabbit hole of making my own VM and implementation, not looking at a markup languge, then go "what if I used this for scripting?". permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago When they make XML do these things (or the way Github Actions does it with YAML), they're essentially creating a representation of the AST that the compiler would make internally from a mini language. So there's a few possibilities: They don't know how compilers work and reach for a tool they do know They know, but figure the problem at hand doesn't need the complexity of a mini language and start the project the quick and dirty way, and it gets out of hand as they add features They may or may not know, but they do get caught up in the hype of some other tool (likely what happened with XSLT) permalink fedilink source parent
[–] frezik@midwest.social 4 points 2 years ago When they make XML do these things (or the way Github Actions does it with YAML), they're essentially creating a representation of the AST that the compiler would make internally from a mini language. So there's a few possibilities: They don't know how compilers work and reach for a tool they do know They know, but figure the problem at hand doesn't need the complexity of a mini language and start the project the quick and dirty way, and it gets out of hand as they add features They may or may not know, but they do get caught up in the hype of some other tool (likely what happened with XSLT) permalink fedilink source parent
[–] dohpaz42@lemmy.world 11 points 2 years ago (1 child) Tell that to SOAP. permalink fedilink source parent hideshow 2 child comments replies: [–] deadbeef79000@lemmy.nz 4 points 2 years ago Yo dawg, I heard you like XML over HTTP so I put XML over HTTP in your XML over HTTP. permalink fedilink source parent
[–] deadbeef79000@lemmy.nz 4 points 2 years ago Yo dawg, I heard you like XML over HTTP so I put XML over HTTP in your XML over HTTP. permalink fedilink source parent
[–] towerful@programming.dev 4 points 2 years ago (1 child) Like yaml/toml permalink fedilink source parent hideshow 2 child comments replies: [–] marcos@lemmy.world 7 points 2 years ago (2 children) The one benefit of toml is that nobody creates a programing language over it. permalink fedilink source parent hideshow 4 child comments replies: [–] MajorHavoc@programming.dev 7 points 2 years ago (1 child) The one benefit of toml is that nobody creates a programing language over it. Heh. Any day though, right? I can't wait to see an excited presentation on code-free coding in YAML... permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago (1 child) Github Actions have entered the chat. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 3 points 2 years ago Thanks. I hate that you're right. permalink fedilink source parent [–] nxdefiant@startrek.website 4 points 2 years ago so far permalink fedilink source parent
[–] marcos@lemmy.world 7 points 2 years ago (2 children) The one benefit of toml is that nobody creates a programing language over it. permalink fedilink source parent hideshow 4 child comments replies: [–] MajorHavoc@programming.dev 7 points 2 years ago (1 child) The one benefit of toml is that nobody creates a programing language over it. Heh. Any day though, right? I can't wait to see an excited presentation on code-free coding in YAML... permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago (1 child) Github Actions have entered the chat. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 3 points 2 years ago Thanks. I hate that you're right. permalink fedilink source parent [–] nxdefiant@startrek.website 4 points 2 years ago so far permalink fedilink source parent
[–] MajorHavoc@programming.dev 7 points 2 years ago (1 child) The one benefit of toml is that nobody creates a programing language over it. Heh. Any day though, right? I can't wait to see an excited presentation on code-free coding in YAML... permalink fedilink source parent hideshow 2 child comments replies: [–] frezik@midwest.social 4 points 2 years ago (1 child) Github Actions have entered the chat. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 3 points 2 years ago Thanks. I hate that you're right. permalink fedilink source parent
[–] frezik@midwest.social 4 points 2 years ago (1 child) Github Actions have entered the chat. permalink fedilink source parent hideshow 2 child comments replies: [–] MajorHavoc@programming.dev 3 points 2 years ago Thanks. I hate that you're right. permalink fedilink source parent
[–] MajorHavoc@programming.dev 3 points 2 years ago Thanks. I hate that you're right. permalink fedilink source parent