Ask HN: Best features of your favourite language?
I've been hacking away at a scripting language for a while and I'm interested to see what language features from your day-today programming you like most?
I'll kick it off with:
Java 8 - Streams, collection processing.
TypeScript - progressive typing.
23 comments
[ 5.6 ms ] story [ 766 ms ] threadFollowing somewhere after that, are JS's prototypes, my first introduction to inheritance.
But then again, I don't know that many Languages and barely touched red. I'm only waiting for their gui backend on linux and then I'll dive right into the language.
To add to Elixir, I would say the ease of interoping with Erlang. It allows me to easily take advantage of the massive Erlang libraries that are built in (such as crypto) without having to do anything extra.
How you would address the person you speaks to depend on the circumstance:
- If you are a child and you are speaking to your parent, "you" would be "ba/cha/bố" (father) or "mẹ/má" (mother).
- If you are speaking to your sibling, then "you" would be "anh/chị/em" (older brother/older sister/younger sibling).
- If you are on the street and speaks to a person around your age "anh/chị" (even if they are the same age or younger than you a little bit, it's show polite to refer to them as if they are your older sibling). This show that you can express politeness through the usage of pronoun.
- On the flip side, if you are really casual, you can use "mày", which usually mean "you" but very impolite. Some people can take offense if you use this to refer to them.
- Also the word "you" translate to different word for each person in your family tree (same thing with Mandarin if I remember correctly) as you refer to people in your family by their relationship to you, and there isn't just a direct translation for the English pronoun "you" for conversation around the family.
One of the thing I appreciate from English is that you just need to say the word "you" when refer to the person you are speaking to. You never have to worry about the context of the conversation that you are having and adjust your pronoun usage accordingly. When I speak Vietnamese, I often just estimate their age and use "anh/chị/bạn" (older brother/older sister/friend" accordingly. Also I try to use their name in place of the pronoun, which can sound weird sometime.
On the other hand, you can get away by not saying any pronoun in some case, mostly very casual case.
Non exhaustive list can be found here (along with an in-depth explanation of how this mess works): https://en.wikipedia.org/wiki/Vietnamese_pronouns
Still learning, and there's not much out there in terms of libraries to interface with other tech, but its been enjoyable.
Seriously after using lisp, the amount of time C++ takes to link (much less compile) feels like an eternity.
The other usual suspects are nice, but a non-lisp with tooling that competes with slime I could still be happy with.
(other usual suspects):
The condition system: seriously every language with lexical closures should scrap their system for what common lisp has.
Macros: a bit like seatbelts or airbags; you can go for years without ever needing one, but when you do, you're really glad you had it.
(Sorry--not an response to question, explicitly, and thanks!)
Lighttpd and nginx both started to get mind-share in the english speaking world at about the same time (nginx was written by native russian speakers IIRC).
Lighttpd was faster than apache for the same reason that nginx was, a more modern, non-blocking design.
I don't think that lighttpd is written in lua though. It probably supports lua scripting, though I haven't used that feature of it.