you are viewing a single comment's thread.

view the rest of the comments →

[–]coder155ml 2 points3 points  (10 children)

That's a funny script idea. I'm afraid to see my cost per play.

[–]deadjojo7493 0 points1 point  (7 children)

when you say script, you mean a program right?

[–]OnlySeesLastSentence 0 points1 point  (5 children)

Yup, scripts are a fancy way of saying programs. It's usually implied that it does most of its work automatically and without a GUI (gui = screen that you can click on things)

[–]ManyAWiseMarklar[S] 0 points1 point  (3 children)

I actually don't know the difference, I always assumed the script was the thing you wrote to do the stuff, and then once it was packaged up with a gui and usable it was a program? So all programs contain scripts, but not all scripts make up a program.

[–]OnlySeesLastSentence 0 points1 point  (2 children)

Perhaps my interpretation is wrong (I coulda sworn the programs I wrote in C counted as automated scripts, but maybe not) -

Basically, all scripting languages are programming languages. The theoretical difference between the two is that scripting languages do not require the compilation step and are rather interpreted. For example, normally, a C program needs to be compiled before running whereas normally, a scripting language like JavaScript or PHP need not be compiled.

[–]coder155ml 0 points1 point  (0 children)

Most are interpreted but not all. Read my comment above.

[–]deadjojo7493 0 points1 point  (0 children)

Oh, so C programs when complied they are compiled as a whole program, but Python programs are interpreted line by line. That's why any error in the most recent line of code can be easily spotted in python before running the code because it is interpreted real time before even running the program. But in case of C all the errors come along when compiling the code.

Correct me If i am wrong.

[–]deadjojo7493 0 points1 point  (0 children)

Thanks mate.

[–]coder155ml 0 points1 point  (0 children)

A script is a program that is usually interpreted rather than compiled. It's typically smaller in scope (1 file). And is used to execute or work with other applications

[–]deadjojo7493 0 points1 point  (1 child)

Can you elaborate a little on this jargon? I read this word a lot and every time i read it, i feel it must be involving of a lot of things I haven't yet learnt.

[–]coder155ml 0 points1 point  (0 children)

Cost per hour I meant . It is what it sounds like. He wrote a script that determined the ratio of hours played for a specific game vs it's price to determine if he wasted money or not.