Skip to main content

How I Learned to Stop Worrying and Love the Code

2 min read
: I am gave a brief lightning talk at April's WordPress DC Meetup on the basics of HTML and PHP ("coding for dummies"). The goal: learn how to avoid breaking your website if you edit it. Below are the slides and recording.

I am gave a brief lightning talk at April’s WordPress DC Meetup on the basics of HTML and PHP (“coding for dummies”). The goal: learn how to avoid breaking your site if you edit it. Below are the slides.

The Cliff’s Notes are#

  • The process

    • The server executes PHP and outputs HTML, CSS, JavaScript, and so onScreenshot of the presentation showing the relationship between server, browser, and user
    • The user’s browser takes that output and renders a visual representation of the page
  • Client-side Languages

    • HTML – Static (unchanging) content; provides structure
    • CSS – Provides style and form
    • JavaScript – Provides interactivity
  • PHP – Wrapped with “php” and “?>

    • Variable - Text, a number, true/false, or a group of variable; identified by “$
    • If Statement – performs an action if a statement is true
    • While Loop – performs an action while a statement is true
    • For / Foreach – combines elements of while and if
    • Functions – predefined set of actions; always followed by “( )
    • Don’t forget semicolons

Thanks to all who came out or tuned into the live stream. Comments? Questions? I’d love to hear your thoughts below or feel free to contact me.

Originally published April 12, 2011 View revision history
Share

More to explore

WordPress as a Collaboration Platform

1 min read

A presentation on how teams use WordPress beyond publishing, from collaborative document editing to progress tracking and workflow integration.

How I Atom (for prose)

5 min read

A detailed look at the packages, prose linters, and configuration tweaks I use to turn the Atom text editor into a powerful Markdown writing environment.

Test your content

4 min read

Treat content as code and unlock CI for prose. Use HTML Proofer and Travis CI to automatically test every link, image, and change.

Everyone Contributes

3 min read

Code is just one way to contribute to open source. Projects thrive when they create clear paths for non-technical contributors to participate.

Ben Balter

I'm Ben Balter — I write here about engineering leadership, open source, and showing your work. I wrote Open & Async, the playbook for remote and distributed teams. My open source projects have hundreds of millions of downloads. I was the Director of Hubber Enablement at GitHub, where I helped thousands of GitHubbers do their best remote work. Before this role: Chief of Staff for Security, enterprise PM, and GitHub's first Government Evangelist. Before GitHub: attorney, Presidential Innovation Fellow, and member of the White House's first agile development team. More about the author →

Follow along: Bluesky LinkedIn

This page is open source Help improve this article on GitHub