12 ms·
I find it quite interesting how PHP developers try their best to encrypt their function names as much as possible? rdmFloat? Why not randomFloat or random_float
by tzaman 14y ago
I find it quite interesting how PHP developers try their best to encrypt their function names as much as possible? rdmFloat? Why not randomFloat or random_float?
This particular example isn't very problematic, but I see this pattern in PHP way more than in other languages.
- jacquesm 14y agoNaming things is tricky. I got into programming when 6 character assembly labels were the norm. You can imagine what that led to. I still catch myself dropping vowels from function names every now and then (rndflt anybody?). What's pretty good about this code is that it is neatly laid out, the modularity is just about right and it solves a particular problem and provides a bit of text showing how the bits get put together to make it work. As such it beats a very large number of the github projects out there. Brevity in function names is easily forgiven when the code itself is this easy to read. But I'm with you on the basic principle and I'd vote for random_float. iNeverCouldGetTheHangOfCamelcase.
- mylittlepony 14y agoThe guy didn't follow any of the accepted conventions, so please stop with the generalizations already.
- ibrahima 14y agoMeh I see it in a lot of C++ code too. I don't understand it, especially from people who use an IDE so they shouldn't be typing those full names out anyway.