r/PythonLearning • • Jan 14 '24

how is this better

Post image
0 Upvotes

8 comments sorted by

7

u/future_gohan Jan 14 '24

Print("context")

1

u/CraigAT Jan 14 '24

It's less characters to type (for Python).

What are you trying to prove?

1

u/[deleted] Jan 17 '24

No language is better than another, remember that (for the most part (ignoring VBA)) languages are an engineering science - developers spend months creating a language to provide a solution to a specific problem...

C# - Mid level language

Shares similarities with python but can do more

It's quicker in processing, which is why it's used in game engines and some robotics

Python - High level language

Very easy to read, hence why it's so popular with scientists

Slow (in comparison) to process and not recommended for robotics due to it needing an interpreter and is actually illegal in many countries to use high-mid level programming languages in automation due to the poor processing time.

C++ - Mid - Low level language

Less easy to understand but allows the ability to directly reference memory locations via pointers (you cannot do this in any of the above languages). So rather than going through a bunch of functions and translators to 'flip a bit', you can do it directly.

Much, much faster and more powerful as you have direct access to the OS and memory.

Common in many robotics

(this still isn't fast enough for, say, fully automated monorails but I don't know what language that is)

1

u/[deleted] Jan 16 '24

[removed] — view removed comment