Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
h2s
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
151.
▲
by
h2s
14y ago
This is a documented Zend Framework thing, so personally I wouldn't call it "contrived", "dumb" or "weird". http://till.typepad.com/blog/2008/10/zendframework-performan... > Removing require_once in favour of __autoload shows
152.
▲
by
h2s
14y ago
Your criticism of autoloading comes as a surprise. During 2012 one of my colleagues squeezed a little extra performance out of our software by removing all the calls to require_once from our installation of Zend Framework, thus handing full
153.
▲
by
h2s
14y ago
I can totally sympathise with the slightly angry tone of this reply, as my post was in a similar vein so I kind of had it coming. You're correct in that this was kind of just a cheap shot and I agree that the community is at least heading i
154.
▲
by
h2s
14y ago
Sorry about this grumbling old man comment. I was bored and tired and I was meaning to delete it, but it has replies and stuff now so it seems a bit too sneaky. Something about HN brings out the angry jerk in me sometimes. My bad, though.
155.
▲
by
h2s
14y ago
> The community is always quick to learn from > its mistakes however There was a tutorials site on the front page of HN recently. It has a few PHP tutorials. http://codular.com/implementing-pagination $sql = 'S
156.
▲
2012: A Year in PHP
(techportal.inviqa.com)
106 points
by
h2s
14y ago
|
146 comments
157.
▲
by
h2s
14y ago
Correct. It used to say "This 16 year old from Slovakia has a better sales page than you". I think somebody posted it because they thought it was well executed and wanted HN to see it, but the title change makes it look like the creator of
158.
▲
by
h2s
14y ago
> 'the publishing will only happen now' is the kind > of assumption that ends up being false very rapidly. I think you're right, and part of the problem here is the time example clouding people's judgement. The fact th
159.
▲
by
h2s
14y ago
Timecop.freeze(Date.today + 30) do assert joe.mortgage_due? end vs assert joe.mortgage_due?(Date.today + 30)
160.
▲
by
h2s
14y ago
Couldn't agree more. If the behaviour or outcome of a function depends on the current time, then the current time is an input to that function. Inputs to functions should be declared explicitly as arguments where possible. The existence of
161.
▲
by
h2s
14y ago
Testability isn't the only good thing about dependency injection. It's much easier to reason about OO code when objects only tend to interact with objects that they have been explicitly given. Too much willingness to introduce static depend
162.
▲
by
h2s
14y ago
> Five essential books > To fully prepare for your programming interviews, > you should have access to information on at least > these five key topics: > I haven't read this yet myself >
163.
▲
by
h2s
14y ago
> One day in the name of a better UX you add an AJAX component to > this, and forget to copy across that check into the ajax endpoint. > Suddenly I can change anyone's username, despite not being an admin. Your
164.
▲
by
h2s
14y ago
How fitting that one of the links you've posted is unavailable at the moment due to the very downtime that caused this discussion! Evidence of our over-reliance on GitHub in the open source community, perhaps.
165.
▲
by
h2s
14y ago
It's in now! http://ppladdressbook.org/documentation/commands/post/
166.
▲
by
h2s
14y ago
Damn, that is kind of spooky actually. I can't keep track of all the similarities... The layout of the project's directory structure, the TravisCI image placement, the README style... I don't know, all I can say is you have excellent taste!
167.
▲
by
h2s
14y ago
It's in! http://ppladdressbook.org/documentation/commands/mutt/ Thanks for the suggestion. The link was helpful because I could tell in moments how easy it would be to get started with this.
168.
▲
by
h2s
14y ago
It uses git, so you can keep your address book on as many different computers as you want and use commands such as "git push" and "git pull" to handle the synchronisation. There are no built in "ppl push" commands or anything like that at t
169.
▲
by
h2s
14y ago
I thought about this a bit. I considered using C, but decided against it in the end. C lost out because I wanted to use this project as an opportunity to try out full-on TDD, and C's automated testing tools seemed like a pain. I also wanted
170.
▲
by
h2s
14y ago
Yeah I customised flatstrap (colors and fonts mainly). 2.css is part of the little CSS build process I came up with for this site. There are a bunch of LESS files in a directory ( https://github.com/h2s/ppladdressbook.org/tree/master/_style
171.
▲
by
h2s
14y ago
You have described exactly the two things about abook that have always put me off using it and drove me to build this. The ncurses UI works well but isn't what I want, and the "Yet Another File Format" addressbook format isn't very interope
172.
▲
by
h2s
14y ago
Nope, not yet. But it's easy to add and will be in there soon enough. In fact it's already listed in the roadmap at http://ppladdressbook.org/development/roadmap/ !
173.
▲
by
h2s
14y ago
Nobody's reported this one yet! There's a bug tracker at https://github.com/h2s/ppl/issues/new if you're feeling generous with your time. I could do with knowing what command you're running, what version of Ruby you're on, and whether you
174.
▲
by
h2s
14y ago
Agreed, and this shouldn't be too difficult to do either. Watch this space: https://github.com/h2s/ppl/tree/mutt
175.
▲
by
h2s
14y ago
Very cool idea. It would probably be 100x more useful if it was easy to sync with other address books, I think I agree with you there. Perhaps this should be a priority. And any help you can give would be most welcome. I think the reason I
176.
▲
by
h2s
14y ago
This has been my side project for the last month or so. It's a "scratch your own itch" type of deal, because I wanted a CLI address book and there didn't seem to be one. I tried really hard to find an existing one, but I'd be interested to
177.
▲
Show HN: ppl - The Command Line Address Book
(ppladdressbook.org)
106 points
by
h2s
14y ago
|
54 comments
178.
▲
by
h2s
14y ago
I wonder about this sometimes. Every laptop I've owned in the last ten years has had this problem to some extent with Linux. It's not just a heat issue, either. Using enough energy to generate all that heat means the battery never lasts ver
179.
▲
by
h2s
14y ago
Nah I didn't think that at all, it was clear from the way you said "minimal commenting". I just have an axe to grind when it comes to comments of the form // assign the integer value 10 to the variable x x = 10
180.
▲
by
h2s
14y ago
I can't agree with you emphatically enough about this. Cargo cult commenting is one of the easiest ways to damage the readability of a codebase. Comments should be an edge-case solution for explaining unusual quirks, not the go-to approach
More ›