Gentoo-Portage.com

Search Portage:
Login     Register     Language Tools

My New Site - 25/04/2006 03:27 GMT

I don't know how many of you have been to my previous site (thrasher7.net), I never used it and it was just a WordPress install. But I've now started a new site: mikevalstar.com.

Some people I chat with on IRC have asked me to teach them how to use PHP in a "proper" way; templates, database abstraction, and reusable code. I had tried just some IRC "classes" but timing wasn't good for everyone. I've been working on this idea for a few months and have come up with a plan on how the site will work and grow. The site is a tutorial in and of itself; the tutorials written on the site will be the site itself. Right now the site is extremely bare, mostly because at this point it's just a "hello world" script.

I think this will be a great way for people who wish to learn PHP to learn it using proper techniques in a real world enviroment. Because this code is live, I won't be able to half-ass anything, so everyone should get a proper understanding of every aspect of a complete PHP-based website.



Posted By: Mike Valstar

Comments

It sounds really good, can't wait to learn! :)
- 25/04/2006 08:09 GMT
Nice incentive!
- 26/04/2006 02:20 GMT
The second Tutorial is now up if anyone is interested. The 3rd should come on the weekend. I relased the first 2 so close together in order to get the site going but from this point on I plan on releaseing 2 tutorials per week.
Mike Valstar - 26/04/2006 02:23 GMT
> how to use PHP in a "proper" way; templates
Templates are NOT a "proper" way in PHP. PHP once was designed to negotiate the gap between code and HTML. If you want to seperate both of each other, better use Perl or Python.
- 29/04/2006 17:33 GMT
I seem to remember basic perl and python examples also not using templating:

johnny.sas.upenn.edu/~kazdan/210/web_script.html
wiki.python.org/moin/PythonInWebPage

the only language I know of that instils templating by default is ASP.NET; templating is best-practice in ALL webpage languages; weather it be a pre-built system or a custom one you SHOULD use one. For the project I'm writing I use a pre-built system because it is intended for the small web-developer.
Mike Valstar - 29/04/2006 18:04 GMT
The 3rd tutorial is up, "Lesson 3 - External Configuration"
Mike Valstar - 30/04/2006 02:42 GMT
very interesting !
I hope there will be an offline version of the lessons avaliable for download
Eld - 02/05/2006 16:51 GMT
rails also does templates by default. Any MVC framework does I'm sure :)

-Jeremy
Jeremy Kitchen - 03/05/2006 08:31 GMT
Oh, Lesson 4 is up ... its on databases and using PDO to connect
Mike Valstar - 05/05/2006 23:35 GMT
Lesson 5 is now up on seaparting the lessons from the main page
Mike Valstar - 08/05/2006 05:19 GMT
Lesson 6 is up for generating RSS/ATOM/PIE/OMPL feeds
Mike Valstar - 09/05/2006 20:16 GMT
Hi Mike! As you're still posting here, it might be the easiest way to get in contact with you :)
Lesson 0004 has a small error in "Changing the template", as you can't see the curly braces unless you click the link...

Besides that, keep up the good work. You're definately one of the coolest persons I "know" (gentoo-wiki, gentoo-portage and now PHP lessons... wheew...)
Rune Juhl Jacobsen - 18/05/2006 06:48 GMT
ok the problem on lesson 4 is fixed; its a problem with that patTemplate is registering the vars :) its fixed; i'll explain the fix on lesson 9. lesson 8 should be up in a few hours.
Mike Valstar - 19/05/2006 20:28 GMT


Leave a comment:

Please login to leave a comment