Protocols (HTTP(S), FTP, features and security-danger-zones(think about cookies and sessionstealing)),
hashing/salting (how do I store passwords securely? Which passwords should I accept as secure enough?)
How to learn about that stuff... Hmh, to be honest I don't know the perfect way, what I know I learned by poking around and attending conferences
reorder parameters for determPwGen::__construct so that the optional parameter rounds comes last. or just get rid of the rounds parameter alltogether and implement setRounds
extract the 1000 rounds default as a constant
rename determPwGen to DeterministicPasswordGenerator, making the name obvious (otherwise people have to remember the exact way you used to abbreviate the name. minimize situations where developers have to think whenever you can). also it is common to start the name of classes with a capital letter.
why is it "generateHash" but "site_label"? yea one is a variable and the other a function, but keeping it consistent increases readability
There is some more you could do, you might enjoy the book "clean code" by Robert C. Martin
ha cool, didn't know that existed. I might want to try it out, but for fun and not my studies :D
I'm looking at design patterns in "family style" board games, like monopoly, risk, catan, uno, 7 wonders, dominion, munchkin.. whatever. Pen&Paper role playing games are a bit too "generic"
thanks for the hint! will check it out. A lot of the companies put manuals on their websites, but it's quite a pain to collect all of them one by one. Maybe I should use a crawler..
Protocols (HTTP(S), FTP, features and security-danger-zones(think about cookies and sessionstealing)), hashing/salting (how do I store passwords securely? Which passwords should I accept as secure enough?)
How to learn about that stuff... Hmh, to be honest I don't know the perfect way, what I know I learned by poking around and attending conferences
not a senior coder, but these are my suggestions:
reorder parameters for determPwGen::__construct so that the optional parameter rounds comes last. or just get rid of the rounds parameter alltogether and implement setRounds
extract the 1000 rounds default as a constant
rename determPwGen to DeterministicPasswordGenerator, making the name obvious (otherwise people have to remember the exact way you used to abbreviate the name. minimize situations where developers have to think whenever you can). also it is common to start the name of classes with a capital letter.
why is it "generateHash" but "site_label"? yea one is a variable and the other a function, but keeping it consistent increases readability
There is some more you could do, you might enjoy the book "clean code" by Robert C. Martin
edit: reddit syntax ..
Good question! I try to talk to different people who are writing PHP as well, but a nice place to go to would be cool.
http://davidwalsh.name/ blogs about web developing stuff in general on a relatively high level. Maybe you want to check out his blog :)
ha cool, didn't know that existed. I might want to try it out, but for fun and not my studies :D
I'm looking at design patterns in "family style" board games, like monopoly, risk, catan, uno, 7 wonders, dominion, munchkin.. whatever. Pen&Paper role playing games are a bit too "generic"
thanks for the hint! will check it out. A lot of the companies put manuals on their websites, but it's quite a pain to collect all of them one by one. Maybe I should use a crawler..