Better HN
topnewbestaskshowjobs
Log inSign up

phpnode

7,416 karma · joined Oct 23, 2009 (17y ago) · 1,582 submissions

Founder of https://codemix.com/ - authoritative product context which makes sure coding agents build the right thing and humans stay in control.

Email: charles@codemix.com

Submissions

comment 13y ago · link · parent

that would just be a ban - the hell in hellban refers to the fact that you don't even know that you're a victim.

comment 13y ago · link · parent

call them out in the thread, at least it highlights the issue to other people, even if the person in question doesn't see your post.

comment 13y ago · link · parent

turn showdead on in your profile. then whenever you see other people who've been banned unreasonably, tell them!

comment 13y ago · link · parent

turn on showdead and you'll find dozens of other cases where people have been banned for similarly egregious reasons. In some cases people go on posting for years without knowing their posts are dead. it's the most horrible aspect of HN.

comment 13y ago · link · parent

replying to beedogs because I can't directly:

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

better to delete it than hand it over if privacy was your selling point in the first place. if i were a customer, i'd be ok with this.

comment 13y ago · link · parent

unlikely to affect you if you're already embedding CSRF tokens in your responses, which would defeat caching anyway. Curious if this response length fiddling will mitigate the attack, can anyone more knowledgeable than me confirm?

comment 13y ago · link · parent

when you do

    {
        "_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

I'm confused by your point. Are you suggesting that we should assume everything we read is true until we have 'more facts' or 'additional insight'?

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

right - but that is valid syntax! any json parser can understand that, and that's what he recommends doing instead. But if you're doing this in comments, you end up writing your own mini language to describe your annotations, and nothing else knows how to parse it. that should clearly be avoided.

comment 13y ago · link · parent

Crockford's rationale for not supporting comments is that people use them to add meta data to the object (e.g. type annotations) which makes it hard to consume with different parsers.

comment 13y ago · link · parent

It's interesting to see that the references to twitter are basically gone now, presumably this means we'll see more things from `Bootstrap` in future, perhaps a company since it already has a lot of mind-share.

comment 13y ago · link · parent

Your post adds far less value. Please leave the snark at home.

comment 13y ago · link · parent

yes. just make sure you have another client ready to pay your current rate + X% and use that as leverage to increase your rate for your existing client to current rate + X% + Y%

comment 13y ago · link · parent

it is basically crazy to "out" your methods like this, this is grey hat at best and you're just asking to get banned. If you find an unethical tactic that works for you, milk it, don't shout to the whole world about it, you just expose how unethical you are.

comment 13y ago · link · parent

You imply that Linus was overdoing it, he wasn't.

Mauro wasn't asking for feedback, he acted in a way that resulted in strong negative feedback, that's why it's not really relevant to the rest of your post.

comment 13y ago · link · parent

This article is pretty awful, they are assuming that Monsanto is the buyer, they have no evidence.

comment 13y ago · link · parent

show me a bbc news article about murder, suicide, accidental death etc where comments are enabled? I couldn't find one in the few minutes I spent clicking.

comment 13y ago · link · parent

it's nothing to do with government pressure, it's simply an issue of resources.

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

As a French citizen, do you think it's fair that you get taxed at a high rate whilst some huge, billion dollar business pays significantly less in terms of percentage?

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

Your post is a tirade against taxation in general, it's not pertinent to the point at hand.

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

Unfortunately there isnt good PEG tooling in php, pegjs is incredibly easy to use so i can see why they went with it

comment 13y ago · link · parent

Ok I see your point regarding the conference, that was a bit annoying for me too.

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

Because people upvoted it. Also this is a relatively significant release with some important new features, e.g. redis cache support and password helpers

comment 13y ago · link · parent

I'm a bit puzzled by your post to be honest;

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

1. So that I never have to write the same code twice.

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.

comment 13y ago · link · parent

These sound like complaints that would have been valid 10 years ago, but not any more. Virtually every framework has the concept of "routes" that map URLs to appropriate logic, they're not document based (whatever that means)

comment 13y ago · link · parent

no. This is a story about an author succumbing to pressure to remove an article 9 years after it was written.
1
414243
53