Better HN
topnewbestaskshowjobs
Log inSign up

Scriptor

1,852 karma · joined Nov 10, 2008 (18y ago) · 533 submissions

Github: http://github.com/Scriptor
Submissions

comment 14y ago · link · parent

The Inuit snow thing is actually a common misconception and like you mention it comes from a difference in our understanding of what a 'word' is. The Inuit language typically uses suffixes to modify nouns. Also, the Inuit language can use one 'word' for what otherwise would be a phrase in English.

Wiki has more on it: http://en.wikipedia.org/wiki/Eskimo_words_for_snow

comment 14y ago · link · parent

There are tools that can cover this.

I'm curious, which tools can you use for this?

comment 14y ago · link · parent

So, what's so special about this? It's literally nothing more than a resizeable textbox that shows up where you click. Why does this merit my e-mail address?

comment 14y ago · link · parent

Well, you get your logo on the home page for a year, which could be very good advertising if the project becomes big. However, I have no clue how much the advertising would actually be valued for a typical company.

comment 14y ago · link · parent

C or C++ aren't competing with PHP. You'd have to look at Python or Ruby in this case. While it's definitely possible to write shitty code in those languages it doesn't provide nearly as many ways to screw up. Besides the lack of language features like @ (error silencing), you won't find nearly as many terrible tutorials out there created by some guy who's been learning for a few weeks and decided to write a blog post.

Given a poorly engineered PHP or Python project, I will always pick the latter. However, if I were to start a project on my own I'm confident enough in my PHP that the language choice is harder to make.

comment 14y ago · link · parent

And numerous compilers and interpeters and other system-level software.

The author might be talking about consumer-oriented software, but still saying that C isn't suitable for large codebases is very presumptuous.

disingenuous was the wrong word

comment 14y ago · link · parent

It looks like they've fixed the one for 1729.

comment 14y ago · link · parent

I agree with you on the landing page. The introductory paragraph seems rather "fluffy". That combined with the fact that it uses a whitepaper immediately gave me the feeling that it's not really meant as something for regular programmers to check out and hack with. It's surprising, since that's how many Clojure programmers get their start.

On the other hand, it's very new so maybe they'll add more developer-friendly pages soon. Or maybe it's only meant for "enterprise" environments? Time will tell.

comment 14y ago · link · parent

Reminds me of all the PHP tutorials floating around that only treat security as a side note. Essentially, the default configuration with Rails seems to be that users can set the data for any database column. It's almost as bad as register_globals...

comment 14y ago · link · parent

The issue seems to be a result of an entire hash of the parameters passed in the request being sent to the new method for models.

Is this really common practice in Rails code? Sure you can specify in the model that certain attributes can't be changed. But shouldn't this stuff be checked when validating form input? Normally I'd have a hash of filters, with the field/column name mapped to the appropriate set of rules for that field. Anything that's not specified in the filters doesn't go to the model's new method.

In this case, it's like the equivalent of PHP code where you santizie the data in $_POST and just send that whole variable to the database.

Choosing which fields are accepted shouldn't just be a model security issue, it's a form validation issue. This makes choosing whether an admin can change a field or not trivial as well. If a request is made as an admin, (maybe through a form that's only accessible by someone with an admin role) then you just apply the validation rules for an admin. Otherwise you apply the rules for a user.

comment 14y ago · link · parent

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

While the Mongol empire was split up after Genghis Khan's death, it didn't just collapse. There was a fairly long period of stability that followed.

comment 14y ago · link · parent

The Mongols may not have had cities (besides Karakorum, the capital). However, by the time Genghis Khan's conquests were under way they had a written alphabet, a very highly organized military structure, a complex legal code, freedom of religion, and a postal system that was unrivaled until the Pony Express was established in the US. They were generally far more sophisticated than you give them credit for and their system of warfare was more than just 'tribal'. Sure, they used hit and run tactics, but a great deal of logistics and organization is required to besiege cities.

Sacking cities and killing the inhabitants was nothing new. The Crusaders did it at the end of the siege of Acre during the 3rd crusade. Khan actually gave the cities he attacked a chance to surrender and be spared.

Also, the term "barbarian" is loose, vague, and sometimes downright irresponsible when talking about history. Different cultures have viewed others as barbarians throughout history. Unless we're talking about one of these specific cases (such as the Greeks calling those north of them barbarians, or the ancient Chinese calling everyone around them that) it's a meaningless term. Would you call tying peasants to the land and severely limiting their rights and freedom to even move around a barbaric practice? Or is it just cruel or unfair?

comment 14y ago · link · parent

We don't know whether any other genes have adapted in the last 10 million years to the lack of the pathway needed to synthesize vitamin C. Reintroducing the proteins for this pathway may cause unintended interactions with existing proteins.

Imagine a large software system that had a small mobile website. New changes to the code must be compatible with this mobile website and can't break it. Now imagine that one day this mobile website was taken out. Development continues but since there's no need to worry about the mobile site numerous incompatible changes creep in over time.

Now suddenly new management comes in and decides that the mobile site should be brought back. Clearly, as soon as they try to put it back in they run into every incompatible change ever made to the code and the whole thing becomes highly unstable.

So that's what (might) have happened in the body. With no worrying about whether a new mutation might negatively interact with the vitamin C pathway that new mutation can proliferate freely, especially if it is beneficial. All reverse-compatibility is lost.

comment 14y ago · link · parent

If you're just reading the source of the framework, why not just read the Coffeescript source instead of reading the generated Javascript code?

comment 14y ago · link · parent

Is anyone noteworthy saying that Java is dead, anyone providing good arguments for it? Otherwise this seems to be arguing against a straw man.

comment 14y ago · link · parent

For the average person who knows very little to nothing about SOPA, the phrase "anti-piracy" implies that the bill is specifically targeted against piracy-related matters. People might even assume that it would be effective against piracy. Imagine if voicing your opposition to TSA's expanding control and alleged infringements of rights was called, "So-and-so opposed to anti-terror bill."

comment 14y ago · link · parent

Thanks! :)

comment 14y ago · link · parent

Ah, makes sense if it can be used as a Twitter client as well. I guess it'd be an interesting challenge for Twitter to distinguish between automated Tweets and Tweets you actually posted but using something else. Anyway, I just signed up, looking forward to getting into the private beta!

comment 14y ago · link · parent

Not to forget "Follow new people". Do they have an explanation anywhere for needing all these permissions?

comment 14y ago · link · parent

Works well though some directions would definitely be useful. First make sure you mention that logging in through Twitter is required. Even better, don't make it needed at all. Tinychat currently lets you join and broadcast anonymously.

Second, make sure you mention that after changing settings for which camera/mic to use you need to turn the broadcast off and on again. Another option is to use a divider and put those in a settings box, then have an update settings button.

Otherwise, I really like the design! It seemed to have stopped working as I'm typing right now. Settings options aren't showing up and the chat doesn't work. Working on it right now?

comment 14y ago · link · parent

I disagree with that since the reasons are not purely political. PG believes that supporting SOPA shows a very flawed understanding of how the Internet works. Since many YC companies are web-based or rely on the Internet in other ways I think this makes sense. You can't knowledgeably invest in something with a very flawed understanding of it.

comment 15y ago · link · parent

https://github.com/Scriptor/pharen (Lisp -> PHP)

It's been a while since I worked on it, but I think I might start again pretty soon.

comment 15y ago · link · parent

I don't see any advantages for founders listed other than that having an apprentice frees up some time. It basically sounds like having an assistant that you also have to teach.

comment 15y ago · link · parent

It doesn't use CoffeeScript's syntax, but I work on Pharen, which takes a Lisp dialect and compiles it to PHP: http://scriptor.github.com/pharen/

205.

Lua Distribution(playwithlua.com ↗)

1 points · by Scriptor · 15y ago · discuss

206.

PyPy is faster than C, again: string formatting(morepypy.blogspot.com ↗)

233 points · by Scriptor · 15y ago · 76 comments

comment 15y ago · link · parent

There are different situations where commenting on looks is appropriate and when it isn't.

If the two know each other well as friends then that's just guys commenting on a woman's looks. The line between professional and friendly discussion in blurred anyway. Like you said, women do the same thing when amongst friends.

If they didn't know each other that well then all discussion should stay mostly professional. If a comment like this is made then it either indicates that the Director considers women's looks part of a professional appraising of their abilities or he is awkward at making conversation.

1
678
18