HNHacker News
TopNewBestAskShowJobs

wldlyinaccurate

1,299 karma · joined August 12, 2012

submissionscomments
wldlyinaccurate··on Founder with an accent? Free offer from SayAfter.me
I couldn't sign up because the email field is limited to 30 characters. Emails can be up to 256 characters long, sometimes longer.
wldlyinaccurate··on Announcing Mixen: Multiple Inheritance in JavaScript
Usually I would be against simulating language features which aren't part of the language in the first place. JavaScript is kind of different, though.

On the web, many developers are "forced" to write JavaScript when they don't really understand it (which is a massive pet peeve of mine, but that's a rant for another time). These developers tend to try and shoehorn design patterns from their language of choice into JS, or they just don't use any design patterns at all. Either way, it just doesn't work; the code just ends up being horrible.

At least libraries like this allow people to use design patterns that are more familiar to them, which should (hopefully) result in cleaner code.

wldlyinaccurate··on The consequences of living with a legacy PHP framework
I wouldn't call Silex "lightweight". Slim, however, is very lightweight and a pleasure to use: http://slimframework.com/
wldlyinaccurate··on The consequences of living with a legacy PHP framework
This is why I strongly believe in writing framework-agnostic code. The extra effort of splitting even small bits functionality into decoupled components can save so many headaches in the future.

When I'm writing a new feature, I always try and code it as if I'm going to release it as a standalone library that could easily work for other people regardless of what framework they're using.

Stuart Herbert wrote a lot about this: http://blog.stuartherbert.com/php/php-components/

wldlyinaccurate··on Is it worth buying a MacBook Air?
System76 laptops aren't known for their amazing battery life. The new(ish) Galago UltraPro supposedly only lasts 4 hours. Fine if you're plugged in all the time, but then why do you want a laptop?
wldlyinaccurate··on Is it worth buying a MacBook Air?
I used to feel the same way. But have you tried finding a laptop of high build quality and similar specs? The only one I can find that comes close in terms of battery life is the new Samsung Series 9 (ATIV Book Plus) which is actually more expensive than the Air.

The only thing holding me back from getting an Air right now is the low screen resolution.

wldlyinaccurate··on Google has lowered the price of the Nexus 4 by $100
I've been considering getting a Nexus 4 for months now, but my Galaxy SII still mostly works (with Cyanogenmod) so I didn't have much of a reason to spend the money. But this new price is right in my impulse buy range, so it looks like I'll get one after all!
wldlyinaccurate··on Black Hole Analogue Discovered in South Atlantic
I wonder if the author knows that Edgar Allan Poe's A Descent into the Maelström is entirely fictional...
wldlyinaccurate··on But I already wrote it
Many otherwise good developers I know struggle with this. The best way I've found to combat it is to pair with them during high-level design/dev, and code review early and often.

This works if you're in a position of power, but sadly even some senior and lead developers seem to struggle with it.

wldlyinaccurate··on Github is having a major service outage
A thousand repos is a bit much, don't you think? I've worked for some pretty big agencies before and the number of active projects has never been more than 50-60. That's only going to cost you around $50/month.

The reason I say active is because even if you do have a thousand repos, you're surely not maintaining all of them - that would be insane. You would probably have 950 repos which would be better off archived, backed-up, and removed from GitHub.

wldlyinaccurate··on Github is having a major service outage
This is exactly why we have an internal system which mirrors repos. We've never had our build/deploy process interrupted by GitHub outages because we always use the internal mirror.
wldlyinaccurate··on I rewrote my blog in Go
I wish more web developers would come to this conclusion. It's so frustrating to see people trying to save 50ms by optimising slow SQL queries or fixing slow code paths. Meanwhile the user is waiting over 5 seconds to load a page with a bloated DOM, inefficient CSS, synchronous JavaScript, etc.

If your back-end is slow, just cache it and forget about it. Front-end is almost always the bottleneck (the exceptions to this rule being near-real-time dynamic sites like New Relic or GoSquared).

wldlyinaccurate··on Ember.js 1.0 RC7 Released
Every time a new Ember RC is released I read a little more about it, and I have to say that this time I'm actually considering giving it a go.

This probably seems a little weird - why wouldn't I want to give it a go? I guess it's because I've been using AngularJS for several months now and learning something as opinionated and complex as Ember is a pretty hefty investment in terms of time and effort.

seivan mentioned ObjectController and ArrayController, which I think are really cool. Does anybody else know of any other features that might whet my appetite and convince me to jump on the Ember train?

wldlyinaccurate··on TestCafé: Web Testing Framework
I skim-read their website and watched a good chunk of their video. I still have no idea what this actually is, and why I would use it over my existing toolset (Behat, Selenium + WebDriver, CasperJS, etc).

If any DevExpress guys/gals are reading this, please consider making a shorter (2-3 min) video showing some tests being written and run.

wldlyinaccurate··on Github is down
I used GitLab with a small team for a while and found it to be adequate. It never quite felt as good as GitHub and was missing a few trivial features (although I can't remember any right now) but overall it was a pretty good experience.
wldlyinaccurate··on Javascript Constructors and Prototypes
The thing is, semicolons do make a difference with JavaScript.

It's now 404ing, but there was a pretty well-known argument on one of Twitter Bootstrap's GitHub issues[1]. The Bootstrap guys didn't use semicolons, and it caused problems when minifying the code. It's an edge case, I know, but it was a problem.

I never understood the whole anti-semicolon thing anyway. It just seems really hipster to me. Use CoffeeScript, if you don't want semicolons.

  [1] https://github.com/twitter/bootstrap/issues/3057
wldlyinaccurate··on Lifetimes of cryptographic hash functions
The Expert/Programmer/Non-expert reactions at the bottom are priceless.
wldlyinaccurate··on Leaked photo reveals ‘iPhone 5C’ packaging
Seriously? There are leaked photos of the packaging and this makes it to the first page of HN?!
wldlyinaccurate··on Google Unveils The New Nexus 7 Android Tablet
Yeah, this is the thing I could never get my head around. I know that the iPad mini is superior in many ways, but I just can't see how people can justify spending the extra money! The iPad mini is £110 - £190 more expensive, depending on which size you get. That's just too much IMHO.
wldlyinaccurate··on CSS only submarine
Cool! I really enjoy seeing how people make this stuff. The reason I find it impressive to see these things made in CSS (as opposed to Flash, or whatever) is because while you can essentially make any shape in CSS, it's not always straight-forward. So the impressive part for me is the inventive ways that people build these things.

BTW this didn't work in Chrome for me, but it did work in Firefox Nightly.

wldlyinaccurate··on Ubuntu forums hacked
Sorry for the late reply. There's no single reason for it being so insecure, but you don't need to search for long to find vulnerabilities.

I think the main problem comes from the fact that much of the code still resembles the spaghetti that was written over 10 years ago. Even recent versions have problems with basic input sanitization, which makes injection attacks really easy. Social engineering is also a massive problem: if you can phish an admin login, you can essentially take over the entire web server because the admin panel is just too powerful.

wldlyinaccurate··on Ubuntu forums hacked
vBulletin is (and always has been) terribly insecure. Only way to beef up security is to lock down admin panels, e.g. IP-restrict them.
wldlyinaccurate··on Why I am a good programmer and will always be
Congratulations on figuring out what was wrong with your phone, seriously. A lot of people would have given up after the first time it didn't boot properly (although a lot of people haven't rooted their phone).

The thing is, and please forgive me for dismissing your achievement like this, it doesn't make you a good programmer. Programmers solve problems like this on a daily basis. You've definitely proven that you have the right mindset and determination to be a good programmer, but at the same time this sort of egotistical, superior attitude is the trait of a bad programmer. Nobody likes working with people like that.

I never wanted to be "that" guy on HN who puts down other peoples' posts, but I think the whole smugness of this rubbed me up the wrong way. Please, carry on solving real-world problems. Just, show a little modesty and humiliation.

wldlyinaccurate··on Probably not for hackers
If you've got any more going, I'd really appreciate one! joseph at the domain in my profile.
wldlyinaccurate··on Things Most Americans Don’t Know About America
You could just, you know, ignore it and carry on with your life. You'll be happier that way.
wldlyinaccurate··on The void of undefined in JavaScript
jQuery does it right:

    (function( window, undefined ) {
        // ...
    })( window );
wldlyinaccurate··on Why You Should Learn HTML5 Now Before It Explodes In Popularity
I used to get upset about it, but now I've just come to accept that when people talk about "HTML5", they don't mean HTML. They mean CSS3, JavaScript, all of the APIs that come with the HTML5 spec, etc.

This graphic sums up pretty nicely what "HTML5" actually encompasses: http://upload.wikimedia.org/wikipedia/commons/f/f7/HTML5-API...

wldlyinaccurate··on Video shows plane's moment of impact at SFO
Yes, that's a literal translation. We say many similar things in English to express shock: "good God", "my God", "God almighty", etc.
wldlyinaccurate··on Show HN: A site using zero images – any feedback on the UI?
I'm not a spelling/grammar nazi or anything, but seeing mistakes like this really puts me off things. Like, to the point where I have to close the tab because it annoys me so much.

I probably have a disorder. I should get help.

wldlyinaccurate··on Your test suite is trying to tell you something
Great anecdote. I've never really agreed with having massive system-level automated tests, because more often than not the random failures like this do just get ignored.

I guess it depends on the culture within your team, how much you all care about your test suites.

← PreviousPage 7 of 9Next →