Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dhotson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
481.
▲
by
dhotson
16y ago
This article made me thirsty and I don't know why.
482.
▲
by
dhotson
16y ago
I usually have the 'try coffeescript' dialog open so I can see what the compiled output looks like. I trust CS to do the right thing, but I still like to confirm it's doing what I expect.
483.
▲
CoffeeScript: Why I’m never writing Javascript again
(degizmo.com)
6 points
by
dhotson
16y ago
|
3 comments
484.
▲
by
dhotson
16y ago
It's probably the "Don't feed the trolls" effect.. ;-)
485.
▲
Documentation is freaking awesome
(warpspire.com)
47 points
by
dhotson
16y ago
|
9 comments
486.
▲
Study calls critical thinking into question
(communications.uwo.ca)
1 points
by
dhotson
16y ago
|
0 comments
487.
▲
by
dhotson
16y ago
I can't give too many details away.. but where I work we've been using graph visualizations and algorithms to investigate and detect fraud. I've open sourced the force directed graph viz part of it in case anyone is interested: http://gith
488.
▲
The difference between US Military prisons and regular prisons
(metafilter.com)
12 points
by
dhotson
16y ago
|
1 comments
489.
▲
Your battery gauge is lying to you (and it's not such a bad thing)
(forum.xda-developers.com)
7 points
by
dhotson
16y ago
|
0 comments
490.
▲
by
dhotson
16y ago
I wonder if Avi Bryant had anything to do with this?
491.
▲
by
dhotson
16y ago
It's not just db queries though.. it's also things like 3rd party API calls (S3 for example). Basically anything where you're blocked waiting for a response you could be busy doing something else. Synchronous APIs are kind of wasteful in a
492.
▲
by
dhotson
16y ago
Probably true. But it depends. Let's say you've got 5 queries that take 1 second each.. There's a potential 5x speedup if you can run them in parallel. I think some basic concurrency support in PHP (such as Futures) would have a pretty huge
493.
▲
by
dhotson
16y ago
I had a go at using this a little while ago to implement (erlang style) message passing concurrency in PHP: http://github.com/dhotson/phork The main use case is something like: Let's say you've got a mysql query that's going to take a few
494.
▲
Color Design for Aerospace Applications
(colorusage.arc.nasa.gov)
4 points
by
dhotson
16y ago
|
0 comments
495.
▲
by
dhotson
16y ago
I wonder who gets the cash when these cases are settled? Does the money go back to the original authors of the software in question?
496.
▲
by
dhotson
16y ago
Ah yep, I guess it'd be good to have a pure PHP fallback for HTTP parsing. Also, I've pretty much developed my own PHP style. I don't follow PEAR conventions.. I go with what looks clearest to me. So obviously you'll want to take my advice
497.
▲
by
dhotson
16y ago
> Polymorphism allows you to do this. In the context of decorators, that usually means defining an interface. This doesn't work if you have a generic decorator class. You can't really make it implement all the interfaces you potentially
498.
▲
by
dhotson
16y ago
Thanks. :-) Although, usually I go for a static create() method instead of a function. Oh man, I really wish they'd make constructors chainable. :-(
499.
▲
by
dhotson
16y ago
I'm sure the speed is awful. But that's not the point. Also, type hinting isn't all it's cracked up to be in PHP. In my opinion, type hints don't fit well in a dynamic language like PHP. The main problem I have is that you can't pass a deco
500.
▲
by
dhotson
16y ago
Thanks for taking a look Reg. Would you mind if I ran an idea past you? The other idea I'm toying with is something similar, but having immutable classes. So basically every time you add a new method, instead of modifying the class you woul
501.
▲
by
dhotson
16y ago
Not at all. Thanks for taking a look. :-) Yep, the intention was to implement classes in a more dynamic and hackable way. Ruby was certainly an inspiration, but I'm not really trying to copy it if that's what you mean. Ruby is pretty good i
502.
▲
by
dhotson
16y ago
Yup, I could have implemented this in pretty much any language with closures and some sort of __call / method_missing magic. It's mostly just a fun hack to experiment with a different OO style. By no means would I recommend using it in any
503.
▲
by
dhotson
16y ago
I did mention that it was kind of unfortunate.. ;-)
504.
▲
PHP Object Oriented Programming Reinvented
(dhotson.tumblr.com)
33 points
by
dhotson
16y ago
|
33 comments
505.
▲
by
dhotson
16y ago
Looking pretty good. Nice one. :-) I can't claim much credit for the design of Kelpie, it's mostly a direct port of Ruby's Thin web server. I guess there's a couple of notes I'd make: - I'd recommend using the mongrel http parser rather tha
506.
▲
by
dhotson
16y ago
I think c00p3r makes a valid point. PHP makes it very hard to write "beautiful" frameworks like Sinatra. There's a whole bunch of crufty looking stuff in PHP that is unavoidable. That doesn't stop me from writing PHP and getting-shit-done.
507.
▲
by
dhotson
16y ago
No particular reason it uses docblocks.. it's just what I thought looked decent at the time. I'm usually not a fan of comments as code, but in this case it's kinda neat.. :-) It's a real challenge to make nice looking mini languages in PHP.
508.
▲
by
dhotson
16y ago
Heh, it's funny you should mention that.. I had a go at a Sinatra + Rack style framework in PHP a little while ago. Check it out: http://github.com/dhotson/kelpie http://github.com/dhotson/kelpie/blob/master/demoapp.php It's got its own
509.
▲
The Box is a series of short interviews with people who make cool stuff
(thebox.maxvoltar.com)
1 points
by
dhotson
16y ago
|
0 comments
510.
▲
How does Gilt's business model work?
(quora.com)
1 points
by
dhotson
16y ago
|
0 comments
More ›