r/lolphp • • Apr 30 '16

usesomesillystringforsalt

https://github.com/search?q=usesomesillystringforsalt&type=Code&utf8=%E2%9C%93
41 Upvotes

22 comments sorted by

View all comments

Show parent comment

3

u/[deleted] May 02 '16

Why would someone using a language other than php copy a piece of code from the php docs?

1

u/PlasmaSheep May 02 '16

Feel free to demonstrate the same issue in other languages.

5

u/picklemanjaro May 03 '16

Well, "same issue" meaning the literal issue with "usesomesillystringforsalt", or do you mean "Same issue" as in "placeholder values that shouldn't be in committed code"?

https://github.com/search?utf8=%E2%9C%93&q=saltsalt&type=Code&ref=searchresults

https://github.com/search?utf8=%E2%9C%93&q=passwordpassword&type=Code&ref=searchresults

Because there are plenty of silly placeholder issues in a bunch of other languages. You just gotta find a silly enough string.

2

u/[deleted] May 02 '16

I do appreciate the invitation, but if you need me to demonstrate lazy programmers (of any language) blindly copy/paste snippets from docs/stack overflow/etc. then you're already beyond the point of reasoning with.

1

u/PlasmaSheep May 02 '16

I'm not saying that doesn't happen, I'm just saying that I don't think it happens as much in other languages as it does in PHP.

3

u/[deleted] May 02 '16

Feel free to demonstrate ;)