Forum Moderators: coopster

Message Too Old, No Replies

teaching php

         

kumarsena

6:39 pm on Oct 31, 2004 (gmt 0)

10+ Year Member



just wondering,,,,imagine having someone who is not familiar with web development, no programming experience, and does not know what php is. only experience is office duties and email and basic surfing. and also no idea about client server model or networking at all.

how do i approach teaching php? where do i start? how do i approach writing learning material..

apologiers if this q sounds stupid....just thought i introduce someone i know to something constructive, but could use some advice....
k

dreamcatcher

7:18 pm on Oct 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Teaching something you know nothing about isn`t going to be much fun. Books/online tutorials are the first port of call. Next a basic project to help you grasp the basics.

A lot of tutors learn from their students, so its not important to know everything, but you need to know something. Start from the bottom and work your way up.

:)

ergophobe

7:55 pm on Oct 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've never really done it, but how about some sequence like this?

- start by looking at some web pages and using the "view source" to show how things get translated from html to a nice page.

- go back and create a simple web page that is essentially a "hello world" type of thing.

- convert that to php with simple echo statements.

- break out the <head> stuff and put that in an include and include it.

- build a table using a looping construct and just have it put 1-1, 1-2, 2-1, 2-2 etc in the cells

- create a multi-dimensional array with firstname, lastname, birthday and now use your loop to create a table. Multi-dimnesional arrays are surprisingly difficult for some people with no programming/math background.

- send the array to a function that returns that table as a string, then echo the string.

- put the function in a different file that gets included as a function library.

When you get your pupil to this point, check back here with a report!

Tom

kumarsena

8:24 pm on Oct 31, 2004 (gmt 0)

10+ Year Member



dreamcatcher...its not me not knowing php, its the pupil..anyways, tnx for the advice guys. ive been thinking abt it, and basically to make sure the fiundations of php is understood, need to start with some client server stuff so that the flow of inforfamtion is clear. then work my way to how to deal with the flow itself and manipulate it, using php,

im gonna try it soon, adn sure, will report back once in a while to let know how it goes. just need to covince the pupil its for her own good shes learning it. he he

k

Storyman

4:58 am on Nov 1, 2004 (gmt 0)

10+ Year Member



It seems that you need to start with the learning objective and work backwards. There is a fine line between engaging the student with a goal that is within their (precieved) reach and the student disengaging because of information overload that doesn't immediately connect.

You didn't mention the educational level of the students or their age range. Are they currently students in an educational institution? Adult learners?

Are you more comfortable in the traditional educational system or constructivism? Are you teaching in brick & mortar or online?

mincklerstraat

3:22 pm on Nov 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd also encourage your student to get a book on paper. I found this enormously helpful; it helps enormously to go through a certain coding problem and solution, and then later to look at the same problem and solution again, and then once again - while you're far away from your computer, maybe sipping tea in an easy chair. Many notions of programming can seem odd or alienating at first, and the paper book helped me out a great deal. I think a good part of it was just the psychological hurdle - and the paper is nice since it's so concrete, you can always go back to it when you've forgotten something. Go to the techiedweeb bookshop with your student and make sure she gets a good one - written at least since 4.1 came out (2002).

kumarsena

9:48 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



the pupil is 28, has as i mentioned some basic understantnding of pc use, but no programming experience. no current education going on. this is a 'private' purpose as a favour, if u like.

and yep, ive been thnking abt books as well, ive thought many times i could use it myself aswell...

no its not online. it will be i person.

im not sure when i will be doing this, it could for all i know take another few months before i even get started, but no harm in doing some research :)

Storyman

10:20 pm on Nov 1, 2004 (gmt 0)

10+ Year Member



Kumarsena,

Depending on the student's interest & skill level, I'd suggest you developed a learning objective on her needs & interest, then break it down into smaller goals.

Not knowing your relationship with the student I'd also suggest you find out how she learns best. Some students are "hands-on," while others do better reading about it, while others knowledge acquisition is by watching someone do it. She'll appreciate that the material is presented to her in a form that facilitates her learning.

Most of all keep in mind that you want her to be inspired to learn the material.

Anyway, that's my 2 cents.

kumarsena

5:39 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



tnx...

ergophobe

6:04 pm on Nov 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A project-based approach is fine, but if you start right in without covering the basics, the code will be terrible and need to be rewritten (at least in my limited experience of teaching PHP to my wife). You might think you can guide someone to good code, but you can't throw too much at someone at once and writing good code takes a little experience.

As this person knows nothing about HTML even, I would follow a "baby step" approach. The HTML page that you start from could be the front page and you slowly build out to a flexible, dynamic solution. Still, you want to break tasks down into simple, concept-based tasks that a person can grasp in one session. When they have understand variables, you can show them arrays, for example.

Never forget that you too learned some of this over a long slow apprenticeship and many of us didn't even write our first line of PHP or HTML until after many years of coding in other languages. Personally, my coding experience is really quite limited compared to many folks here, but even in my case PHP was the sixth language I had toyed with so I was surprised at how hard something as simple as multi-dimensional arrays can be for beginners.

Tom