Fake it until you automate it
understandlegacycode.com
Fake it until you automate it
1–10 of 52 posts
Re: Fake it until you automate it
#2I am not suggesting you should give a toss, but at least admit what happens before you inflict the decision on your team.
Have a wonderful day =)
Re: Fake it until you automate it
#3> It gets people into the habit of running a single command to initiate deployments
npx firebase-tools deploy --only functions -P staging
is also one command
> It’s a more obvious source of truth for putting the deployment instructions
If that command were put into CI/CD, that would be an even more authoritative source of truth.
> Because it’s already an executable script, it makes it easier for us to automate some of the steps listed
The executable script can't be run by CI/CD and is another potential source of bugs/mistakes.
The real "fake it until you automate it" for deployment would've been ssh'ing into the server, running git pull, and restarting the server. That's no longer possible with serverless nowadays, but this seems to go from taking something that's relatively straightforward to something that's very complex.
Re: Fake it until you automate it
#4Wow, please don't ship that. A whole suite of CLI tools for a custom deployment pipeline is my worst nightmare if something goes wrong. The purported benefits: > It gets people into the habit of running a single command to initiate deployments npx firebase-tools deploy --only functions -P staging is also one command > It’s a more obvious source of truth for putting the deployment instructions If that command were put…
Better yet:
make deploy-staging
Even when it's just wrapping something else, I strongly prefer to use make(1) as the universal all in one command.Re: Fake it until you automate it
#5But one side note: if you have sysadmin skills and can write some shell scripts and have used more than one distro, you are effectively a Do ker expert. Configuring a docker image is just says admin 101 with little bitty shell script fragments.
Re: Fake it until you automate it
#6Re: Fake it until you automate it
#7Re: Fake it until you automate it
#8Re: Fake it until you automate it
#9Wow, please don't ship that. A whole suite of CLI tools for a custom deployment pipeline is my worst nightmare if something goes wrong. The purported benefits: > It gets people into the habit of running a single command to initiate deployments npx firebase-tools deploy --only functions -P staging is also one command > It’s a more obvious source of truth for putting the deployment instructions If that command were put…
> npx firebase-tools deploy --only functions -P staging Better yet: make deploy-staging Even when it's just wrapping something else, I strongly prefer to use make(1) as the universal all in one command.
Re: Fake it until you automate it
#10Earlier quoted context omitted.
> npx firebase-tools deploy --only functions -P staging Better yet: make deploy-staging Even when it's just wrapping something else, I strongly prefer to use make(1) as the universal all in one command.
I don't know if that pattern has a name, but I really love that on my team if there is a script it should be runnable through the Makefile. I know some people are very good a remembering commands, but I'm not and being able to do `make docker`, `make init`, `make eval`, etc... really simplifies my workflow.