Better HN
topnewbestaskshowjobs
Log inSign up

T-R

1,407 karma · joined Jun 14, 2010 (16y ago) · 438 submissions

Submissions

comment 13y ago · link · parent

As a data point, when I worked in Japan, most of the code was written in English (variable names included - the language was mostly Java or PHP), with heavy commenting in Japanese. Granted, this may have been swayed from the fact that they often worked with Indian developers, but also, a lot of technical language in Japanese is adopted from English. Popular languages there are the same as anywhere else - Ruby's creator is Japanese, and a high school student I know there was being subjected to COBOL.

There is a Japanese programming language, Mind, which is a stack language written entirely in Japanese, though I don't think it ever gained popularity. It's kind of sad there hasn't been more exploration into this - there's a lot less impedance mismatch in going from Japanese (or Korean) to postfix than there is going from English to prefix.

http://en.wikipedia.org/wiki/Non-English-based_programming_l...

comment 13y ago · link · parent

Sorry for the trouble, working on getting it back up.

comment 13y ago · link · parent

Thanks for the feedback!

We'll definitely be iterating on how we rank and present viewpoints to try to reduce bias. We don't want to remove indicators of popularity entirely, though, since that would reduce the utility of the site for readers who are still trying to decide. We do intend, though, to at least provide enough information for users to judge where there may be bias for themselves, and we'll try to eliminate it where we can.

comment 13y ago · link · parent

We've got a topic on it over on Slant -

http://slant.co/topics/446/~what-is-the-best-alternative-to-...

comment 13y ago · link · parent

The difference is that the first works with all of the native list functions, as well as all of those in e.g., underscore, without any extra work. The latter doesn't. Now, the latter certainly offers some other features, but my point was that, in specifically building an HTTP server, it's been my experience that those features aren't of as much use as being able to use the native list functions to, say, map a log function onto the list of functions, or reduce while halting execution under particular conditions.

comment 13y ago · link · parent

Just plain-old native functions - that's the whole point.

comment 13y ago · link · parent

I think his point is that there's usually a very strict ordering to the events on an HTTP server - you parse and sanitize your input, make some database calls, and generate a response - at best, letting something else do the sequencing and composition for you doesn't gain you much, as it might in a reactive GUI. At worst it leaves room for subtle bugs or code that's less clear (arising from the statefulness of the Promse object itself).

Using a Promises, as opposed to reducing a list of computations async-style, also limits you to the Promise object's interface, so you lose (or at least add cruft to) the flexibility and composability of using native lists. By sequencing computations with lists, if I want some insight into what's happening, I just List.map(apply compose, logFunc). With promises, I have some work to do.

Promises have their uses, but it's definitely a tradeoff, and for most HTTP servers, I'd argue that their utility does seem a bit limited. I'd similarly say that making a point of using FRP to build a server would probably be a bit overkill for the task.

comment 13y ago · link · parent

Does Heroku Postgres support PLV8 now? In the questions section of the presentation, he doesn't mention it as unsupported, but as recently as Sept 2012, it wasn't [1] - has that changed?

[1] http://stackoverflow.com/questions/12593080/heroku-hosted-po...

comment 13y ago · link · parent

Not sure why you're so insistent this is a non-problem (to the point of implying that I or my housemates have personality issues, much less) - it's not like we haven't tried cash. It sucked, so my housemate made an app, and it's awesome.

> Do they go grocery shopping?

Not really - in college most people relied on the meal plan. At the house, we make heavy use of Amazon and Instacart. Those who do shop still don't enjoy having to remember to get cash and make change.

> Sounds like a personality issue

People forget, or just forget to grab cash, because it's not something they normally do, and no one enjoys playing debt collector. WePay can hold balances, too, so the app is basically just a more convenient version of the whiteboard, but with the extra feature of saving a trip to the ATM.

If obtaining cash was somehow related to a personality issue, but that person was otherwise a good housemate, it'd be worth it to throw some technology at the problem and make it a non-issue.

> checks

People are more likely to have a computer, so there's no need to add paper and OCR into the mix when there are better options.

> and then pays 4%

Only if the retailer is passing the transaction fee onto the customer, in which case they can pay with some other method.

People paying debts can link a bank account, so their transaction fee is maybe 50 cents.

comment 13y ago · link · parent

Yeah, really. For one, no one in the house carries cash, and no one wants to - that was even more true in college when a lot was paid for via campus ID. Not everyone has transportation to an ATM, either.

More importantly though, when people are splitting bills more than twice a week (often with different subsets of the group), getting paid back isn't just a pain, it gets to be a source of tension in the house - really quickly no one wants to split bills, because no one wants to have to harass their friends about money.

With the bill split app, the person who pays racks up reward points on their credit card, and all they have to do is type in how much everyone owes, and that's the end of it. Everyone else clicks a button and they're paid up.

comment 13y ago · link · parent

You can opt to connect a bank account to WePay instead of using a credit card, dramatically reducing the transaction fee.

comment 13y ago · link · parent

Bill split apps are really nice if you live in a shared housing/dorm type situation. At our hacker house, we're always going out for dinner together, or sending someone out to get food, or ordering groceries on Instacart - saves so much time not having to use cash, or keep track of who got what beforehand. Really wish this was an option while I was in college.

We've been using Split&Pay ( https://itunes.apple.com/us/app/splitandpay/id593386557 ) - payment is really smooth (just click the button in the e-mail and you're done), particularly since we all already have WePay accounts, since that's how we organize our rent payments.

Full disclosure: Author of the app is one of my housemates, and founding engineer of WePay.

comment 13y ago · link · parent

Good point. We plan to add something along the lines of "counterpoints" ("X does Z badly"), and we have other viewpoints ("Y does Z well"), but directly pointing users toward solutions that solve those counterpoints ("[take a look at Y, because] Y does Z better") isn't something we'd considered. I'll definitely keep that in mind as we hash out the counterpoints idea a little more. Thanks kindly.

comment 13y ago · link · parent

Great ideas! Thanks kindly.

comment 13y ago · link · parent

Thanks for the feedback.

Regarding sockpuppet accounts and the like, we do have that information - some of it will get more visible as we build out profiles and moderator tools, it's just been on hold while we focus on more user-facing features, since it hasn't been an issue yet. Account validation e-mails are also on the way.

Spam is definitely a concern, but we hope the fact that most content requires acceptance from another user before getting visibility will put up some barrier to entry, and in the cases where it's not sufficient, it should help us get some information on associated accounts. In cases where that fails, there's always manual moderation.

Regarding astroturfing, we welcome it, to some degree - we don't expect each viewpoint to maintain NPOV, we just want to make sure that each viewpoint gets visibility. Cons/criticisms will eventually broken out into a separate feature to reflect this.

comment 13y ago · link · parent

Thanks for the feedback. One of the projects that our front-end engineer is currently working on should fix this issue, though it may not be live for a few days. Very sorry for the inconvenience.

comment 13y ago · link · parent

The timeframe for getting citizenship in Japan is quite long, and from what I've heard from all those I know who have it, largely not worth it - if you don't look Japanese, you will generally continue to be treated as not Japanese. Landlords who refuse to rent to foreigners on the basis that you might book it out of the country will still not rent to you, and customs/immigration workers will still consider you a foreigner. It also just potentially introduces you to a new set of bureaucratic problems, all with forms that simply don't account for the possibility of a non-Japanese name.

comment 13y ago · link · parent

- Most likely they're doing specific financing: whenever you pay with a card (or with your cell phone) in Japan, they ask you how many monthly payments you would like to pay over. There's also a general aversion to going into debt - cash and debit cards are generally preferred over credit cards in Japan.

- I'm not sure if I'm thinking of the right 'fake beer', but marketing of food products in Japan has lately been heavily skewed toward 0 calorie food and drinks. I'm not sure this is entirely fueled by reduced purchasing power.

- The internet in Japan is still very much limited by the fact that it's still primarily browsed via low resolution cell phones. It's getting better, but a fair amount of sites were written for C-HTML/i-mode-HTML, and laptop browsing experience suffered as a result.

- The effect of fringe groups on trends plays out differently in different industries. For Anime, shows with more mainstream appeal are actually hard to find now. On the other hand, in Japan, Anime has always been less mainstream than Manga - people who read a series as a comic book often find the TV shows to be watered-down, or don't find the voice acting to their liking. So, it's more just that a medium that's always had fringe appeal is doubling-down on it. That is, it likely would have happened even without reduced mainstream purchasing power - otaku, who actually buy merchandise, are just a more profitable group to market to.

With fashion and music, it's more that the fringe groups have bought the power to influence mainstream habits - plenty of people who aren't otaku but enjoy AKB48 and Perfume. Many shop at d.i.a. but aren't gyaru (at least not to the extreme the author portrays them as) - just trying to be fashionable, particularly in the short period of time between being in school (with black hair, uniform, and no piercings) and working (with black hair, uniform/suit, and no piercings). The increased availability of foreign brands also has an effect - by moving toward more extreme domestic trends, brands can better distinguish themselves from foreign competitors: with the surge in popularity of K-Pop, it doesn't make sense to try to compete with more of the same style of music.

I don't disagree with the general premise of the article, but I think its tone comes off as a little extreme at times - things aren't so bad there that mainstream purchasing has disappeared, it's just shifted toward some very distinctly Japanese trends, which were popularized at least in part due to the disproportionate spending by those groups.

comment 13y ago · link · parent

> My only wish now would be to include a full keyboard (with pgup, pgdown, home, del in their own row)

Curious, why do you prefer them in their own row? I look explicitly for keyboards with them overlaid onto the arrow keys, so I don't need to move my hands (just use the fn key) to navigate text.

comment 13y ago · link · parent

Phones do come with email addresses, and that's primarily used instead of text messages, but there is SMS/MMS (at least, I'm pretty sure that's what Softbank's S!Mail is, though, I get the impression it's mostly just used in-network, by people on family plans). Also, Naver's 'Line' is particularly popular for messaging right now.

comment 13y ago · link · parent

Definitely odd that they didn't at least go with "Rakuten Buy.com", as they did with play.com...

comment 13y ago · link · parent

That's not a name change, per se - Rakuten (楽天) is Japan's largest e-commerce site, and recently has been expanding overseas. They also own Play.com, Linkshare, and Kobo - it appears they've decided to get all of their websites under the Rakuten branding.

http://en.wikipedia.org/wiki/Rakuten

comment 13y ago · link · parent

Also, a preemptive apology for the fact that the site currently requires Javascript - it's being worked on at this very moment.

comment 13y ago · link · parent

That's great to hear. Thanks for the heads up.

comment 13y ago · link · parent

A large part of the reason that many APIs fail at content negotiation has to do with the fact that many clients don't support it properly. Chrome in particular completely ignores the Vary header (and its devs have marked the issue as "won't fix"), so it's not practical to have the same URL respond with different media types based on the Accepts header (it overwrites the cached item, so the back button doesn't work properly). Many APIs compensate for this by putting the format in a query parameter.

comment 13y ago · link · parent

If I recall, I think the over-styled but less-usable drop-down list was a deliberate decision, much like the call to setTimeout.

(I'm a housemate of StuieK and Firehed, and also contributed to the page)

177.

Show HN: We're building a home for subjective programming topics(slant.co ↗)

10 points · by T-R · 13y ago · 1 comment

comment 13y ago · link · parent

Hey - I'm the back-end engineer for Slant.

Thanks kindly! We're just getting started, so any feedback you might have would be tremendously appreciated.

comment 14y ago · link · parent

An excellent and practical article. I do want to emphasize one thing, though, since I feel like the article almost seemed to downplay its significance:

MongoDB does not support joins; If you need to retrieve data from more than one collection you must do more than one query ... you can generally redesign your schema ... you can de-normalize your data easily.

This is a much larger issue than it seems - nested collections aren't first class objects in MongoDB - the $ operator for querying into arrays only goes one level deep, amongst its other issues, meaning that often-times you must break things out into separate collections. This doesn't work either, though, as there are no cross-collection transactions, so if you need to break things into separate collections, you can't guarantee a write to each collection will go through properly. (Though, I suppose if you're using the latest version, you could lock your whole database)

comment 14y ago · link · parent

I'd maybe argue that "framework" is a bit of a misnomer - Opa is a programming language based on ML (it was originally called MLState) where the compiler determines/enforces what runs on the client or server. It originally compiled down to native code on the server via OCaml as well as front-end Javascript, until the more recent switch to using Node.js on the backend. A lot of the security benefits it offers likely come from the type system (with type inference), probably similar to building a site in Haskell (compile-time errors on unclean strings, type-safe URLs, etc.).

Along side of this, it includes a slew of libraries and tools for doing things like authentication, interfacing with specific web services, and building websites, which is why it seems they've started to focus on the "framework" aspect.

1
567
15