HNHacker News
TopNewBestAskShowJobs

mark_story

146 karma · joined April 1, 2010

Developer and designer in toronto ontario.
submissionscomments
mark_story··on I switched back to PHP after 2 years on Rails (2007)
I don't think its really reasonable to say 'X sucks' without taking uses cases into account. While PHP has a number of shortcomings, it is great for things where ruby/rails would be huge waste of time. Build some small brochure websites in rails, and build the same ones in PHP. I bet you'll be done much sooner & deployed more cost effectively using PHP. This might not be the kind of work you aspire to doing, but I think the example still holds.
mark_story··on PHP Annotations Are a Horrible Idea
As of PHP 5.4 you can use [] to define arrays. It saves some typing, and is less noisy on the eyes I guess.
mark_story··on Dear Netflix: You're doing it wrong
It still looks like an inferior clone. The typefaces are all wrong, the kudos button has a wonky shape. Its differences are just enough to hit the uncanny valley for me.
mark_story··on Chrome 22 breaks things
Those are all webkit based browsers, so it seems normal that they'd all behave the same.
mark_story··on Bootstrap Maintainers Leave Twitter
I didn't see where in the post, or comments here where that was said. Do you have a source?
mark_story··on John Carmack on Static Code Analysis
Probably not, but you might want to give phpcpd, pdepend and pmd a try. They're all open source static analysis tools for PHP, and will find a number of potential issues.

I also find getting a good set of rules for phpcs is extremely helpful in PHP. You can use its sniffs to catch past mistakes and enforce consistent coding standards.

mark_story··on So long, Retina
Slow news day I guess.
mark_story··on Nerf guns don't matter
Even more sad if you live in a northern climate. You get go to work in the dark, and return in the dark. Daylight is just something that happens during work.
mark_story··on Underscore.py / a python port of underscore.js
While I can understand this might have been fun from a hacking/building experience, I don't understand why do it. Everything except the micro templating already exists in python.
mark_story··on FreshBooks moves from Online Invoicing to Cloud Accounting
There was no bullying from intuit, it was a self-directed change.

(disclosure - I work at FreshBooks)

mark_story··on Typing Practice for Programmers
What? how? Its in almost every programming language that I can think of.
mark_story··on PostgreSQL is Engine Yard's New Default
From what I know its better than MySQL's full text and all its warts, but still not comparable to a lucene based search solution.
mark_story··on Dear Flask, Please Fix Your “Secure” Cookies
Sure it costs nothing until you are compromised and any valuable data you have is taken. Remote code exploits are extremely dangerous. And mitigating them with a small amount of i/o overhead seems like a fair trade off.
mark_story··on Dear Flask, Please Fix Your “Secure” Cookies
That's clearly not the case in all situations though. If its simply a userid there would be no reason to use pickle. JSON or simple string storage would be sufficient. Clearly people are storing far more than just a userid in their client side sessions.
mark_story··on PHP Tips and Tricks - Codular
Depending on the situation you would want database inserts to reflect the passage of time, and not always stick to a 'start of request/job' time. I can see the desire of the parent to want to have all the HTML generated with the same understanding of time, but as a general practice I still think its a bad one to fix time.
mark_story··on Daring Adventures with Passive Income
Thanks for sharing what you did though, it was a very interesting and illuminating read for me.
mark_story··on Patterns and Anti-Patterns in Code Comments
That idea kind of reminds me of the annotated source used for backbone. http://backbonejs.org/docs/backbone.html
mark_story··on Highlights and shadows: the real color of transparent in CSS3 (with examples)
All the examples are webkit only. And people wonder why opera and mozilla are a bit frustrated about the state of vendor prefixes and CSS.
mark_story··on CSS's "transparent" isn't all that transparent
Same for me on Firefox 14 on 10.8, both examples look the same.
mark_story··on PHP Tips and Tricks - Codular
If you're spending a few seconds rendering HTML, you probably have other big problems to solve above optimizing around time().
mark_story··on RethinkDigg.com
Bury bridgades and Pedobear ascii art are parts of digg we've all partially forgotten about I bet.
mark_story··on Canada’s vanishing tech sector
I call BS on this. From my experience in Toronto, there are many companies looking for developers and having a difficult time finding quality candidates.
mark_story··on PHP: The Right Way
For the longest time the installation instructions for NPM were almost exactly the same. But its worse when PHP does it :)
mark_story··on Microsoft.com New Design Preview
You're going to hate the future of all microsoft platforms then. Xbox, windows, and windows phone all share this design language.
mark_story··on JQuery 2.0 Drops Support for IE6/7/8; API-Compatible with jQuery 1.9.
Last I checked zepto doesn't have support for any of the simulated selectors like `:checked`, `:input` and friends. If you use any of them, its not drop in.
mark_story··on The Design Of SQLite4 (work in progress)
I really hope you never have to do a schema migration. That's going to be hell with your matryoshka database.
mark_story··on JQuery 1.8b1: what’s new?
That's also a ton of tying and a lot of code that a minifier can't reduce. I guess its possible, but do you really want to writing such verbose code?
mark_story··on Microsoft agrees to $1.2bn purchase of Yammer
The biggest difference is Yammer has a reasonably stable revenue source in its customers. Instagram has 0 paying customers that I'm aware of.
mark_story··on JQuery 1.8b1: what’s new?
Sure but $('.clicky').on('click', doSomething); means no loops at all, and will bind events to all matching elements. I don't think there is a native API way to do this.

Edit: typos

mark_story··on JQuery 1.8b1: what’s new?
Well one nice affordance jQuery offers, is you can do manipulations en-mass without having to write out a loop, or use Array.forEach(). This helps simplify event binding and manipulation code. Also there are selectors in jQuery that are not available in querySelectorAll. And lastly querySelectorAll has some pretty buggy implementations. jQuery smoothes these out.
← PreviousPage 2 of 5Next →