RE: [PHP-DB] Displaying Password - oy vey...

2009-12-22 Thread Daevid Vincent
  You can't be serious with that?! 

LOL. Exactly what I was thinking. W.T.F?
http://www.youtube.com/watch?v=pXhKzY0BKwY

  You should try The next code:
 
  $UserPassword = str_repeat(#8226;, strlen($UserPassword));
 
  Enjoy. (I hope that you are not a programmer)

...and this is why good programmers can't find jobs in the sea of bad
programmers. Everyone puts LAMP developer or PHP developer on their
resume, but there is a HUGE difference between knowing syntax (i.e. below
example) and UNDERSTANDING a language (above example). Recruiters don't
know the difference and the resume with the most buzzwords gets chosen, and
the poor company is burdened with testing each candidate (this assumes they
known enough about the language themselves to test someone), but more
likely, sucky-coder gets paired up with ignorant-company and hence we have
horribly buggy bloated programs to use. *sigh*

It's up there with people that do this kind of excessive crap:

if ($foo == true)
{
$bar = 5;
}
elseif ($foo == false)
{
$bar = 6;
}

When a simple:

$bar = ($foo) ? 5 : 6;

Would do the trick. 

I have often wished there were licenses required to code. You need a
license to drive a vehicle. You need one to operate machinery. Why is it
that someone needs a license to cut my hair even (which will grow back in a
worst case scenario)? But yet the things we rely upon every day to keep our
homes, offices, phones, cars, web and cities functioning can be coded by
any hack with access to a computer? One doesn't even need a degree or any
schooling! It's absolutely absurd. 

  --
 
 
  $replaceArray = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
  'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 
 'u', 'v', 'w',
  'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
  $replaceWith = array
  
 ('.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.', 
  '.'
  
 ,'.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.', 
  '.'
  );
  $UserPassword = str_replace($replaceArray, $replaceWith,
  $UserPassword); //hide pasword

[names removed to protect the guilty]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Displaying Password - oy vey...

2009-12-22 Thread Karl DeSaulniers

Daevid,
Just so you know. Your site does not work on a MAC.
Definitely not on Safari and your menus on Firefox (but some things  
work on Firefox)

and I don't even use IE since they dropped support, so I wouldn't know.
Not sure if your are particular to PC or LINUX.
Just FYI.

Me..
I am an entrepreneur and don't have a lot of money,
so I must learn things on my own to keep my business growing.
Would love to go get the degree, but that is some time away.
In the mean time I have to get this created.
Just out of curiosity, does my site work on your system?
Also, I saw some of the things you worked on. Nice work.
(I see your serious about your recruiter comment now)
Do you have a suggestion where I can get PHP/MySQL certified?
or a good dummies book?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com