RE: Displaying Password - oy vey...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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("•", 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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux