Skip to main content

How I Learned to Stop Worrying and Love the Code

2 min read

Summary: I 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.

Heads up! This post is archived and here for historical purposes. It may no longer be accurate or reflect my views. Proceed at your own risk.

I 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.

Keep reading

Ben Balter

I'm Ben Balter, and I write here about product and engineering leadership, open source, and showing your work. I wrote Open and Async, the playbook for remote and distributed teams. My open source projects have hundreds of millions of downloads. Most recently I was Director of Hubber (Employee) Enablement at GitHub, where I owned the internal platform 4,000+ GitHubbers use to get their work done. Before that: Chief of Staff for Security, five years running trust and safety, 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

Originally published April 12, 2011 View revision history

This page is open source Help improve this article on GitHub

Keyboard shortcuts

Search

  • / or ⌘ K Open search
  • ↓ or j ↑ or k Move through results
  • Enter Open the selected result
  • Esc Close search

Go to

  • g then h Home
  • g then p All posts

This page

  • y Copy link to this page
  • ? Show this list