- Oct 9, 2013
- 3,471
- 14,453
That's what I and some call a script - a short program - a part of a bigger scheme. That's our silly definition. 3k+ lines and I call it a program.
People know what a parse tree is, but rarely they implement it in practice.
I can't. I made a mistake of learning frameworks instead of computer science.
I was trying to make GPT-3 work well in the early days. Without understanding and knowing algorithms it was a big headache. I quit.
Still have to learn a lot.
Never did that. Afterall, as a scripter I wouldn't follow any good practices unless I learned from mistakes and decided to use them to ease my pain.
I switched from JS to TypeScript, so I can see what's happening more clearly. It's better experience.
Last pack of scripts I created (about 10k lines) had absolutely no tests. I was wondering where is the bug. TypeScript helped a little bit, but it wasn't enough at that number of lines.
I learned this as a first language 6 years ago. I think it took me a month.
I gave it up when I started learning Pandas. Really hard and requires to have a plan. I learned Python from sheer curiosity.
When you introduce someone to Pandas and similar in their early days, it's just a bunch of wtfs. It's like kids learning math at school. They have to but they don't know why.
It seemed so useless to me 6 years ago. So I swtiched to JS due to practical use on the internet.
Today... I could make use of it if I had a goal. And I agree it's as hard to understand as all that advanced C stuff for beginners.
They're so crazy. Just check Elon's Twitter.
Bro, it's not a script. lol.
It's such a pointless arbitrary definition. You've now said anything under 3k lines is a script, and over 3k is a program.
No. This is not valid.
Think about the ridiculousness of what you're saying.
I wrote a script that builds an html parse tree?
What about a C program under 3k lines? Is that a script?
If not why?
because it's compiled?
Python is compiled - https://devguide.python.org/internals/compiler/
So why is my 437 line program classed as a script?
Really, guys, it's such a stupid term.
It means NOTHING, but it is insulting.
So if I re-write MY PROGRAM in C, so it's several thousand lines long, then suddenly it's worthy of being a program?
The bottom line is, you are disagreeing with the creators of Python, who call it a programming language, not a scripting language.
Writing thousands of lines of C code doesn't make you any more of a "real programmer" than Python code.
The only time you'd use the term "python scripts" is if it's sys admin scripts etc.
Ie you'd write a script to check if program X, Y and Z are running, and user B is logged in, if so, log a message.
That's a script.
An HTML parse tree is not a script!
You guys need to go and study compilers. If you understood compilers you would realize how ridiculous this distinction you're making between "programs" and "scripts" is, and how it's just not valid.
You see? Scripts are AUTOMATIONS. It's not always strictly used to mean automations within another program, although that is the actual definition. Ie, the old IRC chat client mIRC has a SCRIPTING LANGUAGE. It doesn't compile. It runs automations in the program, mIRC.
bash script runs automations on linux. It doesn't compile.
python DOES compile, but we would still loosely say "script" if talking about sys admin scripts etc. Not parse trees!! That is a program.
Python could be compiled to machine code. This isn't some limitation. It's done ON PURPOSE, because it's faster to develop and more portable. Compilation takes a long time when you have large systems and it only works on the system you compiled it for.
You also have advanced run time features in a language that's compiled into byte code instead of machine code and run on a VM.
Last edited: