HNHacker News
TopNewBestAskShowJobs

callum85

5,586 karma · joined December 1, 2011

twitter.com/callumlocke
submissionscomments
callum85··on New brand site for Sony uses rendered JPG frames for 3D parallax scrolling
Couldn't disagree more. We're all adults here. Expletives add colour and succinctness. Being a dick is the problem.
callum85··on Meanwhile, at code.org
You're wrong to imply that quote marks should never be used this way. You knew that the quote-marked text was just a rhetorical paraphrasing to make a point, and so would any reasonable person. The context makes it completely obvious that it's not an actual quotation.
callum85··on Malicious Use of the HTML5 Vibrate API
> I agree that the browser hacking is unlikely and probably shouldn't be mentioned.

It's not that it's unlikely, it's just irrelevant. "We might accidentally introduce a security flaw" could be used as an argument against building absolutely anything.

callum85··on At last, a law to stop almost anyone from doing almost anything
There's nothing wrong with an article referencing something from another article in the same paper. It doesn't count as a circular reference if the articles are by separate, identifiable authors. Wikipedia needs stricter citation rules because it's harder to verify authorship.
callum85··on At last, a law to stop almost anyone from doing almost anything
It's a bit sensational, but I don't think that counts as losing the plot.
callum85··on Ask HN: Do you know anyone who left the tech world and found happiness?
Why are you linking to this?
callum85··on 2014 Predictions for Web Design
Sorry to be negative, but I didn't find any real predictions here, just statements about what is happening now, each followed by "...and I think that will continue in 2014."
callum85··on President Obama calls on every American to learn code
> "...absolute hell for anyone without an advanced mathematics background"

I'm a good programmer in a well-paid job. I've never studied mathematics formally. I've picked up a little knowledge of it from books, but I've almost never needed it for any programming I've done. Your statement seems crazy to me.

Of course, if you're reading fucking Knuth then yeah, there's some mathematics involved, but you seem to be arguing that you can't write an app without it, which is simply false. I've written apps. No maths beyond basic arithmetic.

callum85··on Invisible Child: Dasani’s Homeless Life
29,388 words. Serious question: has anyone read the whole thing?
callum85··on Today's Google Doodle: Grace Hopper
Thanks, I missed that
callum85··on Hotfile shut down
You don't need a licence to use a typeface in a design, only to install a font file on a computer. And OS X ships with a version of Helvetica so they might have just used that.
callum85··on Here's Waldo
I'm not sure if that applies in this case... There's nothing to 'understand' about the name Wally or Waldo. They're both just random, invented names, AFAICT.
callum85··on Here's Waldo
I think the margin of error for this kind of printing is usually only 3mm though, so they could still put him pretty close to the edge if they wanted to
callum85··on Here's Waldo
Slightly off topic, but I've always wondered... Is there any particular reason why they changed his name for the US editions? Is there something about "Wally" that sounds weird to Americans?
callum85··on Frosted glass effect with CSS and SVG
Weird. It works pretty smoothly on Chrome (about 50Hz). Just tried on FF/Mac, it's ultra slow there too. I think it must be redrawing the SVG every frame, if it's that slow. But in the HTML5Rocks tutorial Paul Irish says "Chrome, Firefox, Safari and Opera all hardware accelerate transforms and opacity." I'll try a few more things.

EDIT: ha, IE10/Win7 (in a VM) is super smooth for me. Still no idea what's going on with Firefox.

callum85··on Frosted glass effect with CSS and SVG
There isn't actually as much magic as I first thought. The SVG (which is loaded via data URI) actually loads the same cat image again, and blurs it. (The cat URL is hardcoded into that SVG string in the data URI). So you have to know the image URL in advance, and generate a data URI for an SVG that contains it. Therefore this wouldn't work as a CSS-only technique if you wanted a dynamic image URL - you'd need JavaScript for that.

Tip: you can copy the whole data URI into your browser's location bar it will load the SVG. Then you can open devtools and inspect it to see what's going on.

callum85··on Frosted glass effect with CSS and SVG
Thought of a way to do a materialization effect with good performance. Fake it. If you set a low opacity on the blurred element (ie, put "opacity: 0.5" on the ".glass::before", essentially mixing the blurred image with the sharp one beneath it), this actually looks like it's half as blurred as before.

Opacity can be animated very cheaply, entirely on the GPU (source: http://www.html5rocks.com/en/tutorials/speed/high-performanc...), so if you animate this property from 1 to 0, you should a good materialization effect, without ever asking the CPU to recalculate the blur.

I'm going to fork the codepen and try this, will report back...

EDIT: see http://codepen.io/callumlocke/pen/EKuvs

callum85··on Snapchat images that have "disappeared forever" stay right on your phone...
I use Snapchat, and loads of my friends use it. I have never met a single Snapchat user who is under the false impression that there is any guarantee that their messages will be deleted. The 'self-destruct' feature is just a fun twist on picture messaging; nobody would rely on it for securing sensitive info! Have a bit more faith in people's intelligence.

All this hand-wringing is by non-Snapchat users who have read about the app in the media and completely misunderstood what it is for. It's just for sending funny pictures to your friends, not for sending PIN numbers or secret mission briefings.

callum85··on Snapchat images that have "disappeared forever" stay right on your phone...
Worrying about this is like worrying that it's possible for your Scrabble Mobile opponent to secretly use a dictionary.
callum85··on Sold just got acquired by Dropbox and closed their company
Sold sold Sold.
callum85··on Riot.js – A 1kb client-side MVP framework
Just to clarify... Obviously it's not a pure allegory; there is an actual JS library being offered here. But I think the author intends it more as a reference implementation of some boilerplate to get you started with his DIY philosophy. I do think he's taken it too far by directly benchmarking it against frameworks, which are conceptually different things. It's all a bit mixed up, and this has caused a hypey and flamey conversation. But get past all that, and it does make an interesting point – that you can (surprisingly easily) achieve several things that we normally associate with frameworks, without a framework.
callum85··on Riot.js – A 1kb client-side MVP framework
> (And if this is all an elaborate joke, then I'm an ass for falling for it ;) But that's not the sense I get.)

Actually I think it is a joke. Kind of. It's an elaborate argument for a philosophy (basically: eschew frameworks, use jQuery for DOM and events, manage your own MVP structure).

They go on to say "You don't need a framework" (repeatedly), and "Riot is a manifesto for vanilla JavaScript and jQuery".

I see it as a functioning demo to present an opinion about how apps should be written. Viewed like this, the whole "world's fastest framework" thing seems tongue-in-cheek. Their use of the familiar "Unveiling a new framework" device is a conceit to push a philosophy. It's allegorical.

I admit that starting off with silly benchmarks undermines the point a lot :)

callum85··on For modern development Javascript indeed is a shit language
Silencing an error like that is catastrophic.

Silencing an error would be a problem, but in JS, it's not an error, because there's no concept of "wrong numbers of function arguments" built into the language. That's not to say you can't inspect the number of arguments yourself and throw an error, if some situation warrants it. But you don't have to do this. It's a very flexible, dynamic language. In some ways this flexibility makes things easier and more expressive, in other ways it necessitates more manual checking (or slower debugging). There's no catastrophe, just design differences.

callum85··on Always return on events is faster, but why?
Both functions return "undefined". They should be identical after JIT compilation.

The only thing I can imagine taking longer would be the compilation step itself... but I had always assumed jsPerf didn't work like this, i.e. I thought it would wrap the test code in a 'for' loop and then eval the whole loop, rather than doing the eval call inside the loop.

callum85··on We Like You So Much and Want to Know You Better
Can you be specific so I don't have to hunt around for what you're hinting at?
callum85··on A negative captcha
Won't people who use automatic form-fillers be wrongly identified as bots?
callum85··on Solved By Flexbox – Cleaner, hack-free CSS
It certainly can make business sense to use technologies that aren't yet supported by 100% of browsers in the wild.

• Websites that are mobile-only

• Things that aren't websites but use HTML5 for UI (e.g. many native mobile and desktop apps do this, browser extensions, 'installable web apps' for Chrome etc.)

• Websites for whom the IE audience is such a minority that it's worth either (a) blocking them out and asking them to upgrade, or (b) maintaining a minimal-effort fallback stylesheet for IE users so they can at least access a low-fi version of the site – in return for the gains in performance and UI quality that the vast majority of users get, and for incalculable benefits in developer happiness and productivity.

I do front-end for a newspaper website and I have to offer some support right down to IE7, but it's a realistic guideline (some support – content basically visible, with warnings displayed to those users suggesting they upgrade). If we were to restrict ourselves to browser features supported by 100% of our users, this would be a lowest-common-denominator approach led by the most low-tech 5% of our users, which would give us a big competitive disadvantage. I use new browser features all the time, and fallbacks for IE users. I haven't used Flexbox yet, but I wouldn't hold back if it meant we could implement something good for a large proportion of our users (especially since that proportion is likely to be made up of the users who are responsible for most of our revenue).

callum85··on Confusing UI in iOS7
> "You put far too much stock in your own experience and comfort exploring a tablet UI, and yet you seem to hold yourself as more representative as a "real user" than the author"

Nope. We're both totally unrepresentative, the moment we start analysing.

My complaint is: I don't believe that all the points the author made came from him genuinely finding things confusing and then working out which design inconsistencies caused his confusion. I think his ability to make those judgements are clouded by his endeavouring to analyse and critique a design (as would be mine). That's why we have user testing.

callum85··on Confusing UI in iOS7
wow how did I look over that again and miss it, sorry :)
callum85··on Confusing UI in iOS7
No you missed my point, completely. I didn't say anything about the changes in iOS7. I don't know whether they are good or bad for general users, and neither does the OP. Both of us can have our own feelings about it, and both can come up with theories that back our feelings up. But theories are a dangerous thing in UI design. They can be incredibly convincing and yet still be proven wrong in testing. As a UI designer you have to constantly doubt your own theories about what is good and bad, and trust scientific observations (of real-life usage and stats) over your instincts sometimes.
← PreviousPage 6 of 7Next →