How I Learned to Stop Worrying and Love the Code

Posted April 12, 2011 | View revision history

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, etc.Screenshot 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.

benbalter

Ben Balter is a Senior Product Manager at GitHub, the world’s largest software development network, where he oversees Product Security and Platform Health. Ben was previously responsible for the platform’s trust and safety efforts, delivering more than 500 individual staff- and user-facing features in support of community management, content moderation, privacy, and compliance to ensure the GitHub community remained safe and welcoming for all software developers. Before joining GitHub’s Product team, Ben served as GitHub’s Government Evangelist, leading the efforts to encourage more than 2,000 government organizations across 75 countries to adopt open source philosophies for code, data, and policy development. More about the author →

This page is open source. Please help improve it.

Edit