#DevDiscuss Archive
Tuesday August 15, 2017
9:00 PM EDT
ThePracticalDev
Aug 15 @ 9:04 PM EDT
It's time for the
#DevDiscuss
Twitter chat! Tonight's topic is SCRIPTING!
ThePracticalDev
Aug 15 @ 9:05 PM EDT
Rules: - Stay on topic - ALWAYS ALWAYS use hashtag
#DevDiscuss
- Be NICE/POSITIVE ❤️ - Quoting tweets for clarity is encouraged
CWReaceJr
Aug 15 @ 9:05 PM EDT
Whether you choose 80 or another number, now I think it's more for developer readability than screen size.
#codesmell
#devdiscuss
In reply to @TasmacNCheese
KrisSiegel
Aug 15 @ 9:05 PM EDT
Is it deliberate that the
#DevDiscuss
text is black in that image? The contrast between it and the background is so little it's hard to see.
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:06 PM EDT
This graphic makes my head hurt - it's already like I'm doing some shell scripting
#devdiscuss
ThePracticalDev
Aug 15 @ 9:04 PM EDT
It's time for the
#DevDiscuss
Twitter chat! Tonight's topic is SCRIPTING!
kellyjandrews
Aug 15 @ 9:07 PM EDT
It's ephemeral - it's cool
#devdiscuss
In reply to @KrisSiegel, @ThePracticalDev
ThePracticalDev
Aug 15 @ 9:09 PM EDT
Firstly, how would you define "scripting" as opposed to other forms of coding/software development?
#devdiscuss
kylewelch
Aug 15 @ 9:10 PM EDT
For me scripting is when you write code that doesn't need to be compiled.
#devdiscuss
ThePracticalDev
Aug 15 @ 9:09 PM EDT
Firstly, how would you define "scripting" as opposed to other forms of coding/software development?
#devdiscuss
Nick_Craver
Aug 15 @ 9:10 PM EDT
It’s a blurry line these days. I tend to think of it as: 1 file I can hit a single button to run.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:09 PM EDT
Firstly, how would you define "scripting" as opposed to other forms of coding/software development?
#devdiscuss
dangolant
Aug 15 @ 9:11 PM EDT
#devdiscuss
single purpose, single file, minor modification/config but nothing extensive
In reply to @ThePracticalDev
phillipcjohnson
Aug 15 @ 9:11 PM EDT
I usually jump to Python when writing scripts. Its readability and simple syntax let me quickly get something working.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:04 PM EDT
It's time for the
#DevDiscuss
Twitter chat! Tonight's topic is SCRIPTING!
kellyjandrews
Aug 15 @ 9:13 PM EDT
"Scripting" is like a play - a series of commands to be followed one after another, instructing the shell what to do.
#devdiscuss
In reply to @ThePracticalDev
CMAPoole
Aug 15 @ 9:13 PM EDT
I define script as short piece of code for distinct task and not usually a structured program. Usually interpreted not compiled.
#devdiscuss
ThePracticalDev
Aug 15 @ 9:09 PM EDT
Firstly, how would you define "scripting" as opposed to other forms of coding/software development?
#devdiscuss
delahappy
Aug 15 @ 9:13 PM EDT
Fewer guide rails so easier to go off track.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:09 PM EDT
Firstly, how would you define "scripting" as opposed to other forms of coding/software development?
#devdiscuss
cocodDarthVader
Aug 15 @ 9:13 PM EDT
Sometimes it gets far more complex than building a small OOP app to solve the very same problem. Maybe I just suck at scripting
#DevDiscuss
In reply to @kellyjandrews, @KrisSiegel, @ThePracticalDev
Doshirae
Aug 15 @ 9:14 PM EDT
It's a program made to do 1 task, it only has 1 purpose It's in a single file And it's usually ugly/bad code
#devdiscuss
ThePracticalDev
Aug 15 @ 9:09 PM EDT
Firstly, how would you define "scripting" as opposed to other forms of coding/software development?
#devdiscuss
CWReaceJr
Aug 15 @ 9:14 PM EDT
A1: I wouldn't try, as it's a multi-purposed term, but if pushed to, I'd say it's narrowly focused on one task at OS cmd level
#DevDiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:15 PM EDT
Are you writing a script, or a CLI?
#devdiscuss
In reply to @cocodDarthVader, @KrisSiegel, @ThePracticalDev
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
cdf1982
Aug 15 @ 9:18 PM EDT
A script is that small, valuable piece of software with (usually) an audience of one, myself.
#devdiscuss
kellyjandrews
Aug 15 @ 9:18 PM EDT
As an example, I have a dotfiles script that does a bunch of stuff. Installs, setup machines, etc
https://t.co/THAbf8B7oi
#devdiscuss
In reply to @ThePracticalDev
phillipcjohnson
Aug 15 @ 9:19 PM EDT
How do you decide between bash and a full programming language when writing a script?
#DevDiscuss
@ThePracticalDev
projectedxyz
Aug 15 @ 9:19 PM EDT
#devdiscuss
It's all I know and when it doesn't suit, it serves as a communication tool > psuedocode to relay prototypes to a real Developer
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:19 PM EDT
Automation in the CI/CD pipeline. I'm actually writing on now to deploy to GKE
#devdiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:19 PM EDT
Correction - just finished one now.
#devdiscuss
In reply to @ThePracticalDev
jduss4
Aug 15 @ 9:20 PM EDT
"Ruby on Rails? So you like, just do scripting?" - said to me recently However, I'd pry define it as a single file w/ 1 purpose
#devdiscuss
In reply to @ThePracticalDev
Nick_Craver
Aug 15 @ 9:20 PM EDT
For tasks that often only I know how to do. They act as a de-bus-factor and knowledge transfer. Also, do it once, reuse.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
dangolant
Aug 15 @ 9:20 PM EDT
#devdiscuss
if I am allowed/able to use anything other than bash, I probably will. Very few cases where I will use bash without being forced
phillipcjohnson
Aug 15 @ 9:19 PM EDT
How do you decide between bash and a full programming language when writing a script?
#DevDiscuss
@ThePracticalDev
AntonFrattaroli
Aug 15 @ 9:20 PM EDT
Tough question. Best I can figure is "coding by command line".
#devdiscuss
In reply to @ThePracticalDev
timmdapper
Aug 15 @ 9:20 PM EDT
It's a spectrum, usually less close to hardware, closer to application layer, often interpreted, sometimes more special purpose.
#devdiscuss
In reply to @ThePracticalDev
gdavis92
Aug 15 @ 9:21 PM EDT
I usually use it to mean some code that is intended to perform a process/task. Eg bash scripting
#DevDiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:21 PM EDT
For a basic script, I'm using a shell script - no need to introduce another language into things.
#devdiscuss
In reply to @phillipcjohnson, @ThePracticalDev
CWReaceJr
Aug 15 @ 9:21 PM EDT
PS: for those who treat shell scripting as a poor cousin of other coding,
https://t.co/TaERZdTp6O
#DevDiscuss
😎
In reply to @ThePracticalDev
bendhalpern
Aug 15 @ 9:22 PM EDT
I really like writing quick one-off Ruby scripts to automate a thing I'm doing. They rarely end up being reusable.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
kellyjandrews
Aug 15 @ 9:22 PM EDT
It's actually super fun to write.
#devdiscuss
In reply to @CWReaceJr, @ThePracticalDev
dangolant
Aug 15 @ 9:23 PM EDT
#devdiscuss
also useful when dev envs are finicky. scripted build+deploy of an app on a server bc everyones local envs kept breaking.
In reply to @Nick_Craver
jxpx777
Aug 15 @ 9:24 PM EDT
Scripts are crucial for tasks that must be done correctly no matter what kind of day I’m having.
#devdiscuss
https://t.co/3LBr5xeUuG
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
cocodDarthVader
Aug 15 @ 9:24 PM EDT
A new OS perhaps? Why lower your expectations?
#devdiscuss
In reply to @kellyjandrews, @KrisSiegel, @ThePracticalDev
jxpx777
Aug 15 @ 9:24 PM EDT
Scripts are convenient for tasks that will take a long time. 1/2
#devdiscuss
https://t.co/3LBr5xeUuG
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
jxpx777
Aug 15 @ 9:25 PM EDT
I might spend more time writing the script, but I *enjoy* that much more than grunt work. 2/2
#devdiscuss
https://t.co/3LBr5xeUuG
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
Drullkus
Aug 15 @ 9:25 PM EDT
Automating something that would be repetitive or otherwise mentally degrading to do. Applies even to Photoshop actions.
#devdiscuss
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
CWReaceJr
Aug 15 @ 9:25 PM EDT
I often write scripts for repeating cron jobs, one-off data conversions, data analysis that might be one-off or repeating
#DevDiscuss
In reply to @ThePracticalDev
CWReaceJr
Aug 15 @ 9:26 PM EDT
"data analysis" often includes httpd log parsing 😎
#DevDiscuss
In reply to @ThePracticalDev
CKnickerbocker
Aug 15 @ 9:27 PM EDT
Definitely deployments, with the occasional file processor.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
kellyjandrews
Aug 15 @ 9:27 PM EDT
So I'll say it again - a series of tasks to be executed one after the other. They really don't need to be much more than that.
#devdiscuss
kellyjandrews
Aug 15 @ 9:28 PM EDT
Do A, then B, then if B, do C, D, E, then finish with F.
#devdiscuss
Deanveloper
Aug 15 @ 9:29 PM EDT
You write a file and execute the file! I think that's the essence of scripting to me.
#devdiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:29 PM EDT
Not being a tool - it's really to set it in - I made them into way more than they were once.
#devdiscuss
walkersaxplayer
Aug 15 @ 9:30 PM EDT
#DevDiscuss
I mostly use bash but damn that array syntax is wack
kellyjandrews
Aug 15 @ 9:30 PM EDT
Yeah - that's exactly the spirit I think too. Well put.
#devdiscuss
In reply to @Deanveloper, @ThePracticalDev
Deanveloper
Aug 15 @ 9:30 PM EDT
Nothing in between. No need to compile. Make small files to do small tasks! 😊
#devdiscuss
In reply to @ThePracticalDev
Max802_16
Aug 15 @ 9:31 PM EDT
Coding deals with various real life storylines. Scripting deals with a single system related storyline.
#DevDiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:31 PM EDT
I mean, it's all kinda strange. Lots of syntax goodies to learn.
#devdiscuss
In reply to @walkersaxplayer
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
b3llydrum
Aug 15 @ 9:33 PM EDT
95% of the time I write a script it's because I find myself performing the same task over and over. I always feel awesome
#DevDiscuss
In reply to @ThePracticalDev
CWReaceJr
Aug 15 @ 9:34 PM EDT
This discussion is making me want to see if I still have my Sed and Awk book...
#DevDiscuss
😀
delahappy
Aug 15 @ 9:34 PM EDT
I appreciate that I get to automate some routine tasks but I wouldn't say I enjoy scripting. Though I haven't done it a lot.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
sparky_005
Aug 15 @ 9:35 PM EDT
Quick, one-off programs that are meant to automate a single task or set of tasks. Probably not compiled.
#devdiscuss
In reply to @ThePracticalDev
sparky_005
Aug 15 @ 9:35 PM EDT
Probably a single file
#devdiscuss
In reply to @ThePracticalDev
CWReaceJr
Aug 15 @ 9:36 PM EDT
I tend to like scripting type tasks because *usually* it's a short path from need to solution, but sometimes... 🙄
#DevDiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:36 PM EDT
It's a nice break for me. It let's me automate some tasks and have a little fun. Get away from the "real" code, so to speak.
#devdiscuss
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
projectedxyz
Aug 15 @ 9:36 PM EDT
#devdiscuss
moving data, ETL, tightly coupled with statistical packages only available in said scripting lang
In reply to @ThePracticalDev
Deanveloper
Aug 15 @ 9:38 PM EDT
I like it for small tasks. Some people on my team have used it for large, complicated tasks, and I have no clue how they do it.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
TonyTalksTech
Aug 15 @ 9:38 PM EDT
As a C# dev,
@linqpad
is my "scripting" and I love everything about it. Natural extension of "normal" dev.
#DevDiscuss
In reply to @ThePracticalDev, @linqpad
CWReaceJr
Aug 15 @ 9:38 PM EDT
Been quite awhile since I've AWKed, but it was great for parsing log files, as I recall.
#DevDiscuss
In reply to @walkersaxplayer
bendhalpern
Aug 15 @ 9:38 PM EDT
I LOVE scripting if the task is interesting. It's like having a blank canvas and a brush in your hand.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
csrabl
Aug 15 @ 9:39 PM EDT
As an specific scene from a movie
#devdiscuss
In reply to @ThePracticalDev
mrm8488
Aug 15 @ 9:40 PM EDT
I like "oneliner" CLI magic. You can build powerful utilities with 4 commands and some pipes. Example:
https://t.co/B4e4bqYxmq
#devdiscuss
In reply to @ThePracticalDev
mistermocha
Aug 15 @ 9:41 PM EDT
Hey
@ThePracticalDev
does an rpmspec count as a script?
#devdiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:42 PM EDT
I am definitely not that good with the bash.
#devdiscuss
In reply to @mrm8488, @ThePracticalDev
walkersaxplayer
Aug 15 @ 9:42 PM EDT
#devdiscuss
post your fav scripting resources:
https://t.co/DGQiFWZ3d9
Max802_16
Aug 15 @ 9:42 PM EDT
Automation, configuration, deployment, and initialization.
#DevDiscuss
In reply to @ThePracticalDev
DaleHagglund
Aug 15 @ 9:43 PM EDT
scripting: just programming, but often small, often special purpose, often just for author, often in a low ceremony language.
#devdiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:43 PM EDT
I'm now stealing this one.
#devdiscuss
In reply to @walkersaxplayer
bendhalpern
Aug 15 @ 9:43 PM EDT
A self-contained block of code with a clear outcome in mind and no messy dependencies
#devdiscuss
samjarman
Aug 15 @ 9:44 PM EDT
#DevDiscuss
Nothing like a bit of hacking stuff together... but it's important to realise that might not be a good final solution
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
JhonnyBillM
Aug 15 @ 9:46 PM EDT
Yes. I feel kind of powerful. Automating a task within just a few minutes excites me.
#DevDiscuss
In reply to @ThePracticalDev
CWReaceJr
Aug 15 @ 9:47 PM EDT
You mean besides googling? 😜
#DevDiscuss
In reply to @walkersaxplayer, @ThePracticalDev
mrm8488
Aug 15 @ 9:47 PM EDT
I have another repo
https://t.co/z0OX0CQm2t
#devdiscuss
In reply to @ThePracticalDev
jessleenyc
Aug 15 @ 9:48 PM EDT
@ThePracticalDev
In the instructors lounge, I was known as "the girl who wanted to write bash scripts" at my bootcamp.
#devdiscuss
gillchristian
Aug 15 @ 9:49 PM EDT
#devdiscuss
I don't do scripting as much as I should/like. I feel like I could automate much more
daveaglick
Aug 15 @ 9:49 PM EDT
I really enjoy the other side: writing tools that empower users to use scripting (as opposed to config files for example)
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:33 PM EDT
Compared to other software development activities, do you especially enjoy scripting?
#DevDiscuss
TiffanyW_412
Aug 15 @ 9:49 PM EDT
I have yet to sit down and learn shell scripting. Too focused on learning to program to fiddle with it.
#DevDiscuss
In reply to @ThePracticalDev
ProgrammerAl
Aug 15 @ 9:50 PM EDT
I tend to think of scripting as a one off thing. Try to keep it to one file that doesn't need scrolling.
#DevDiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:50 PM EDT
not a bad title :D
#devdiscuss
In reply to @jessleenyc, @ThePracticalDev
TiffanyW_412
Aug 15 @ 9:50 PM EDT
It seems incredibly daunting with the cryptic commands and flags. I just don’t have time rn.
#DevDiscuss
In reply to @ThePracticalDev
ProgrammerAl
Aug 15 @ 9:51 PM EDT
I see it as just another task. Though the mind shift is nice from other 'normal' dev work. Just a different kind of automation.
#DevDiscuss
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:51 PM EDT
Awesome suggestion for
@climagic
#devdiscuss
In reply to @mrm8488, @ThePracticalDev, @climagic, @climagic
gdavis92
Aug 15 @ 9:51 PM EDT
I love scripting. Bash is a ton of fun and pretty easy to get something powerful going.
#DevDiscuss
In reply to @ThePracticalDev, @DevDiscussHQ
kellyjandrews
Aug 15 @ 9:52 PM EDT
You eventually will. It took me a few years before I got to it.
#devdiscuss
In reply to @TiffanyW_412, @ThePracticalDev
gillchristian
Aug 15 @ 9:53 PM EDT
#devdiscuss
mostly because I lack the knowledge. But I'm learning, slowly but surely.
walkersaxplayer
Aug 15 @ 9:53 PM EDT
#DevDiscuss
grep and find are two of my biggest 'debugging' tools combine with good&careful bash 😙
CWReaceJr
Aug 15 @ 9:53 PM EDT
Start small. Do you find yourself doing the same sequence of terminal commands often? Stick them in a script file. First script!
#DevDiscuss
In reply to @TiffanyW_412, @ThePracticalDev
AntonFrattaroli
Aug 15 @ 9:54 PM EDT
I would script something that would never need changes. Like archiving old log files. I don't see much use.
#devdiscuss
In reply to @phillipcjohnson, @ThePracticalDev
gillchristian
Aug 15 @ 9:54 PM EDT
#devdiscuss
scripting for me is writing some sort of tasks to automate something related to my interactions with the computer or 1/x
kellyjandrews
Aug 15 @ 9:55 PM EDT
Another example - here are some basic scripts for a CI/CD pipeline -
https://t.co/h8LAVB1k6T
#devdiscuss
gillchristian
Aug 15 @ 9:55 PM EDT
#devdiscuss
something related to (running) software (deploy, tests)
CWReaceJr
Aug 15 @ 9:55 PM EDT
I'll count it. See: you're a scripter! ;)
#DevDiscuss
In reply to @TiffanyW_412, @ThePracticalDev
ThePracticalDev
Aug 15 @ 9:55 PM EDT
In the last few minutes of
#DevDiscuss
, anybody have any news to share, like a project or a personal win, or any other announcement?
TiffanyW_412
Aug 15 @ 9:56 PM EDT
Glad to see someone not immediately jump in. Always feels like I’m not really a developer because I don’t write shell scripts
#DevDiscuss
In reply to @kellyjandrews, @ThePracticalDev
mrm8488
Aug 15 @ 9:56 PM EDT
Echa un vistazo al Tweet de
@mrm8488
:
https://t.co/vjEptHyGEK
#devdiscuss
In reply to @kellyjandrews, @ThePracticalDev, @climagic, @mrm8488
mrm8488
Apr 28 @ 10:06 AM EDT
thanks to
@climagic
gillchristian
Aug 15 @ 9:56 PM EDT
#devdiscuss
something related to (running) software (deploy, tests) 2/x
Red_Shirt_no2
Aug 15 @ 9:56 PM EDT
#DevDiscuss
Repeated tasks; mostly regression, load testing, data analysis. I do use fc a lot to build up complex one-offs...
In reply to @ThePracticalDev
kellyjandrews
Aug 15 @ 9:57 PM EDT
Your a developer who doesn't write shell scripts.
#devdiscuss
In reply to @TiffanyW_412, @ThePracticalDev
TiffanyW_412
Aug 15 @ 9:57 PM EDT
Hahaha. I suppose. I’ll get to it eventually.
#DevDiscuss
In reply to @CWReaceJr, @ThePracticalDev
kellyjandrews
Aug 15 @ 9:57 PM EDT
It works really well in deployments, because I can't be on the server when the process is running - it's out of my hands.
#devdiscuss
samueletie
Aug 15 @ 9:57 PM EDT
Can I consider using selenium somewhat scripting? currently using it to automate some tasks at work. But sometimes it doesn't
#devdiscuss
TiffanyW_412
Aug 15 @ 9:58 PM EDT
Yeah? I hope that’s the case. I go to a nix forum and am overwhelmed by the commands.
#DevDiscuss
In reply to @gbhorwood, @bendhalpern, @ThePracticalDev
AminSpeaks
Aug 15 @ 9:58 PM EDT
I was a salesman 2 years ago. Personal paramount win tbh.
#DevDiscuss
In reply to @ThePracticalDev
AtomicBlom
Aug 15 @ 9:59 PM EDT
Rick rolling the entire company by searching and replacing mp3s on the company's file server 😎.
#DevDiscuss
ThePracticalDev
Aug 15 @ 9:17 PM EDT
When do you typically find yourself writing scripts? Repeated tasks, one offs, deployment, convenience?
#devdiscuss
CWReaceJr
Aug 15 @ 9:59 PM EDT
Sure, just don't tell anyone I often use PHP for scripting type tasks because I know it much better than bash. 🙄
#DevDiscuss
In reply to @samueletie