A common #python question: what's the difference between a script and a program?
- A program is something you've put some thought into.
- A script is something you didn't think you had to put any thought into.
A common #python question: what's the difference between a script and a program?
- A program is something you've put some thought into.
- A script is something you didn't think you had to put any thought into.
@gglockner @nedbat Just the one? And for how many years after you left? %-P
@nedbat What about the throwaway script one wrote that is now in production, powering some critical service? Asking for a friend. 😉
@yantor3d @nedbat - half of my career has been reverse engineering other people’s work, then mercilessly removing it.
@nedbat A script *is a* temporary fix that the entire project/business relies on and is saved on someone's desktop.
A program *has a* temporary fix that the entire project/business relies on and was labeled "TODO: Fix" by someone who left the company years ago.
I think of a script as a program that only automates what would otherwise be manual interactions of a human operator with the computer (so it does not create any - or many - new layers of representations)
@aaribaud @nedbat Etymology can help you understand why a word means what it means, but it can never give you a definite meaning of a word, as a word is created with some meaning in mind the moment it is coined, and keeps acquiring meaning for as long as it lives.
That's why there's a difference between a butt dial and a booty call.
@nedbat Luckily, etymology comes to the rescue.
- program: from the greek pro (before) and gramma/graphein (write), meaning "written before".
- script: from the latin scriptum/scribere, meaning "written".
So... Basically the same unless someone decides they should bear different meanings because opinion.
@btaroli @nedbat Some people are gatekeepers and treat script programming vs application programming as toy programming vs real programming.
The person who made the most effort to define a difference between the two though, John Osterhout, found script programming so important that he created Tcl to be a language good enough for general-purpose programming with control flow and abstractions, but with features and design choices to make the language particularly suited to script programming.
@nedbat it’s a caste system of programming, that presupposes your thing matters more if you had to compile it. #scripting #programming
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.