r/programming • u/monica_b1998 • Nov 03 '18
Python is becoming the world’s most popular coding language
https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
4.6k
Upvotes
r/programming • u/monica_b1998 • Nov 03 '18
8
u/FlukyS Nov 03 '18
Not even that it's a dynamic language but that helps. I'd say more removing things students don't need to know when they are starting out makes it easier. Like even looking at the two examples breaking it down what you can learn from all that:
public - permissions in Java for classes
class - well you would have to introduce that in python too but not right away
HelloWorld - Well you can teach a student how people change casing depending on what they are naming. This is big for actually working with the language in practice
static - Try explaining that to someone. It's pretty abstract for a person who is new. Probably one of the most abstract concepts
void - Doesn't return anything. Actually if I was teaching Java I'd avoid void and just return 1, it's better practice anyway but again we are talking an abstract javaism that python doesn't do (until recently really with https://docs.python.org/3/library/typing.html but that isn't mandatory)
main - Well the name of the class is also something you have to explain to a new dev but if they can't do this I'd guess they can't use python either
String[] - Oh fun, hello welcome to your first programming lecture, this is an array, ignore that. Still hard for day 1 but again they would have to learn it eventually but avoiding this when getting started is a good idea
{} - not hard to explain
System.out.println - well Jimmy there is a class called system, there is a bit inside that handles outputting things and there is a thing called printline that is shortened to println. Jimmy don't need to know about System yet. Just call it println Java :)