News for hackers. Stuff that matters.
Re:Code Reads by oinksoft on Wednesday March 13, 2013 @09:45AM (#5368275)
Probably a silly question, but what's the deal with this?

  <button ...
   onclick="location.href='mailto:[email protected]?Subject=Code%20Read%20%5BSmall%5D'">
    Small
  </button>
Not a huge deal but I think it's good to show where a link goes on mouseover, especially a mailto: link (some mail clients take a while to start) ... it'd seem you want <a> here.
Re:Code Reads by jashkenas on Wednesday March 13, 2013 @10:38AM (#5368665)
Just started with a bit of CSS that worked better for a button is all. You're right that a real link would be better. I'll change it.

The idea is to perhaps eventually sell these directly on the page, via Stripe, in a more explicit fashion. But for starters at least, I think we'll work together on setting the scope of the "read", and keep things bespoke.

Re:Code Reads by joshmcmillan on Wednesday March 13, 2013 @09:53AM (#5368307)
Could be spam prevention?
Re:Code Reads by oinksoft on Wednesday March 13, 2013 @09:54AM (#5368320)
If that were the aim, and he's content to rely on JS, why not set the href attribute at runtime?

In any case I'd think a small contact form a worthy investment, as I doubt he's charging pennies.

Re:Code Reads by aviraldg on Wednesday March 13, 2013 @09:54AM (#5368313)
Maybe because of the fact that bots usually scan the href attribute, but not the onclick attribute?
Re:Code Reads by flebron on Wednesday March 13, 2013 @10:06AM (#5368389)
I would think any self respecting bot would notice "Hey, there's a valid email address on the page source code :D".
Re:Code Reads by dangoor on Wednesday March 13, 2013 @12:22PM (#5369395)
If someone has coded up a "self respecting bot" then I think we've lost all hope against the spam harvesters (unless, of course, that bot's notion of self respect includes the recognition that spam is annoying to innocent people :)
Re:Code Reads by kaoD on Wednesday March 13, 2013 @10:25AM (#5368569)
I tried clicking and it did nothing. That's bad advertising.