HNHacker News
TopNewBestAskShowJobs

barefoot

358 karma · joined February 4, 2011

[ my public key: https://keybase.io/spaceandthyme; my proof: https://keybase.io/spaceandthyme/sigs/XTZP3VtjTiWnEoNFyFGms8vkwW6UKAFuFD1vquaREIs ]
submissionscomments
barefoot··on Show HN: a small jQuery Form Validation library
...which means you really ought to have the same rules in effect on both the client and server. With a large number of forms this can lead to some ugly maintenance issues.

How do other developers solve this problem?

I've found a very practical solution on the .NET side of things is to use data annotations with MVC - which allows you to markup your model with metadata describing the shape of acceptable data and have it automagically validated on both client and server - but haven't found anything similar in PHP and other languages. Any recommendations?

barefoot··on Show HN: I built a thing
Ha, I had an idea to build a product around this (and related services) the other day.
barefoot··on $.url() - A simple, lightweight url parser for jQuery
Thanks for having the link go directly to examples.
barefoot··on Give A Damn
> The conversation you have is "Boss, I can crank this out quickly but the faster its written the more likely it will have some future problem in it."

Not entirely sure if this is satire or not but it's a genuine conversation that I've had with a few clients.

I call it "the spectrum of quality" conversation. I can write beautiful unit tested code that will not explode unexpectedly at 3am on a Sunday several years later...but it won't be (relatively) quick to get there.

Alternatively, I can rush through something that will have to be rewritten later and it'll only take me a few hours. Part of me dies writing that type of code but there's a time and a place for it.

You want to hit the afterburner? No problem, but there are consequences.

barefoot··on I am a statistician and I buy lottery tickets
I also have a background in statistics (to a degree) and gamble but prefer deep OTM puts to powerball.
barefoot··on Publish interactive 3D content online
Homepage is unusable on Safari on an iPhone.
barefoot··on The Decline of MySQL?
No transactions support?

http://dev.mysql.com/doc/refman/5.0/en/ansi-diff-transaction...

barefoot··on Visual Studio 2012 and .NET Framework 4.5 released
I've been using (publicly available) pre-release versions of Visual Studio 2012 since late last year.

The all-capital elements certainly appear to be a stylistic design decision but it's used so sparingly (and less so now) that it's difficult to complain about. If it's not for style then it's a brilliant channeling of focalism in a release with hundreds if not thousands of changes:

"What's wrong?"

"The menu casing - the main menu is all in capital letters!"

"That's all?"

[Pause]

"You mentioned a discount if I buy today, right?"

Not to sound like a shill, but the IDE includes a number of practical improvements over 2010 that are much appreciated. Projects now load in the background, search has been embraced and works extremely well, and for all of the complaints about the UI it's a lot less visually noisy and just feels better to work with over longer coding sessions.

barefoot··on Curiosity rover: Martian solar day 2
Works exceptionally well on an iPhone (appears to use accelerometer/gyroscope).
barefoot··on A technique for hiding your JavaScript code
Comments should make it fairly straightforward to accomplish:

function foo() {

/* ...characters for image data... /

bar();

/ ...more image data... */

The asterisks are not showing up but you get the idea. It checks out with the comments part of the javascript spec as well:

http://ecma-international.org/ecma-262/5.1/#sec-7.4

...as the text inside the comment can be any unicode code unit except for an asterisk (For source Character rules see http://ecma-international.org/ecma-262/5.1/#sec-6).

barefoot··on A technique for hiding your JavaScript code
The "11" at the end indicates that he is indeed kidding.
barefoot··on 20 lines of code that beat A/B testing every time
Exactly what I was thinking. What are we missing?
barefoot··on Things Not Strings -- Google Launches Knowledge Graph
Presumably the booking would be done though an API.
barefoot··on Things Not Strings -- Google Launches Knowledge Graph
When did google say that they would factor microdata into SERP ranking?
barefoot··on BMW’s full-color HUD: distraction, minimizer of distractions, or costly gadget?
How visible is it during the day?
barefoot··on Ask PG: Would Less Anonymity Help HN?
That sounds like an interesting idea.

If implemented, it would also be possible to use patterns of voting to estimate (to some degree) how likely a user is to up/down-vote based on the author alone. Maybe dye a user's name purple for "groupie"?

Of course, stylometric analysis would still give away many of the users here well before the sixty minutes is up. A real solution (to burn through all usability in the name of meritocracy) would be text rewriting ala "A Scanner Darkly".

barefoot··on Google's self driving cars can navigate drive-through restaurants.
> Cannot be unseen*

*http://www.wired.co.uk/magazine/archive/2012/04/features/the...

barefoot··on Principle of Least Coding
An important corollary to that statement is:

"And never show the prototype to non-developers".

barefoot··on Books Programmers Don't Really Read But Recommend
Likewise.
barefoot··on No matter how much "karate" you know, someone else will always know more.
> The only true authority stems from knowledge, not from position.

That's certainly not the full story. In many organizations, having a lot of knowledge about something that someone else is supposed to know more about is a good way to make them feel uncomfortable or in extreme cases dislike you.

From a practical vantage, knowing how to apply what knowledge you do have (and having the will to follow through) is a lot more valuable.

It doesn't help to have a broad and deep understanding of software development and business but be socially awkward and suffer from severe akrasia.

barefoot··on Turning down Zynga: Why I opted out of the $210M Omgpop buy
Well, "evil" is fairly subjective and often times depends on what side of the table you are on, as I think he points out in the article.

As for specific reasons why they could be viewed as such, there are plenty out there already. Here's an AMA with a previous engineer that doesn't paint a pretty picture:

http://www.reddit.com/r/IAmA/comments/pc6j9/iama_former_full...

barefoot··on Microsoft apologizes over 'Smoked by Windows Phone' controversy
For those of you not familiar with TouchDevelop (like me):

http://research.microsoft.com/en-us/projects/touchdevelop/

barefoot··on Help me Hack the Lottery or, the worst $90 investment ever
Looks like those are for (three character) codes under the revealable area of the card. Kind of like a checksum for what was won.

Based on the comments it looks like the reliability is a little bit sketchy.

barefoot··on Show HN: TheReelBox, find tonight's movie
I think he was referring to Geo-IP location (approximating your location based on your ip address). About 60-75% of the time it's accurate to the city - provided you're not using mobile broadband.

Of course there are a number of other ways to get higher resolution location without consent. An older but commonly known one is Samy's XSS exploit (http://www.samy.pl/mapxss/).

barefoot··on A Dependable iPad
> The use case for the iPad’s camera is FaceTime, and for me and I’m likely in the minority here, FaceTime is a classic You-Gotta-See-This-Once feature. You demo it once and never use it again. The line I draw for the cameras is “it can’t be crap.”

Am I the only one that uses FaceTime on a regular basis?

I have family scattered all around the world and pretty much every call I get from them comes in as FaceTime. Most of my family has iPhones and it just works for them. The audio quality is great and it's so much better than a normal phone call. Does everyone else use Skype? Are your family members comfortable with using that?

I would love a very high definition front facing camera on the iPad 3 to compliment a possible retina display. I think that would make it a very compelling video conferencing device.

barefoot··on Google to Sell Heads-Up Display Glasses by Year’s End
That would be amazing, and really useful at tech conferences.

One could imagine something like Klout running in the background and telling you who's important, who has similar interest to you, etc... The social implications are mind blowing.

barefoot··on Our unrealistic views of death, through a doctor’s eyes
That TED talk was amazing. Thanks.
barefoot··on Drones With an Eye on the Public Cleared to Fly
500 feet minimum from any person, place, or thing and 1,000 feet in densely populated areas.

Although, 500 feet is not far at all. I've taken a friend up with a telephoto lens and a mid-range SLR and even at 1,000 feet there's not much privacy.

barefoot··on Drones With an Eye on the Public Cleared to Fly
This data is already being collected (anonymously) to some extent:

http://www.skyhookwireless.com/location-intelligence/

barefoot··on Canadian Digs Out Basement Using Only Radio Controlled Scale Tractors and Trucks
Or run by mechanical turk HITs...
← PreviousPage 3 of 6Next →