Originally, I decided to build my portfolio site on Drupal. Even before that, I wanted to build my portfolio site from scratch. Ah me and my “old-school” ways. After some research and tips from a fellow Web developer, I decided what I was really looking for was a site that was minimal effort to get up and running — and maintain — so that I could focus on my actual training and building of samples to be housed there. A free content management system sounded like the way to go.
Monthly Archives: May 2012
PHP: Variables, Constants and Scope: Favorite Colors
While learning the basics of PHP variables, constants and scope from “PHP The Good Parts” (MacIntyre, Peter B. PHP: The Good Parts. USA: O’Reilly, 2010), I wrote a simple page about favorite colors. Let’s break it on down — and then take a look at the less than exciting, but educational, page in action!
First, we start with the code that must exist at the top of every PHP page.
<?php
Next, let’s write a heading on the page using echo
, and throw in some comments to see how those are done in PHP. The multi-line comment style is also used in Javascript.
PHP: Getting to Know You
I have been working for years with client-side scripting wonder Javascript. Over that time I had dabbled in some ASP, and in some PHP even less. Server-side scripting was more of an “as-needed” item in my undertakings, but I knew in time I wanted to learn more. A short while ago I started working through a thorough book on ASP.NET. About a third in, I took a step back and started down my journey of really discovering what I should have in my coding toolkit as a Web Developer. PHP emerged as an important tool to have and I decided to journey there first instead. ASP.NET will be more intertwined into my PHP learning instead of at the forefront for the moment, but I realize their similarities and am excited to develop skills in both over time. Oh I have the plans my friend, I have the plans…
HTML5: A Canvas Logo
HTML5 is here! A new way to write our HTML pages so that, eventually, they will show up consistently among all the browsers floating around out there. There are so many neat things about HTML5 as well, including new semantic elements to help organize our content better, simplified tags at the top of our pages, and the new tag that everyone wants to play with first – canvas!
I decided it would be a fun little HTML5 canvas project to create a possible logo for my blog I was working on at the time in Drupal.