473,786 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Working more efficiently in PHP

This is a tool for learning the PHP programming language:
http://www.yoyobrain.com/subjects/show/3120

You can look through the tabs to find information, and you can have
the site quiz you to help you retain more of the language. Our
developers have found this method useful, and are building YoYoBrain
to help others learn prorgmming languages. Any feedback on the site
and the flashcards is appreciated.

Best,

Elizabeth
Jul 29 '08 #1
9 1351

"Elizabeth Barnwell" <el************ ***@gmail.comwr ote in message
news:01******** *************** ***********@w7g 2000hsa.googleg roups.com...
This is a tool for learning the PHP programming language:
http://www.yoyobrain.com/subjects/show/3120

You can look through the tabs to find information, and you can have
the site quiz you to help you retain more of the language. Our
developers have found this method useful, and are building YoYoBrain
to help others learn prorgmming languages. Any feedback on the site
and the flashcards is appreciated.
ask questions that are good questions, and then answer them correctly. ex.,

'special tags that tell apache that php should execute code' paraphrased.

first, you assume php is being run on apache. second, your answer: '<? ?>'
paraphrased, is wrong on several counts:

apache (whatever web server) can run php in a couple of modes, however
afaicr, it passes requests of for php to process in masse, not line by line.
it is *PHP* that interprets the tags so that it can tell when it needs to
process stuff. also, it is bad form anymore to just use <? as an opening
tag...<?php is the recommended/correct answer. i could go on...but...

finally, in another question, you ask how to output php results to the
browser. 'echo()' was your only answer. print, sprintf, print_r, and even
the venerable short-hand <?= ?notation are a few of MANY possible answers.

i went through about 20 of the flash cards and found either the question was
a poor question and/or the answer was a poor, or downright wrong answer.

perhaps you should have an actual php developer write the questions and give
the answers. more importantly, have a php illiterate check both using the
manual (jerry stuckle would be perfect for that job :).
Jul 29 '08 #2
This is a tool for learning the PHP programming language:
http://www.yoyobrain.com/subjects/show/3120

You can look through the tabs to find information, and you can have
the site quiz you to help you retain more of the language. Our
developers have found this method useful, and are building YoYoBrain
to help others learn prorgmming languages. Any feedback on the site
and the flashcards is appreciated.

Best,

Elizabeth
Actually, that's not a bad idea; I kind of like it. I have to admit the
domain name sort of put me off at first, but you have a good concept
there IMO and as far as I know, unique. I think you need to do more
patter and introduction type work to better identify just exactly what's
going on, why, and who the intended audience is, but the meat is there
and looks like it could work out. Eventually I could see multiple
stages: Ignorant first time beginner, beginner, almost intermediate,
imtermediate, whatever.
Also IMO your font size is a little on the light side; I'm visually
impaired and without magnification I couldn't read your cards.

HTH

Twayne
Jul 30 '08 #3
Thanks, everyone, for the helpful advice. We are trying to make this a
community of learners- so people can add comments/site resources etc.
to correct errors like the ones you found. But currently, you can only
create and share material - so, to Dale's point, any PHP developer
could make their own questions/answers- it's not limited to just one
set of flashcards. The problem is that there's not much community
stuff up yet- but we're working on it (...and font sizes - thanks
Twayne!)

Thanks again,

Elizabeth

Jul 30 '08 #4
Twayne posted in comp.lang.php:
>
>"Elizabeth Barnwell" <el************ ***@gmail.comwr ote in message
news:01******* *************** ************@w7 g2000hsa.google groups.com...
>>This is a tool for learning the PHP programming language:
http://www.yoyobrain.com/subjects/show/3120

You can look through the tabs to find information, and you can have
the site quiz you to help you retain more of the language. Our
developers have found this method useful, and are building YoYoBrain
to help others learn prorgmming languages. Any feedback on the site
and the flashcards is appreciated.

Dale, instead of bitching, why not offer actual assistance? Your
response is nothing but a put-down for PHP beginners and worse than
useless the way you set your stance.
Twane, I sometimes come here just to watch the Steve & Jerry show, but
overall, and as "an experienced programmer not too far past the intermediate
stage," I feel Dale/Steve is right in this case. And IMHO he did provide some
constructive feedback.

Elizabeth, I don't know if the following should be categorized as "asking
proper questions" or if I'm suggesting some sort of qualification for the
questions/answers.

---
For example, besides assuming Apache Web server, the flip cards also assume
MySQL:

Q. Discover how many rows are in a result set
A. mysql_num_rows( )

What if I use a different database? Should the questions - or the entire
course - be qualified as pertaining to Apache Module, MySQL, whatever
else...?

---
(Note: all line feeds in my "A." answers below are as I see them in my
current browser configuration.)
---

Inconsistant/incorrect terminology and syntax:

In the Default tab:
Q. Conditional operator. First evaluates an expression for true or false
value then executes one of 2 statements depending on the result of the
evaluation.
A.
( test-expression ) ? if-true-do-this :
if-false-do-this

In the Default1 tab:
Q. How do you do a ternary operator which returns one expression if true and
another if false
A.
{expression} ? return_when_exp ression_true :
return_when_exp ression_false;

---

Missing < and characters in the answers. For example, the one Dale/Steve
already mentioned now shows:

Q. Command to dynamically write content into a generated HTML page
A.
echo (); ex: ?php echo( "h1Hello
world/h1" );?

---

It is difficult to distinguish the difference between suggestive/explanatory
comments and example code in the answers (see previous example above). Better
linefeeds /might/ help.

Another example:

Q. Syntax for logical AND, OR, and NOT operations
A. AND - / and OR - || / or NOT - !

What?

---

Inconsistant conventions used.

copy ( $source, $dest );
unlink()

In the two examples above, variables and ; are used in one example, yet
omitted in the other.

IMO, all manuals/help systems should use a defined convention for all syntax
and said convention should be easily accessible. (Pick up any tech
manual/book and you'll likely see it in the first pages.)

Consistant punctuation is also a plus. Some question/statements use a period
at the end while others do not. I don't recall seeing any question marks,
though there may be some.
<disclaimer>
I haven't used flash cards since I was a young boy, so my opinion may be off
kilter on some of the above. Are they actually used today in schools/learning
systems beyond Kindergarten age? I seem to recall flash cards were intended
for memorization rather than as a learning tool. And it seems to me that
learnin' PHP would be far easier than trying to, somehow, memorize it. I just
don't see how flash cards are beneficial here.
</disclaimer>

--
Mark A. Boyd
Keep-On-Learnin' :)
Jul 31 '08 #5
Message-ID: <Xn************ *************** *****@194.177.9 6.26from Mark
A. Boyd contained the following:
And it seems to me that
learnin' PHP would be far easier than trying to, somehow, memorize it. I just
don't see how flash cards are beneficial here.
I had a quick look through the first few before I got bored. I haven't
committed the entire PHP function set to memory, nor do I intend to. It
may be useful to me if I could remember the difference between implode
and explode but it's no big deal if the manual is just a click away.

--
Geoff Berrow 011000100110110 0010000000110
001101101011011 001000110111101 100111001011
100110001101101 111001011100111 010101101011
http://slipperyhill.co.uk
Jul 31 '08 #6
Geoff Berrow posted in comp.lang.php:
Message-ID: <Xn************ *************** *****@194.177.9 6.26from Mark
A. Boyd contained the following:
>And it seems to me that
learnin' PHP would be far easier than trying to, somehow, memorize it. I
just don't see how flash cards are beneficial here.

I had a quick look through the first few before I got bored. I haven't
committed the entire PHP function set to memory, nor do I intend to. It
may be useful to me if I could remember the difference between implode
and explode but it's no big deal if the manual is just a click away.
You're right in that while learning the language, much of it does get
committed to memory. I tend to think that happens through usage, learning
from mistakes, and especially manual lookups rather memorization by rote.

I should add lurking in newsgroups and using dejanews.com to look up past
newsgroup threads. Kudos to the regulars in this newsgroup for pointing me
down the path of learning for a fair bit of my PHP knowledge.

Still, there are many styles of learnin' and this one seems to be targeting
people who don't learn easily via manuals, classrooms, example scripts, and
tutorials/videos. Maybe they've found a market.

I do think they should be consitant. And Twayne's suggestion that "other
methods are available" for many of the answers is a very good idea - perhaps
with links to other flash cards, articles on the site or the PHP docs
themselves. If done well, and if there's a significant number of people who
learn better with flash cards, then all power to them!*
* And as Twayne implied, perhaps a different domain name would be better -
unless YoYoBrain gets big enough to be a widely recognized brand - which may
be a goal.
--
Mark A. Boyd
Keep-On-Learnin' :)
Jul 31 '08 #7

"Mark A. Boyd" <li*******@mboy dDotcom.invalid wrote in message
news:Xn******** *************** *********@194.1 77.96.26...
Geoff Berrow posted in comp.lang.php:
>Message-ID: <Xn************ *************** *****@194.177.9 6.26from Mark
A. Boyd contained the following:
>>And it seems to me that
learnin' PHP would be far easier than trying to, somehow, memorize it. I
just don't see how flash cards are beneficial here.

I had a quick look through the first few before I got bored. I haven't
committed the entire PHP function set to memory, nor do I intend to. It
may be useful to me if I could remember the difference between implode
and explode but it's no big deal if the manual is just a click away.
fully agree. i use several languages and can't possibly remember specific
function names. i've got 3 reference books on my desk right now and the .chm
for 4 others on my desktop. my editor (crimson editor) is programmed to pull
up each by keyword.

all that to say, the constructs of a language are the most important things
to know and remember. the details, such as specific function names and the
like, are fairly insignificant when they are easily referenced from a manual
(electronic or paperback).

<snip>
Still, there are many styles of learnin' and this one seems to be
targeting
people who don't learn easily via manuals, classrooms, example scripts,
and
tutorials/videos. Maybe they've found a market.
perhaps i seemed a bit damning in my original response. i was pointing out
what i thought was a detractant for me as a seasoned developer. i feel the
questions could have been written better and full disclosure, regardless of
skill-level, should be in the answer.

having said that, i think the idea of the site is really a good one. it just
needs work. as twain had suggested, perhaps categorizing the flash cards
based on skill-level is a good route to go. if this site really wants to
make it, the owner must understand that flash cards should ONLY be used in
conjuction with LESSONS. flash cards do not help you LEARN anything, they
help you REMEMBER things. i would suggest having sample applications or code
snippets that have flash cards associated with them. without a context,
items from wrote are quickly forgotten...a scientific fact (and yes, i can
give cites).

<snip>
Mark A. Boyd
Keep-On-Learnin' :)
btw, mark, i'm glad to be of service. the steve-n-jerry show is not due for
cancelation any time soon. :)
Jul 31 '08 #8
This is great; thank you all for the constructive advice. It gives us
a sense of the direction in which to head.

Much appreciative,

Elizabeth
Jul 31 '08 #9
Mark A. Boyd wrote:
Geoff Berrow posted in comp.lang.php:
>Message-ID: <Xn************ *************** *****@194.177.9 6.26from Mark
A. Boyd contained the following:
>>And it seems to me that
learnin' PHP would be far easier than trying to, somehow, memorize it. I
just don't see how flash cards are beneficial here.
I had a quick look through the first few before I got bored. I haven't
committed the entire PHP function set to memory, nor do I intend to. It
may be useful to me if I could remember the difference between implode
and explode but it's no big deal if the manual is just a click away.

You're right in that while learning the language, much of it does get
committed to memory. I tend to think that happens through usage, learning
from mistakes, and especially manual lookups rather memorization by rote.
Yeah, this is a good point. I can still remember when I was hopelessly
confused with programming, in general. The most important concepts are
learning general programming principles, and how to approach problems
as a programmer.

The beginner shouldn't be quizzed on an API, rather, they should be
taught how to use Google to search for solutions, how to look at code,
and understand what's going on. Programming is a difficult skill, and
there really aren't any shortcuts to get good.

Also, when learning Web scripting, I think learning security is
paramount from the beginning, since your code is at the mercy of the
world. PHP, especially, can be deceptively simple unless you're careful.
I should add lurking in newsgroups and using dejanews.com to look up past
newsgroup threads. Kudos to the regulars in this newsgroup for pointing me
down the path of learning for a fair bit of my PHP knowledge.

Still, there are many styles of learnin' and this one seems to be targeting
people who don't learn easily via manuals, classrooms, example scripts, and
tutorials/videos. Maybe they've found a market.

I do think they should be consitant. And Twayne's suggestion that "other
methods are available" for many of the answers is a very good idea - perhaps
with links to other flash cards, articles on the site or the PHP docs
themselves. If done well, and if there's a significant number of people who
learn better with flash cards, then all power to them!*
* And as Twayne implied, perhaps a different domain name would be better -
unless YoYoBrain gets big enough to be a widely recognized brand - which may
be a goal.
The best ways I've learned was from messing around with code. The
satisfaction when you finally figure something out, and get it to work
is great.

@OP: you don't seem to be escaping HTML markup on your flashcards, and
if users can submit their own flashcards, your site's in for a lot of
XSS attacks. Also, in Firefox, if I hover over the right-most cards,
the box gets clipped off by the right edge of my screen.

--
Curtis (http://dyersweb.com)
Aug 9 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2776
by: Ruby Tuesdays | last post by:
in win32 installation... is it compiled with it or this is a missing features? Thanks
17
3383
by: Gabriel Mejía | last post by:
Services or applications using ActiveX Data Objects (ADO) 2.0 or greater may intermittently return empty recordsets on queries that should be returning valid results. At the time the problem occurs, the same queries successfully return the expected data when run from non-ADO sources, such as from ISQL in Microsoft SQL Server. This problem predominantly occurs on multi-processor computers but has also been known to occur on single-processor...
24
4046
by: Salad | last post by:
Every now and then I see ads that state something like "Experience with Large Databases ...multi-gig...blah-de-blah" And I have to laugh. What's the difference between a large or small database? A table is a table, a record is a record, a field is a field. All you are doing is manipulating data in tables. I wouldn't think it'd make much difference in working with a table with 10 records or a billion records...they're nothing more than...
7
2330
by: eyh5 | last post by:
Hi, I'm writing some C codes to run simulations. I'm wondering if there is a website that may contain useful information on how to make one's code run more efficiently and in a computational-time-saving manner. Specifically, what I'd like to know is if there're any useful tips about writing your codes more efficiently. One such useful tip is that we can use the "switch" statement instead of multiple "if-else" statements; another is that...
6
3617
by: asn | last post by:
Example : If i store details of Employee no and name in a text file and the employee salaries in another. Is it possible to read data from these two files simultaneously using file stream concepts? If so, can anyone help me with an example.
6
1606
by: iulian.ilea | last post by:
Hello, I have this code: ________________________________________________________ if VarType(eval("inTotal" & arr(4,i1)))=0 then response.write "ok, dim" execute("dim inTotal" & arr(4,i1) & ":inTotal" & arr(4,i1) & "=" & arr_(i1,i2)) 'it is working, I have variable
31
2557
by: krypto.wizard | last post by:
How to divide a number by 7 efficiently without using - or / operator. We can use the bit operators. I was thinking about bit shift operator but I don't know the correct answer.
7
1182
by: Elizabeth Barnwell | last post by:
This may be a useful tool to better understand & find Javascript concepts: http://www.yoyobrain.com/subjects/show/240 Add flashcards to your studies, click on cram with the learning wizard. We're building this site to improve learning, so feedback on improvements and how to get this into the hands of developers is much appreciated. Feel free to email me too- elizabeth@yoyobrain.com...
2
1720
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Have a complex process where I need to Import a large amount of data then run some transformations on this data then import into DataBase. The transformation involves multiple fields and multiple process - so the data needs to be read in 1 record at a time then run thru the transformation that may create new data value then everything is imported into a db to store. I have multiple questions 1)we used to have an internal data structure...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.