This seems really awesome! I feel like descriptive, long variable names have both an advantage and a disadvantage: advantage, obviously, that they're clear, but disadvantage that simply having all that filler text everywhere begins to make the code harder to follow in a serious way. So there's always this tug-of-war between short variable names that make flow easy to follow but require a lot of context or guessing to decipher and long variable names that obscure flow.
Math (and languages like APL, K) are extreme examples of this: as an aid to thinking really hard, they go to extremes of dense notation requiring lots of context/previous to even begin to understand what's going on.
Using Chinese characters in normal code seems like it could fairly painlessly (once you knew Chinese!) get you a lot of the advantages of small-space characters while still encoding a lot more helpful context than a single latin letter.
I read Japanese (I think this is Japanese in this case - it just happens to use a subset that is also Chinese - maybe).
This code is definitely easier to parse visually for me. It's really satisfying. As a character set, it is much more information dense, it just requires a lot of upfront study making it less efficient in the short to medium term (~10 years or so).
However, I would hate to work on a codebase like this. It is a key press to switch between input methods (languages), or a key combination on different keyboards.
When combining this with vim I find it incredibly frustrating to type.
You have to mentally keep track of which language you are in, as well as which vim mode you are in, 4 options instead of 2. Plus you have to be in English language mode for vim commands to work correctly.
Although it is true that you spend more time reading code than writing code, it would obviously exclude those that don't read Japanese.
It would be a nice-to-have to be able to have Japanese variables only for the reading phase of a project when you are getting up to speed. Then swapping them out for English words when editing. Can't see how it would work in practice and a really limited market too.
I use long variable names all the time and it's never actually made the code harder to follow. You generally parse a whole word as a shape rather than one letter at a time anyway once you know the word, so effectively the only difference is a bit more horizontal space. If someone grew up using whole words as variables in math I doubt they'd find single characters easier to work with.
For programming, using characters not available on a standard QWERTY keyboard is bad international code shareability.
I'll just say this definitely doesn't agree with my experience, though it's certainly the kind of thing that might differ from person to person, brain to brain.
Here's one thought experiment: imagine variables get longer and longer and longer. Clearly, at some point, they become so long that they're much more unwieldy to work with. Now it's just a question of, as they get shorter, when do the gains start to become insignificant?
(Re QWERTY: Ease of input is certainly a consideration, but hardly an insurmountable problem. We should not forever restrict ourselves to basic latin because that's what happens to be printed on many physical keyboards at this moment.)
In the kinds of jobs I've gotten, I spend more time reading code than writing code. As such long variable names are very helpful as I have less information I need to commit into my mental working memory.
Even when reading code you wrote yourself, long variable names can be immensely helpful.
I was working on some code today which I wrote a couple of months ago and came across some fields in a struct I had made, two of the fields were named like something_d_foo and something_d_bar (with something, foo and bar being strings which I've replaced in this comment). These names describe a relationship of something to foo and bar. When I read the name I had given it, I thought these were the somethings DISCONNECTED from their foos and bars but a comment I had written beside each of them informed me that they were the DEFAULT somethings of the foos and bars. I promptly renamed the fields as something_default_foo and something_default_bar.
I think long names are relative. Jokes like these[1] don't come from a vacuum. I've seen serious code with sentence-long variable names before, and it does make it hard for me to read at a glance.
I bet it'd be fun to just choose characters at random, with reckless disregard for inadvertent meanings downstream.
Somewhere down the line, watching someone read a blog peppered with snippets of your code inducing incongruously deep belly laughs across the gulf of a langage barrier would be fulfilling in its own weird way.
It looks like those characters literally mean "to bear fruit" - and in English, fruit is also used figuratively to mean a result, e.g. "fruits of labour", so I wonder if either English or Chinese was inspired by the other, or if they independently came up with the concept relating fruit and result.
The Spanish and English dual meaning both comes from latin, so the similarity in other languages with influence from latin does not provide any evidence in support of this idea developing independently (nor does it provide evidence against it).
Looking up the Chinese etymology seems to imply both the Latin and Chinese probably came to have the dual use for the same reason (agriculture leading to equating labour with resulting in fruit/produce), without any obvious direct connection.
Who knows... It does seem a quite logical step for new agricultural societies to make that connection.
Neato! Given that Bemmu live in Japan, I think he intended using the Kanji characters as Japanese characters, although they were originally derived from traditional Chinese (still used in Taiwan).
> I think he intended using the Kanji characters as Japanese characters, although they were originally derived from traditional Chinese (still used in Taiwan).
And in Hong Kong where I live.
I can't read Japanese, so the characters above just happened to retain its meaning after being imported to the Japanese language. I know that many don't.
I heard about http://recursivecharacters.com last week at a lisp meetup. Just an art project, doesn't actually have an evaluator, but the author went to some detail to describe how an evaluator might work.
Heh, that's cool :) However, it makes my Firefox crash about a second after the page loads :( I feel a bug report coming on, after checking the latest nightly build...
8 years! It was still called "Startup News" back then. The front page when I joined looks very much like it does today -- a few articles about Google (6!), some startup-y articles, some politics, some business-y articles, some pure programming articles, etc. A good mix, but things are still pretty good today.
I remember exactly why I joined, incidentally. With increasing regularity, /r/programming was making me very mad. I would post a detailed correct answer to someone's question, only for some troll to immediately reply with some insult and "proof" that I was totally wrong, even though the proof was totally wrong. It happens once, fine. It happens every single time I comment, I'm out. I have not been back in 8 years.
I will admit this happens from time to time on HN, which is unfortunate because I like to comment and really only know what I'm talking about when it's programming-related. But it hasn't made me mad enough to leave, only to nostalgically think back to the good-old days.
(I did start using Reddit again, too, but I only read unpopular subreddits. I can handle /r/AskReddit for some time killing, but things like /r/flying and /r/amateurradio are very pleasant communities with enough activity to be interesting a couple times a week. /r/anime is infuriatingly stupid, /r/awwnime is much more tolerable.)
6 years for me -- the mix of articles is indeed similar, though the titles show how the vibe of the community has changed. Back then it really felt like a gathering of plucky upstarts and misfits. We were into a lot of things which are mainstream now, but niche and weird at the time.
"Paul Graham and Y Combinator are on the cover of June's Inc Magazine" - this was exciting news back then! YC was a really speculative effort, even in the tech world. I wish I'd applied in the early days!
"Chrome Now Available for Mac or Linux : Hackers Only" - goes to show how many established products were back then only used by the nerdy early adopters
"20 Developers to follow on Twitter" - again, back then I only knew a few people outside of tech circles who used Twitter, and a lot of people hadn't even heard of it
"How I Got A Job From A Blog Comment" - this also wouldn't be news today
"Google Wave “is anti-Web”" - one speculative product that didn't make it
It's interesting looking back. I discovered this place as a first year CS student, and startups as a career path were not on the radar for 95% of my classmates at the time.
Rails was still fairly unknown, IE6 was a big problem for web developers, jQuery was the exciting new Javascript framework. All this meant that the standards for web apps were lower and it was easier to ship an interesting hack and get people to check it out.
> /r/anime is infuriatingly stupid, /r/awwnime is much more tolerable.
Well that's not too surprising when the latter has almost no comments. You could try r/trueanime - it's smaller and smarter, though it does tend to attract long-winded people.
What anime community do you use now? r/anime was always terrible. I've "outgrown" 4chan, but /a/ is still the best community I know of. I mostly just do my own thing and talk to my few friends who also watch.
It only approximates the date you first joined. It uses https://archive.org/ (the Internet Archive) to load the archived page nearest to (or nearest before?) the date you joined. Since the Internet Archive does not mirror HN every day, the page it will show you may differ by a few days from your exact signup date. It so happens that I joined on March 11, 2009 but I was shown the page for March 10, 2009 instead. You can use http://www.waybackhn.com/ to get a list of the top stories on the exact date you joined HN.
I joined 8 years ago, and the topic selection is not markedly different in nature, which I find remarkable. Then again, there's a reason I'm still here and not e.g. Slashdot, which I started following even earlier.
That's one of the things that struck me. Of the headlines that came up for me for March 2010, there were only a couple that would seem out of place today. (One related to Flash on an iPhone and one to the network at PyCon 2010.)
"The reason I chose today to drop out was because of a conversation I had with pg last week. He said bluntly that Octopart's chances of getting funding were worse if I stayed in grad school."
Classic. Top story the day I started, "I Dropped Out of Grad School Today" @sam (octopart) [0],[1]
Sorry, your username was not found. Maybe you have never submitted or commented anything.
user: edw519
created: 3070 days ago
karma: 72254
about: Free ebook, "The Best of edw519": hn.my/edw519
twitter: @edw519 http://twitter.com/edw519
e d w 5 1 9
a t
g m a i l
https://hn.algolia.com/?query=edw519&sort=byDate&prefix&page=0&dateRange=all&type=comment
5,008 results
I'm a pretty big fan of one that got posted here about a month ago, waybackhn. It chooses random day/months/years and shows the front page for either. I've spent a lot of time reading through old stories and comments from years before I got into this field. It's opened up my mind a bit to see what people were talking about years back.
Oddly enough on my first day the OP of this post (bemmu) first posted (I assume) about his Candy Japan business (https://news.ycombinator.com/item?id=2745694). Funny how that works out.
Wow, I guess I showed up pretty early. I still remember going to Startup School in 2007 and being so excited and inspired that I quit my job a few months later.
Note: I probably should have stopped following startup news after the first year or so, I don't think anything I've read after that has been that beneficial, it's just an addiction at this point. I went to Startup School for a second time in 2008 and realized that I didn't need to be there, I was trying to recapture a feeling -- but after the initial inspiration I just needed to get busy.
Why we made this site
34 points by pg 5 hours ago | 7 comments
Odeo up for sale (so they could focus on this Twitter thing)
These throwbacks have a way of being very topical. 12th item on Hacker News that day for me is "The Next SourceForge": "SourceForge has been rethought, reimplemented, and rejuvenated."
Funny how the day that I joined so many years ago, people were debating whether or not Google would buy Twitter, and today that debate has been resurrected again so recently.
And if you'd like to learn some Chinese, here is the definition of all Chinese characters appeared above.
---My pick: 'HNSearch – old HN search engine – will be shut down later today'.
https://news.ycombinator.com/item?id=7404972