Hell, they’ll probably put that on a resume, and someone will hire them.
Hell, they’ll probably put that on a resume, and someone will hire them.
Scripting languages are often considered to be very high level and can commonly run without compilation. Making them great to automate tasks or create a simplified interaction/abstraction layer to a more complex program.
Then Python is not a scripting language.
Programming languages usually have much lower level access, and by extension they tend to be more complicated. In exchange for that, you get much more control.
Would you consider C to be more or less complicated than Perl?
Yeah, once you know all the details, the distinction disappears. The term doesn’t clarify understanding.
If I had to make a distinction, it’d be that scripting languages are meant to be a simple way to serve a specific niche. Things like SQL or Excel formulas. It doesn’t apply to Python.
What’s the difference between a scripting language and a programming language?
Python: I’m so readable that I’m practically executable pseudo-code
Also Python: if __name__ == '__main__':
. . .
I’d say the term “procedural” itself is an issue. Pretty much any language can be done that way if you choose. IIRC, the creator of Clojure wanted Java to work more that way, and he did it by having a single class full of functions. It’s not a natural way to write Java, and that’s why he invented Clojure.
Procedural and OOP aren’t mutually exclusive terms. Most OOP programs are ultimately procedural in nature. Often, the only difference is that the first argument to the function is to the left the function name and separated by a dot.
The -i
option is simply interactive mode. All commands still go through a compiler.
That is not how Python works. There are very few languages that work by executing line-by-line anymore. Unix shell scripts are one of the few holdouts. JavaScript also does it to a certain extent; the browser starts executing line-by-line while a compiler step works in the background. Once the compiler is done, it starts execution of the compiled form right where the line-by-line execution left off. It helps JavaScript be more responsive since it doesn’t have to wait for the compiler to finish.
What would make it “object oriented”?
What’s the difference between a “scripting” language and a “real” one?
Only took 27 years to make the Java “Hello, world!” kinda sane.
There are scripting extensions to SQL that definitely are. There are some features in some SQL servers that make it Turing Complete even without scripting stuff.
https://stackoverflow.com/questions/900055/is-sql-or-even-tsql-turing-complete
Like HTML5+CSS3 being Turning Complete, it’s easy to add features that accidentally make you hit the threshold. Many would argue that it’s a sign complexity has run away from you, and I tend to agree.
Insulting, but also correct. What “knowing” something even means has a long philosophical history.
This is (theoretically) a programmer forum. I use the programmer definition. By that definition, not having an algorithm is nonsense.
Yeah, I don’t like that one, either.
I also hate the way “algorithm” has taken over the public consciousness. You can find people unironically saying “I don’t want any algorithm in my social media feed”, which is a nonsensical statement.
There isn’t a lot of difference between age groups and Trump support. Some, but not a lot.
Women aged 45-65 (mostly GenX) stick out as being more pro Trump than other women. Men are about the same across age groups.
Nothing like that in ARM. Even microcontrollers have enough RAM that nobody cares, I guess.
No, I’m trying to get people to think. If I laid out my full opinions on this subject (compilers and interpreters aren’t that different anymore, even machine code often runs more like bytecode in many ways, “scripting” is a term that hides what’s actually going on, etc.), then people get into endless debates. My questions are designed to pick apart assumptions.
Admittedly, people didn’t appreciate when Socrates did this shit, either.