News for hackers. Stuff that matters.
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.