▲ 1673 ▼ Like programming in bash (lemmy.ml) submitted 2 years ago by cm0002@lemmy.world to c/programmer_humor@programming.dev 185 comments fedilink hide all child comments
[–] AnUnusualRelic@lemmy.world 23 points 2 years ago (4 children) So the alternative is: either an obtuse script that works everywhere, or a legible script that only works on your machine… permalink fedilink source parent hideshow 8 child comments replies: [–] shortrounddev@lemmy.world 6 points 2 years ago (3 children) I am of the opinion that production software shouldn't be written in shell languages. If it's something which needs to be redistributed, I would write it in python or something permalink fedilink source parent hideshow 6 child comments replies: [–] AnUnusualRelic@lemmy.world 4 points 2 years ago (1 child) For a bit of glue, a shell script is fine. A start script, some small utility gadget... With python, you're not even sure that the right version is installed unless you ship it with the script. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 3 points 2 years ago (1 child) I try to write things to be cross-platform; with node builds, I avoid anything using shell scripting so that we can support Windows builds as well. As such, I usually write the deployment scripts in Node itself, but sometimes python if it's supported by our particular CI/CD pipeline permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago (1 child) I keep forgetting windows exists. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago (1 child) Most common development platform in the world permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent [–] Hexarei@programming.dev 3 points 2 years ago (1 child) I tend to write anything for distribution in Rust or something that compiles to a standalone binary. Python does not an easily redistributable application make lol permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 2 points 2 years ago* Yeah but then you either need to compile and redistribute binaries for several platforms, or make sure that each target user has rust/cargo installed. Plus some devs don't trust compiled binaries in something like an npm package permalink fedilink source parent [–] coldsideofyourpillow@lemmy.cafe 1 point 2 years ago On a more serious note, NOTHING with more than a little complexity should be written in shell scripts imo. For that, Python is the best, primarily due to how fast it is to prototype stuff in it. permalink fedilink source parent [–] SwordInStone@lemmy.world 4 points 2 years ago* Ruby and calling bash like this `cat a.txt` permalink fedilink source parent [–] ICastFist@programming.dev 3 points 2 years ago a script that only works on your machine That's why docker exists :D permalink fedilink source parent [+] shortrounddev@lemmy.world 1 point 2 years ago [deleted] permalink fedilink source parent
[–] shortrounddev@lemmy.world 6 points 2 years ago (3 children) I am of the opinion that production software shouldn't be written in shell languages. If it's something which needs to be redistributed, I would write it in python or something permalink fedilink source parent hideshow 6 child comments replies: [–] AnUnusualRelic@lemmy.world 4 points 2 years ago (1 child) For a bit of glue, a shell script is fine. A start script, some small utility gadget... With python, you're not even sure that the right version is installed unless you ship it with the script. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 3 points 2 years ago (1 child) I try to write things to be cross-platform; with node builds, I avoid anything using shell scripting so that we can support Windows builds as well. As such, I usually write the deployment scripts in Node itself, but sometimes python if it's supported by our particular CI/CD pipeline permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago (1 child) I keep forgetting windows exists. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago (1 child) Most common development platform in the world permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent [–] Hexarei@programming.dev 3 points 2 years ago (1 child) I tend to write anything for distribution in Rust or something that compiles to a standalone binary. Python does not an easily redistributable application make lol permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 2 points 2 years ago* Yeah but then you either need to compile and redistribute binaries for several platforms, or make sure that each target user has rust/cargo installed. Plus some devs don't trust compiled binaries in something like an npm package permalink fedilink source parent [–] coldsideofyourpillow@lemmy.cafe 1 point 2 years ago On a more serious note, NOTHING with more than a little complexity should be written in shell scripts imo. For that, Python is the best, primarily due to how fast it is to prototype stuff in it. permalink fedilink source parent
[–] AnUnusualRelic@lemmy.world 4 points 2 years ago (1 child) For a bit of glue, a shell script is fine. A start script, some small utility gadget... With python, you're not even sure that the right version is installed unless you ship it with the script. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 3 points 2 years ago (1 child) I try to write things to be cross-platform; with node builds, I avoid anything using shell scripting so that we can support Windows builds as well. As such, I usually write the deployment scripts in Node itself, but sometimes python if it's supported by our particular CI/CD pipeline permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago (1 child) I keep forgetting windows exists. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago (1 child) Most common development platform in the world permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] shortrounddev@lemmy.world 3 points 2 years ago (1 child) I try to write things to be cross-platform; with node builds, I avoid anything using shell scripting so that we can support Windows builds as well. As such, I usually write the deployment scripts in Node itself, but sometimes python if it's supported by our particular CI/CD pipeline permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago (1 child) I keep forgetting windows exists. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago (1 child) Most common development platform in the world permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] AnUnusualRelic@lemmy.world 3 points 2 years ago (1 child) I keep forgetting windows exists. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago (1 child) Most common development platform in the world permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] shortrounddev@lemmy.world 1 point 2 years ago (1 child) Most common development platform in the world permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] AnUnusualRelic@lemmy.world 2 points 2 years ago (1 child) I quit using it in the WfW days and never looked back. permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] shortrounddev@lemmy.world 1 point 2 years ago* (1 child) You haven't used windows in like 30 years? It's quite different now lol permalink fedilink source parent hideshow 2 child comments replies: [–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] AnUnusualRelic@lemmy.world 3 points 2 years ago Maybe. I'm fine with my Linux machines though. permalink fedilink source parent
[–] Hexarei@programming.dev 3 points 2 years ago (1 child) I tend to write anything for distribution in Rust or something that compiles to a standalone binary. Python does not an easily redistributable application make lol permalink fedilink source parent hideshow 2 child comments replies: [–] shortrounddev@lemmy.world 2 points 2 years ago* Yeah but then you either need to compile and redistribute binaries for several platforms, or make sure that each target user has rust/cargo installed. Plus some devs don't trust compiled binaries in something like an npm package permalink fedilink source parent
[–] shortrounddev@lemmy.world 2 points 2 years ago* Yeah but then you either need to compile and redistribute binaries for several platforms, or make sure that each target user has rust/cargo installed. Plus some devs don't trust compiled binaries in something like an npm package permalink fedilink source parent
[–] coldsideofyourpillow@lemmy.cafe 1 point 2 years ago On a more serious note, NOTHING with more than a little complexity should be written in shell scripts imo. For that, Python is the best, primarily due to how fast it is to prototype stuff in it. permalink fedilink source parent
[–] SwordInStone@lemmy.world 4 points 2 years ago* Ruby and calling bash like this `cat a.txt` permalink fedilink source parent
[–] ICastFist@programming.dev 3 points 2 years ago a script that only works on your machine That's why docker exists :D permalink fedilink source parent