Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phpnode
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
931.
▲
by
phpnode
12y ago
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
932.
▲
by
phpnode
12y ago
Your comparison is invalid, e.g. JK Rowling doesn't write books about how you should become a magician
933.
▲
by
phpnode
12y ago
> 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 int
934.
▲
by
phpnode
12y ago
> I'm pretty confident that they don't in my case. Would you mind sharing the details of how you achieve this?
935.
▲
by
phpnode
12y ago
> 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 alm
936.
▲
by
phpnode
12y ago
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 s
937.
▲
by
phpnode
12y ago
https://www.arangodb.com/key-features#aql does a relatively good job explaining it. The examples are all fairly simple, in a real world app you have much more complicated queries and it's here where arango really shine
938.
▲
by
phpnode
12y ago
https://news.ycombinator.com/item?id=8540960
939.
▲
by
phpnode
12y ago
they definitely don't. Search for "ᴜɴɪᴄᴏᴅᴇ ᴛᴇxᴛ" and you'll see the only matches are exactly that.
940.
▲
by
phpnode
12y ago
> I feel like there exists a market for getting start-ups launched on the right foot. Twelve weeks (480 hours) for $1,000,000 with a bonafide rockstar to get your concept not only up and running but well designed to be carried forward. D
941.
▲
by
phpnode
12y ago
If they'd supported Firefox from the start everyone would be slating them for "crippling" Firefox, or they would have had a poor user experience that would turn a non trivial percentage of early adopters off the entire produc
942.
▲
by
phpnode
12y ago
damn, I've been using that word slightly incorrectly for years, and now I hate myself. Thanks.
943.
▲
by
phpnode
12y ago
There are equally valid technical reasons for using `new`, so it's dogma
944.
▲
by
phpnode
12y ago
I said there are few absolutes, not that there are no absolutes :) `new Foo` has simpler semantics than `Object.create(FooProto)` and therefore I believe it will always be faster. That performance gap can of course narrow, but I think `new`
945.
▲
by
phpnode
12y ago
The ever-wonderful Vyacheslav Egorov has a nice article on this: http://mrale.ph/notes/constructor-vs-objectcreate.html
946.
▲
by
phpnode
12y ago
this part here is supposed to solve the problem with people forgetting new: if (!(this instanceof User)) { return new User(name, lastname); } I'm pointing out that this doesn't work if you extend the class. The
947.
▲
by
phpnode
12y ago
In your example you have two "bugs", you're not capitalizing the constructor name and you're not using `new`. I would have to make two separate mistakes to reproduce the issue you're talking about. The only way I&#x
948.
▲
by
phpnode
12y ago
Probably the problem with your perspective is that you're still thinking about JS "interpreters", when we don't generally have those any more - we have JITs that compile JS to machine code. `new Foo()` is faster because
949.
▲
by
phpnode
12y ago
note that this pattern will break subclassing: var Person = User.extend({}); var person = Person(); person instanceof Person; // false! person instanceof User; // true
950.
▲
by
phpnode
12y ago
"Stop writing prescriptive articles about software development when you're speaking from a position of ignorance" There are many reasons to keep on using `new`, the biggest one is probably performance, `new Foo` will always o
951.
▲
GCHQ says tech firms 'in denial' on extremism
(m.bbc.co.uk)
2 points
by
phpnode
12y ago
|
0 comments
952.
▲
by
phpnode
12y ago
Because it's a graph database so it doesn't really fit naturally with SQL. Competitors like OrientDB use something that's nearly SQL but not quite, and it's the discrepancies between the two that catch you out. Arango&#x
953.
▲
by
phpnode
12y ago
Except this isn't him "cheating", this is his preferred coding style, for readability!
954.
▲
by
phpnode
12y ago
yep, you can disable this warning using .jshintrc - http://www.jshint.com/docs/options/#eqnull
955.
▲
by
phpnode
12y ago
Well let's take your example and run with it. If you own a house in a nice quiet street, and someone buys the place next door and wants to turn it into an inn, you'd expect to be consulted about that, right? You'd presumably
956.
▲
by
phpnode
12y ago
They may have faked the explosion at the end, and obviously their explanation is total nonsense, but the launch looks pretty authentic, see this alternate angle: https://www.youtube.com/watch?v=xoMKy043j_I
957.
▲
by
phpnode
12y ago
Yii is actually incredibly polished, it's not rough around the edges at all. It is not particularly easy on newcomers though, which is the main reason it's not more widely known. If you put the effort in to learn it thoroughly, yo
958.
▲
by
phpnode
12y ago
none of the PSRs specify that the namespace name should be capitalized.
959.
▲
by
phpnode
12y ago
hey, this looks great, but it's not actually working on either on either of my nexus 5s, is that a known issue? There's no crash or anything, the flashlight just doesn't actually turn on.
960.
▲
by
phpnode
12y ago
Most of this is just idiomatic JS, hardly "hacks".
More ›