Code

  • WordPress and .gitignore

    Updates have been added after the jump!

    In the coming weeks I’ll likely put a lot of my own personal code (as in, not code people pay me to write) in public repos on Github. A lot of my work is WordPress related so I’ll make a local repo at the root of some WordPress install as to not complicate things. In order to make sure I don’t put up something unintentionally (like say, my wp-config.php file), I’ve created a more thorough .gitignore than what I have seen from automatic generators. If you’re interested, I put it into a Github Gist, so you can just copy and paste it. If you think I’m missing something or am wrongfully excluding something, leave a comment on the gist!

    Github Gist: wordpress-ignore

    (more…)

  • Use Input Masks for Better UX and Easier Validation

    Recently I was developing a few forms for a project at work and wanted a fairly specific format for the input of one of the fields. It was a time of day, and since the <time> element isn’t very well supported in browsers yet, I opted for my own text input and validation. While I do provide some examples for users and check the input on the server side, I opted for input masks on the front end of development to make the form validation easier, and more importantly, to make using the form easier.

    (more…)

  • My Everyday Things, Part 1: Workflow

    Recently I started following Everyday Carry, a blog dedicated to showcasing the items that people must have on an everyday basis. I decided that in an effort to blog more, I would do a short, 3 part series on the stuff I use everyday. The series will be broken up into 3 parts: today’s installment is Workflow, then Carry/Misc, then Home Setup. Let’s jump in!

    (more…)

  • Include a Sidebar with a Shortcode in WordPress

    Recently I was faced with a pretty interesting problem where I wanted to have a page that was structured: Content – Widgets – Content. Instead of hacking together some sort of Content – Sidebar – Metadata on the backend, I decided to make sidebar widgets accessible via a shortcode you can use in the WordPress editor. You can download the code on Github here.

    (more…)

  • Trying Flexbox at Casabona.Org

    If you’ve visited Casabona.Org this week, you noticed that the homepage got a bit of a refresh; I decided to add more color, have more concise and focus content, and tried to give visitors an idea of what I do as soon as they get to the site. One new thing I tried was using the Flexbox Layout Module to layout the two-column area. Here’s how I’m handling it.

    (more…)

  • Sass, Sublime Text, Github, and Changing my Development Workflow

    When I left the full time freelancing world 2.5ish years ago, I had a very specific way I did things and I enjoyed it; however, admittedly, it wasn’t the best. I was using Coda, not making local copies, not using any form of version control, and my frameworks were becoming stale. I’ve been going to lots of WordCamps lately, talking to a lot of coders, listening to a lot of podcasts, and I came to the conclusion that the way I did things when I left the freelance world, the things I still do today, are not only outdated, they are slowing me down, and are dangerous (in the case of data loss). I decided to change  that.

    (more…)