Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5273

Python • Re: Is Python the best choice, instead of C or C#?

$
0
0
Just be warned, as a well-known contributor here (of some experience) says:

"Languages using left-hand whitespace for syntax are ridiculous."
Oh, are you thinking of viewtopic.php?p=2123117#p2123165 ? Does not convince me...
He's right - often I have to correct "errors" in my Python code that are literally only "adjusting left-hand whitespace".
When one corrects errors, it is most likely that other errors exist in the vicinity (portion of code was typed while one was not concentrated). This does not convince me either.

Historically, RPi made huge efforts to make python popular. It is shipped with a simple, comfortable IDE and support is very good (for C°° too!)
The left side space "issue" is not an issue;
well indented pieces of code can be read easily. Python is therefore easy to read. One can reformat C/C++/Arduino (they added a button to left side indent: shows it is useful) using indent or astyle. It is almost impossible to reformat bad python : people get used in writing readable code...
Both python (>=12 years) and simplified C++ (arduino >=17 years) are taught in France...
Maybe the best choice is "both" python and C°°

Statistics: Posted by dbrion1 — Sun Feb 04, 2024 8:47 am



Viewing all articles
Browse latest Browse all 5273

Trending Articles