Re:cPerceptron: A neural network (Simple Perceptron) impleme...
by jacquesm on Saturday December 15, 2012 @03:42AM
(#4924958)
Naming 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.
Re:cPerceptron: A neural network (Simple Perceptron) impleme...
by ibrahima on Saturday December 15, 2012 @06:17AM
(#4925120)
Meh 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.
Re:cPerceptron: A neural network (Simple Perceptron) impleme...
by mylittlepony on Saturday December 15, 2012 @03:57AM
(#4924981)
The guy didn't follow any of the accepted conventions, so please stop with the generalizations already.
This particular example isn't very problematic, but I see this pattern in PHP way more than in other languages.