News for hackers. Stuff that matters.
Re:Hard-won lessons: Five years with Node.js by coldtea on Thursday April 20, 2017 @06:36AM (#14155495)
It's not just the types, it's the whole APIs, culture etc.

Java, for example, is no picnic, whether it can now infer some types or not.

In Python I don't even need a main().

Re:Hard-won lessons: Five years with Node.js by hota_mazi on Thursday April 20, 2017 @10:50AM (#14157143)
How is

    if __name__ == "__main__":
        main()
different from a main()?
Re:Hard-won lessons: Five years with Node.js by cookiecaper on Thursday April 20, 2017 @01:52PM (#14159068)
It's only needed if you're importing the file as a library/module somewhere.
Re:Hard-won lessons: Five years with Node.js by squeaky-clean on Thursday April 20, 2017 @12:29PM (#14158177)
You don't even need that.

  print("hello world")
will run just fine
Re:Hard-won lessons: Five years with Node.js by coldtea on Friday April 21, 2017 @08:24AM (#14164854)
It's different in that it's optional in Python.
Re:Hard-won lessons: Five years with Node.js by lmm on Thursday April 20, 2017 @06:39AM (#14155508)
I agree Java is a high-ceremony language, but not all statically typed languages are like that.