Not really. Since task B is harder than task A, upper management may believe the candidate is acceptable (especially if they're cheap) and ask you to hire the candidate anyway and train them. If, however, they can't even do task A, they can't be saved.
I can see why yours would be a better option with words like "2Pac" or "PS3", however.
What I would do is train the system on alphabetic AND alphanumeric terms. That way, both "Pac" and "2Pac" and "PS" and "PS3" are acceptable terms. Since it's purely probabilistic, it shouldn't matter.
However, I am slightly skeptical of the words() method. /(\w+)/ would match "words" like 'abc_123' whereas /([a-z+])/i (as per Peter Norvig's implementation) would match 'abc' only.
Is $conn a valid resource inside navlogin? Are you declaring $conn as a global? I wonder if PHP is using some default MySQL connection which may not have the right privileges in MySQL.
Could you paste the sample code into pastebin or make it available somewhere?
$_POST['platform'] is a string because you're missing the square brackets at the end of the name attribute for <input>. This means that you're asking PHP to iterate through characters in a string in your for loop.
I'm not sure what the exact scope of your paper is, but what about PEAR/PECL and PHP frameworks/CMSes. They've had a tremendous impact in making PHP popular.
Not really. Since task B is harder than task A, upper management may believe the candidate is acceptable (especially if they're cheap) and ask you to hire the candidate anyway and train them. If, however, they can't even do task A, they can't be saved.
That code and this article make me quite nervous
I can see why yours would be a better option with words like "2Pac" or "PS3", however.
What I would do is train the system on alphabetic AND alphanumeric terms. That way, both "Pac" and "2Pac" and "PS" and "PS3" are acceptable terms. Since it's purely probabilistic, it shouldn't matter.
Nice, clean code.
However, I am slightly skeptical of the
words()method./(\w+)/would match "words" like 'abc_123' whereas/([a-z+])/i(as per Peter Norvig's implementation) would match 'abc' only.4 slaves with giant palm leaves?
Is
$conna valid resource inside navlogin? Are you declaring$connas a global? I wonder if PHP is using some default MySQL connection which may not have the right privileges in MySQL.Could you paste the sample code into pastebin or make it available somewhere?
Output
$sqland test it against the database. See what happens.$_POST['platform'] is a string because you're missing the square brackets at the end of the name attribute for <input>. This means that you're asking PHP to iterate through characters in a string in your for loop.
I prefer the 4 column. The lines are much cleaner.
Added
I'm not sure what the exact scope of your paper is, but what about PEAR/PECL and PHP frameworks/CMSes. They've had a tremendous impact in making PHP popular.
End of this list.
Back to top