Hacker News new | ask | show | jobs
by erez 3679 days ago
Never could understand who doesn't put code examples on the main webpage of their language site. Especially seeing that their 'hello world' example is not really telling us anything.

It's like they are ashamed of the language they created and would rather hide it than display it.

2 comments

I agree. The first thing I want to see when I hear about a new language is what it looks like. The second thing I want to see is what its unique features or selling point is. Third thing I want to see is what that looks like in code.

What's worse is that most languages that don't show code samples on their front page also usually don't seem to have easy to find example code. Language tutorials/references are very bad at giving you a feel of what a language is like because they don't give a complete program that shows off how features interact (usually they show features in isolation) and I don't want to have to dig through your code repository to hopefully find some sample code...

Thanks!
Came here to say the same exact thing. It's plain inconvenient to have to go to the github page to view an example when they hint towards it with the one line of code on the front page. Ideally, it would be nice to have a whole page on the site devoted to examples with a sandbox so you can play around with them (although this is often difficult to implement). It's not just about looks, if I'm going to install the language I want to have some short code to run as soon as I download it instead of having to start with the docs.