My 2013 Non-Resolutions
10 New Year’s Resolutions Every Web Developer Should Make
NetTuts+ recently posted a very good article titled " 10 New Year’s Resolutions Every Web Developer Should Make". Written by Andrew Burgess, the article goes through ten recommendations every Web developer should consider (as you would imagine from the title). I particularly like:
2. Get Better At What You Know
3. Explore a New Field
6. Take Better Care of Yourself
I’m really not a New Year’s resolutions kind of person (that being said, my next post will be my goals and hopes for 2013), but I thought this article really presented a great list of ways Web developers can improve their skills and, frankly, the quality of their lives.
What’s on your New Year’s resolutions list?
Screenqueri.es for Mobile Device Testing
Screenqueri.es is a relatively new site, currently in beta, for testing how a Web site will look on various mobile devices. It’s an absolute snap to use: just enter the URL of your (or any) site, and Screenqueri.es will load a preview of that site, on a grid of pixels, as it would be loaded by a mobile device. Here’s how part of my site looks on an iPhone:
Once you’ve loaded the page, you can use the menus at the top to change the device or to rotate the device (virtually). The options include both phones and tablets:
I haven’t personally verified the results on all the devices, in part because I don’t have all the devices, which is pretty much the point of using a site like Screenqueri.es. When you get the chance, see how your site looks.
Writing the PHP Code to Process Payments with Stripe
In an earlier post in this series, I covered how you create an HTML form for securely handling payments via Stripe. In the previous post, I walked through the JavaScript that goes with that form. As explained in that post, thanks to the Stripe.js library, the proper HTML, and a bit of JavaScript, you can easily and securely handle payments on your site without getting mired in the PCI compliance muck. The secret is the Stripe.js library: it sends the customer’s payment information from the client to Stripe’s server and returns a token that Stripe associated with that payment information. Then, when the form is submitted, the token can be used by the PHP on your site to actually process the payment. The customer’s payment information, however, never touches your server. You get paid and the customer is protected.
In this post, I’ll walk through the necessary PHP code that actually processes the payment request. Note that this article assumes that you have read the previous articles and are comfortable with PHP.