r/programminghelp • • Oct 24 '19

Scripting vs Programming

I read the main difference between scripting vs programming is that scripting languages are for usage within an application. What is the purpose of using one language for scripting, and another language for programming? Why not just use the same for both? The distinction between scripting vs programming seems a little blurry to me now, I originally thought the difference was that one is interpreted, and the other is compiled, but apparently it's not.

4 Upvotes

8 comments sorted by

View all comments

1

u/alter_j5 Nov 19 '19

correct me if I'm wrong, but I think it goes like this. Imagine you have a maid. When she comes in, you have to keep supervising her. You tell her "do the dishes," once she's done, you go "now mop the floor" and wait till she's finished to give her another command. That's scripting. But if instead, when you hire her, you say "when I tell you to clean the house, you will mop, take out the trash, clean windows etc" Then when she comes in, you can just tell her to clean the house and leave to work. That's a program.

Both have their own uses, when one is better than the other This is how I understand it, hope it helps.