Ask Lemmy
A Fediverse community for open-ended, thought provoking questions
Rules: (interactive)
1) Be nice and; have fun
Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them
2) All posts must end with a '?'
This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?
3) No spam
Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.
4) NSFW is okay, within reason
Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com.
NSFW comments should be restricted to posts tagged [NSFW].
5) This is not a support community.
It is not a place for 'how do I?', type questions.
If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.
6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online
Reminder: The terms of service apply here too.
Partnered Communities:
Logo design credit goes to: tubbadu
view the rest of the comments
Software engineering: Don't script stuff! Seriously, just stop, it's a huge waste of everybody's time. I don't fucking care if you think mygitwrapper.sh is the bomb. I want you to know your git commands by heart or just learn to use the damn history on your terminal.
Scripting is only allowed if it's part of the project's infrastructure. Stop faffing about.
Every day I have to open a VM as I turn on the computer. I could go find and open Virtual box, then select the VM and open it. Why would I do that when I can open the terminal and run a script that does that in a single action. Then I have to SSH into that machine that always has the same IP. Why should I have to type the IP every time?
Scripts are good when used correctly. I don't need to know what vboxmanage to run to do whatever I want, I just needed to search it once and remove it from my brain.
Kinda unrelated but:
I don't think you should know how to do everything from the git CLI. For 99% of use cases, the IDE already knows how to do what you want to do, with a simple button. For the rest, just search for the git command when you need it.
The problem isn't mygitwrapper.sh. You need to know those git commands to write that wrapper. The problem is people taking someone else's mygitwrapper.sh and using that instead of learning git.
I had this fight at work once. Someone wanted to write a makefile to invoke pytest. I didn't want to do that because I wanted people to know how pytest works, so when something goes wrong they know they can do
-vvor--pdbor whatever.Scripts that cover trivial steps and obscure stuff people should know, I'm not a fan of.
Are you a fan of curl?
https://justuse.org/curl/
Best lib on the planets.
Agree but I’d add “unnecessarily” or something, because yeah many common aliases and smaller convenience functions offer meager cumulative time savings in trade for the skill atrophy, but script files can also contain seriously lengthy and/or complex logic that would simply be counterproductive to attempt typing line-by-line into a terminal without any mistakes, especially for scripts that are run often.