Re:cPerceptron: A neural network (Simple Perceptron) impleme...
by xaa on Friday December 14, 2012 @11:34PM
(#4924598)
Nice. Sort of the computational equivalent of 'A model of Neuschwannstein Castle made out of spaghetti'.
[ Parent
| on HN ]
Re:cPerceptron: A neural network (Simple Perceptron) impleme...
by jacquesm on Saturday December 15, 2012 @03:45AM
(#4924964)
The code isn't all that bad, the spaghetti reference might give that impression.
PHP gets a bad rap because 'it's not a real language after all' but frankly I don't care what language you use if you write neat code like this that's an automatic 'pass'.
You can write spaghetti code in any language, but this isn't it.
Re:cPerceptron: A neural network (Simple Perceptron) impleme...
by slurgfest on Saturday December 15, 2012 @04:45AM
(#4925034)
I suspect that comment was more about the analogy of building detailed models out of pasta; in other words, that the subtext was that it looks like a painstaking technical feat achieved with strange materials for the purpose. And maybe in that respect all the more impressive.
PHP gets a bad rap because of problems with its design and implementation and some loosy-goosy culture (though most of these can be worked around or smoothed over by a framework and personal discipline, core language issues can be a form of technical debt). Really fixing this might require a breaking new version like Perl 6 or Python 3. But of course you can still build things with it. Like models of Neuschwannstein Castle ;)