HNHacker News
TopNewBestAskShowJobs

phpnode

7,416 karma · joined October 23, 2009

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

submissionscomments
phpnode··on Introducing node-firefox
Sadly dead - https://github.com/zpao/spidernode
phpnode··on Introducing node-firefox
at least get the guy's name right if you're going to take such a principled stand, it's Brendan Eich
phpnode··on Joyent now paying people to not switch from Node.js to IO.JS
Seems like a lot of people have flagged this article, I wonder which company they work for.
phpnode··on Joyent now paying people to not switch from Node.js to IO.JS
“IO.js, what’s that?”

This is a hilariously out of touch move by Joyent.

The major concern most people have with node.js is the governance model - the fact that a single corporation controls it makes a lot of people uneasy.

This thin ploy really highlights exactly the kind of company that Joyent is and really validates those concerns. They're not interested in working together with io.js, they're interested in using their corporate muscle to squash what they see as a competitor.

The worst thing is the incentives they're using are barbed - really they're just offering you a discount on their products in return for locking you in to them.

phpnode··on Soviet Cosmonauts Carried a Shotgun into Space
That's... this story
phpnode··on Announcing MongoDB 3.0
Because it's reflective of the experiences of many people?
phpnode··on Destructuring and Recursion in ES6
obligatory mention that 6to5[0] lets you use all this stuff, and more, today. I've been using it for 3 months now and it has totally transformed the way I write JS applications, it's awesome.

[0] https://6to5.org/

phpnode··on Node.js Flow – Callback Hell vs. Async vs. Highland Streams
Its getting a new name: https://github.com/6to5/6to5/issues/596
phpnode··on Node.js Flow – Callback Hell vs. Async vs. Highland Streams
6to5 actually supports compiling async/await to bluebird coroutines
phpnode··on Vivaldi – A new browser for our friends
You have chosen to break your own web experience, I'm not sure why you're complaining.
phpnode··on The growing irrelevance of MongoDB
actually both in many cases, Neo4j does have quite a hostile license, but its biggest downside is that it is graph only, whereas OrientDB (and ArangoDB which is also worth looking at) are "multi-model" - you can use them as pure document (or even key / value) stores, and the graph is just another way of viewing / representing that data. This is really powerful and means that you don't have the problem of duplicating data between different database systems or needing to do cross-data-store joins in your application.
phpnode··on The growing irrelevance of MongoDB
> Do you have any advise for someone thinking of deploying on GCE?

No, sorry, I've never used that. However, generally - like all dbs, Orient is happiest when it has access to a lot of RAM. Also the Write Ahead Log can take up a significant amount of disk space, those are two things to be immediately aware of.

> I'm also interested in understanding if there is any built-in compression mechanism because I will be storing a large volume of very similar text files. Any hints?

Sadly it doesn't yet do leveldb style document compression, and I've seen no hints that it's on the horizon, but the OrientDB guys are pretty responsive and would probably be open to the suggestion.

> Have you used the lucene indexes much? If so, can you do any of the crazy faceting delivered by ElasticSearch?

I'm just starting to use the lucene indexes now so I can't give much feedback on those yet. It should be possible to do faceting using SQL to a limited degree, but I don't think there's native support for it yet. I think that will get improved in the next few versions because people are crying out for it.

phpnode··on The growing irrelevance of MongoDB
OrientDB is very cool software, I find it pretty hard to go back to traditional databases now that I've seen how powerful graphs are, but the cool thing about it is that it's still a document store at heart, so you get all the same advantages of mongo, but with the graph awesomeness on top. It's a fantastic tool, but there are a few quirks that can catch beginners out and the documentation is not stellar. It also requires some configuration tweaking to get the best performance for your workload.

I've been using node.js (I develop the official driver - https://github.com/codemix/oriento), but there's pretty good libraries emerging for other languages too. Most people I've worked with are deploying to AWS, one company was running on the bare metal.

phpnode··on The growing irrelevance of MongoDB
> I have yet to see a real use case for Mongo unless you are building a Facebook clone

People seem to keep making the mistake of building a social network in mongo. It's entirely unsuitable for that.

Source: I've helped 3 companies move their social networks from MongoDB to OrientDB when they figured out that MongoDB prevents them from shipping features that users expect, e.g. friend-of-a-friend style queries

phpnode··on Is JavaScript getting worse?
To whoever downvoted me, am I wrong? Please explain.
phpnode··on Is JavaScript getting worse?
> If I look at most of the libraries commonly used in production JS, pretty much none of them apply classic OOP principles.

Sorry but that's total nonsense. For instance, node.js makes heavy use of classes, as does Backbone, Ember, React, etc

phpnode··on Is JavaScript getting worse?
> those who don't use it are often forced to take it into account in their code; especially library authors.

No, `class` is syntactic sugar for the most common way of doing classes in ES3 and ES5. There is no semantic difference between:

    function Thing () {}

    Thing.prototype.greet = function () { alert("hello"); };
and

    class Thing {
      greet () {
        alert("hello");
      }
    }

They are the same, so it introduces no new traps for library authors.
phpnode··on Is JavaScript getting worse?
ugh, really sick of this meme. OO is a tool in the box, it's useful a lot of the time, sometimes it isn't. The reason ES6 introduces the `class` keyword is that people are doing that already.
phpnode··on Is JavaScript getting worse?
ES6 is fantastic and usable today using the excellent 6to5 [0]. I disagree with all of the author's points, I think these are great features.

[0] https://github.com/6to5/6to5

phpnode··on Keeping the Pirates at Bay – Copy and Crack Protection (2001)
You're not being logical, you're just parroting anti-anti-copying propaganda.

> If the 12 yr old pirates $17,000 (retail price) of music, this does not mean the record companies are out $17,000... 12 yr olds don't have $17,000 to spend even if they are prevented from pirating.

Right, but it does not mean that the record companies are out $0 either. They are probably missing out on at least several hundred dollars worth of revenue for that particular person.

phpnode··on “Was isolated from 1999 to 2006 with a 486. Built my own late 80s OS”
Something about this story does not sound quite right to me. If I were essentially locked up in that scenario, I would at least be confident of the names of the 3 games which were installed, since they'd inevitably be played to death, regardless of how good they were. Also there's this http://www.reddit.com/r/australia/comments/2p63rv/australian...
phpnode··on Poor performance from your MongoDB database? Look at the shard key
sounds like more direct key lookups. I can definitely believe mongo is suited for that particular use case, but I'm super sceptical about it being used as a general data store.
phpnode··on Poor performance from your MongoDB database? Look at the shard key
thanks for the link, I wonder how they use it? The companies I've been working with have made the mistake of using Mongo as their sole data store for everything, rather than for one specific purpose.
phpnode··on Poor performance from your MongoDB database? Look at the shard key
is it fair to guess that you use elasticsearch for product search and mongo for tracking item level prices? i.e. most of your mongo queries are direct key lookups?
phpnode··on Poor performance from your MongoDB database? Look at the shard key
This is not meant as a troll post but a genuine observation after spending the last year or so migrating various businesses away from MongoDB (or from parse which uses mongo):

Has anyone ever built a non trivial application on MongoDB and been happy with their decision, say, 1 year later? If so, what kind of use case was it? I am genuinely curious.

The impression I've received is that Mongo is ridiculously easy to get started with but the flaws become more and more of a hindrance over time, eventually making certain types of application features virtually impossible to implement.

phpnode··on The Other Money Problem
Your comparison is invalid, e.g. JK Rowling doesn't write books about how you should become a magician
phpnode··on Comments on the Sony Hack
> No one should have any expectation of privacy for anything they put on the Internet.

Right, except Joanna Public does have this expectation and continues to do so because of manifestly poor public education about the risks of the internet. We should literally have lessons about this stuff in schools.

And as another commenter stated, these things were not "online", they were "on a computer". If I can have no expectation of privacy for things I put on a computer then that is going to lead to no expectation of privacy under any circumstances. This stuff is going to have profound social consequences and something has to change.

phpnode··on Reactive prefetch on Google Search: 100-150ms speedup
> I'm pretty confident that they don't in my case.

Would you mind sharing the details of how you achieve this?

phpnode··on Ewww, You Use PHP? [2010]
> Faster than Node.js + Express?

Absolutely, yes. Take a newbie and ask them to create a web page using express, then ask them to try in PHP. They are worlds apart in terms of usability and approachability. (I say this as someone who almost exclusively writes in node these days)

> it was just the only accessible platform around and happened to be crappy.

How can it be crappy if it's the only accessible platform around? An alternative view point is that PHP is the best, most empowering platform, because it's accessible to newcomers, and every other language is crappy in comparison because they have failed to match PHP's accessibility.

> Appeal to popularity, not a valid argument. Says nothing about language quality.

You seem to be talking about PHP the language. There is no doubt that PHP the language is flawed. That is totally irrelevant. What matters is how effective PHP the ecosystem is, and it is undeniably incredibly effective. That's why people use it, because it is a practical way to get things done.

So, if we're talking about PHP the ecosystem, then popularity is absolutely a valid metric here. It's easy to hire for, has tons of libraries etc, this stuff matters a lot more than the associativity of the ternary operator.

phpnode··on Ewww, You Use PHP? [2010]
Hello. PHP is good. It is still far faster and easier to put together a website in PHP than any other language. It has enabled millions of people to become web developers. It powers about 90% of the web and best of all it offends language snobs
← PreviousPage 30 of 34Next →