Once a user has submitted a form, you generally don’t want them to submit it a second time.1 A nice way to handle this is to disable the submit button once the form has been submitted, while replacing the text in the submit button with a message to let the user know that their desired…
Development Archives
-
-
When I first made my transition from front-end development into back-end development in ~2002, I had two things to learn: a server-side language how to talk to a database (SQL) on top of my knowledge of HTML, CSS and JavaScript. With these five basic things, I was able to build some useful stuff. I’m working…
-
For some reason, the example code in the Laravel docs for their Mail feature neglect to show how to pass defined variables into the closure. Here is something a little more useful. View the code on Gist.
-
I’m a big fan of keyboard control in productivity applications. I love being able to type my changes/additions and submit them without needing to tab around too much, or gasp grab the mouse. I’m not the only one who feels this way. David Walsh has a great post explaining how to submit web forms with…
-
I was recently trying to make some API requests from within WordPress using `wp_remote_get()`, but the site I was asking for data from was rejecting requests from the default WordPress User Agent. I tried to set the user agent to something different, but it still wasn’t working: $response = wp_remote_get($url, array( ‘timeout’ => 20, ‘User-Agent’…
-
I am in the process of setting up a development environment on a new machine and one of the things I decided to do is route all .dev domains to my local (built-in) Apache web server while I route all .app domains to my Laravel Homestead Vagrant environment. To never have to monkey with your…
-
There’s been a ton of recent conversation in the iOS world about the inability for most indie developers to create sustainable businesses through the iOS app store. In particular, these devs are talking about apps that require larger development efforts – they want to charge more than “impulse purchase” prices for these, and thus want…
-
My colleague Steve has a post on the Crowd Favorite blog about some JavaScript optimizations we did to speed up mobile performance on a client’s site. It’s pretty interesting – check it out.
-
I found this post while sorting through my old drafts and decided to go ahead and publish it rather than trashing it. Hopefully the code samples don’t break too badly in WordPress 3.9. I’ve talked a bit about when to use custom taxonomies and when to use custom fields/post meta (and how they can be…
-
Yesterday I watched a colleague’s Sublime Text 2 crash repeatedly as he tried to navigate the search results in a large project. BBEdit‘s search (and edit in the results window) feature is a part of my normal development process. I think it crashed on me once about 8 years ago.
-
-
On Tuesday I was back in the office and itching to get back to work on my current project. That morning I got two emails about an incompatibility in Carrington Build‘s Rich Text module and WordPress 3.9. Sure enough, the change in WordPress core to upgrade to TinyMCE 4.0 coupled with changes in how TinyMCE…
-
Relating to yesterday’s post on inertia, I wanted to pass on another nugget I’ve learned about how to approach and define problems: working backwards. I’ve found this to be useful in both technical and business situations and I use it all the time. Basically, start with the end result you want, and figure out how…
-
I recently got an email that asked: Do you ever question whether WordPress is the correct CMS for something? I am a big WordPress fan too and I’ve solved some really cool content management challenges with it but there are times when I think, this site would probably be faster and more efficient if it…
-
Meeting Rafe and getting to chat with him at Monktoberfest each year has been one of the event’s highlights for me. And I love stories like this. Things that happen + thoughtful people = interesting lessons to learn.