7,416 karma · joined Oct 23, 2009 (17y ago) · 1,582 submissions
Email: charles@codemix.com
comment 13y ago · link · parent
You made this post https://news.ycombinator.com/item?id=6183189 and one of the admins arbitrarily decided that you needed silent punishment. nice eh?
comment 13y ago · link · parent
{
"_type": "int",
"foo": "123"
}
a JSON parser will always know how to represent that object. How you process that object is up to you.However, when you write:
{
// @type int this is a comment
"foo": "123"
}
and you call JSON.parse(), what would you expect to get back? You can no longer represent it as a simple object, you need some way to access the comment, how do you do that? Moreover, whose responsibility is it to process the annotation in that comment? the parser's? Should you get back an integer rather than a string for obj.foo? how would you support different types of annotation? What happens if you're using parser A and your client uses parser B? Does parser B support all the annotations that parser A supports? If you need to modify a JSON structure, e.g. JSON decoding, adding a property and re-encoding, should the comments be preserved? ...You can see that having comments introduces a whole host of other questions, ambiguity and would only make it harder for different platforms to share data. Avoiding this kind of cruft is why JSON is winning vs XML for most things these days.
comment 13y ago · link · parent
The reason her story was denounced by a few people is because those people had not let their ability to think critically be clouded by the current NSA/Snowden frenzy.
comment 13y ago · link · parent
comment 13y ago · link · parent
The BBC has huge traffic and is required by law to moderate its comment pages. Some subjects (like this one, or anything to do with Paedophiles, Religion, War etc) will trigger an enormous volume of comments. It's simply not possible for the BBC to moderate them all, so they have to make the difficult decision to turn the comments off.
comment 13y ago · link · parent
Whether the French tax rate is too high or not is not relevant. The question is, should a foreign company be given an unfair advantage compared to a local company? I would hope your answer is 'no'.
comment 13y ago · link · parent
Obviously (most) governments want to avoid a situation where a foreign entity is strong enough to destroy any local competitor and on top of that, contribute nothing back to the economy in terms of tax revenue. It's completely ridiculous.
If you deliver goods and services in a country, you should expect to pay the appropriate taxes in that country. It is completely unjust that Google et al can do this kind of thing, it puts local companies at a massive disadvantage.
comment 13y ago · link · parent
I'm still confused about your coding standards point, considering that the core framework is pretty consistent, just that those standards are mostly not written down. Also, for future reference, you can copy the Gii templates and edit them for your needs, the default templates are simply meant as reasonably sensible defaults.
comment 13y ago · link · parent
While there are significant numbers of Chinese and Russian Yii developers, it's always been an English first project, all documentation is in English (as well as other languages) and almost all 3rd party extensions are written in English too.
Regarding coding standards, Yii 1.x code does indeed have quite a cramped style and this (afaik) was never documented, it was more of an informal agreement between contributors to maintain a consistent feel. But why did you find this a barrier for entry when writing applications on top of it? It's only whitespace and of course, you're free to use your own conventions in your own code.
1256.
NationalSecurityAgency wants to merge 5 commits into yiisoft:master(github.com ↗)
6 points · by phpnode · 13y ago · 1 comment
comment 13y ago · link · parent
2. Because it feels good to share. I use a lot of other people's open source code, so I want to give something back.
3. Because I like the idea of my work benefiting millions of people every day, even though it's in a very small way and without their knowledge.
4. Because it's much more effective than a CV / resume. Potential clients (mostly) come to me, rather than the other way round, because they've already seen (or are using) my work.