4 ms·
I agree, but for anyone who's looking, here's the Hello World page. https://tutorial.ponylang.io/getting-started/hello-world.html https://tutorial.ponylang.io/
by makeworld 6y ago
I agree, but for anyone who's looking, here's the Hello World page.
https://tutorial.ponylang.io/getting-started/hello-world.html https://tutorial.ponylang.io/getting-started/hello-world.htm...
- ajkjk 6y agoHmm > Pony doesn’t care about filenames other than that they end in .pony. But it might matter to you! By giving files good names, it can be easier to find the code you’re looking for later I cannot imagine anyone is going to be learning to code from the first time from this Hello World page. Although, the rest of the page is very much not for beginners, so maybe this was a fluke. Often with new programming languages I wish they would present themselves in the form "Here's what you need to know about this language if you're already a professional developer" instead of an actual tedious tutorial.
- dkarl 6y agoThat comment might be for programmers coming from languages where filenames do matter to the compiler, or languages like Java where the convention is so universally followed that many programmers don't know you can break it. Someone programming for the first time already "knows" that filenames don't matter, so it's probably not for them.
- Kwpolska 6y agoIn Java, the “each public class is in its own file named after the class” rule is enforced by the compiler and there’s no switch to disable this behavior.
- dkarl 6y agoI guess that shows how uniformly the convention is followed that I wasn't aware of that! I remember finding a class in a PR that had been renamed without renaming the file, and we were surprised it compiled. It must not have been a public class. $ echo "class Bar { }" > Foo.java $ javac Foo.java $ ls Bar.class Foo.java $
- pjmlp 6y agoThat is not a public class. If you don't specify any access modifier, it is the same as internal in .NET.
- pjmlp 6y agoTrue, but many don't realize that package private and "friend" classes can share the same source file.
- openfuture 6y agoGood thing we had you here or there'd have been no world to say hello to.