Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 311 of 429)

Sending Data on POST with WordPress

The title of this particular article is somewhat misleading as it has nothing to do with sending an email upon creating a new post in WordPress, but actually whenever the HTTP `POST` action has occurred.

Additionally, the methodology describing below isn’t relegated to just sending emails – it can be used when any data needs to be managed upon a `POST` request. This includes sending emails, serializing data to the database, evaluating information to be presented on the next page view, or whatever else.

Of course, one of the best ways to actually demonstrate how to do something is to give some practical example, so for all intents and possible, I’m going to show how to structure a project using the event-driven model of WordPress to send an email upon a `POST` request.

Continue reading

Write For WPTuts+ – Here’s How, Here’s Why

Comments are closed on this post. If you're interested, please comment on the annoncement..

One of the things that I’m most passionate about as it relates to software is education. This is why I spent a significant portion of my week blogging both here and on other sites, as well.

In short, I think the Internet has given us as all an amazing vehicle for a variety of things – obviously – the least of which is not helping others to move further, faster in the direction that they’d like to take their career.

This is one reason why I try to write for WPTuts+ and why I always recommend others do the same, if they have the time.

Continue reading

HTML Code Styles: What Are Your Strategies? – Part 2

This is a follow-up post to one that I originally wrote in December 2012. Be sure to read it, as well!

Months ago, I wrote a post on some of my preferred HTML Code Styles during which I shared two specific things that I do whenever I am writing markup.

Specifically, I do the following things:

  1. Comment Terminating Tags
  2. Underscore Class Names

When it comes to writing code, there are always going to be standards – well, at least there should be – that depend on the proverbial sandbox in which we’re playing.

These standards will outline certain things that we should do, but there are always bound to be gray areas. Case in point: I know people have often commented (no pun intended) that they aren’t a fan of the way that I terminate certain closing blocks with comments such as `// end if` or `// end while` or `// end class`.

Which is completely fine – to me, that’s an example of a gray area that gives us, as developers, room for implementing our own unique styles. But then there are others that really should be reconsidered.

And that’s what I’ve had to do with some of my markup styles.

Continue reading

Friction Between Developers and Customers: It’s Unnecessary

In my limited experience, one of the most common things that I see in working with software development contracts has to do with the friction between developers and customers.

Or, more specifically, it’s about the challenges of communication. challenges that exist between communicating requirements between both us, as the developers, and our customers.

It’s not at all uncommon to hear:

  • Customers say something like “my developer didn’t do [whatever it is] I asked him to do,” despite the fact the developer believes s/he did exactly that.
  • Developers will also say “I’ve built exactly what the customer asked me to do,” despite the fact that customer doesn’t necessarily agree.

So if both parties are working together to build something together, then why is it so common for conversations like this occur?

Continue reading

My Recommended JavaScript Books

When it comes to learning JavaScript, I’m occasionally asked what books I recommend. Some of these come from those who are just getting into the language; others come from people who have been programming for sometime.

For whatever it’s worth, I don’t consider myself an expert in JavaScript, though I really do like working with the language. I also love seeing its adoption over the web, and some of the technologies that have emerged that make it possible to write both client-side and server-side applications.

Anyway, so when it comes to JavaScript, there are two books that I always recommend to both beginners and novice programmers alike.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑