TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What Is the Difference Between Scripting and Programming?

4 pointsby key_strokerover 2 years ago
Some people say they write scripts others say write a small program, what is the defining characteristic of each?

7 comments

beardywover 2 years ago
To me a script is something which is parsed at the time of execution. A program is compiled in advance. There are numerous exceptions to this but to me it describes the essence of it.
prirunover 2 years ago
For me, scripts are something I write quickly, don&#x27;t put a lot of thought into, don&#x27;t care if they have weird failure cases. More like a one-off thing.<p>If a &quot;script&quot; is critical, has to handle lots of error conditions, has to always have reasonable behavior, and is part of any kind of production setup, then it becomes more like programming.
proc0over 2 years ago
It&#x27;s used in different ways. I think it&#x27;s original meaning was writing a script for a program, which means specifying high level behaviors like a movie script. Game engines are written in a programming language and then expose a scripting language to build the game rules, control the characters, and so on. For the web, scripting ends up being the front end, because it&#x27;s specifying the behavior of the web page, and it&#x27;s high level on the software stack of the browser. Of course now frontend is very complex and not so much scripting... which does make me wonder why companies don&#x27;t create their own frontend scripting language on top of typescript or javascript.
cloudsec9over 2 years ago
Classically, I think that scripts are small&#x2F;one-off bits that were written in an immediate language like Bash or maybe Python.<p>Scripts I think are meant to be run by tech people so might lack documentation, error checking, etc.<p>Often you&#x27;d write a script to set up the environment for a program; paths, environment variables, rotate previous logs and write PID files. Small scripts can evolve, and if they are part of an important program, can be more complex.<p>Programmers tend to write programs, while system admins used to write the bulk of scripts.<p>I&#x27;m not sure these divisions are as clear anymore, but that feels like how things originally evolved.
sacrosanctover 2 years ago
<a href="https:&#x2F;&#x2F;www.geeksforgeeks.org&#x2F;whats-the-difference-between-scripting-and-programming-languages&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.geeksforgeeks.org&#x2F;whats-the-difference-between-s...</a><p><a href="https:&#x2F;&#x2F;www.javatpoint.com&#x2F;scripting-vs-programming" rel="nofollow">https:&#x2F;&#x2F;www.javatpoint.com&#x2F;scripting-vs-programming</a><p><a href="https:&#x2F;&#x2F;www.interviewbit.com&#x2F;blog&#x2F;scripting-language-vs-programming-language&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.interviewbit.com&#x2F;blog&#x2F;scripting-language-vs-prog...</a>
subject4056over 2 years ago
A script is a type of program, they&#x27;re not two separate classes of things.<p>I think classically a script is a program whose subunits are each complete programs (&#x27;commands&#x27;) that operate on a shared environment, with shell scripting being the central example. The definition has since been expanded by way of analogy to include basically any interpreted program which may have side effects on its execution environment.
mtmailover 2 years ago
Notebook vs laptop, software developer vs softwar engineer vs programmer, app vs program. There might be a difference in definition but the average person uses the words interchangably.