4 ms·
I was excited to learn that GNU Social is in PHP, but quickly turned off because of the quality of the PHP code.
by jtreminio 11y ago
I was excited to learn that GNU Social is in PHP, but quickly turned off because of the quality of the PHP code.
- equalarrow 11y agoHeh, sorry, this made me chuckle. I'm sorry you're right, but ya know, it's a GNU project, so there's always room to contribute. :)
- risk 11y agofound the canadian
- agumonkey 11y agoInstead of being written in Guile Scheme.
- Johnny_Brahms 11y agoNow, you will find lots of people that claim scheme is the best programming language. I myself am torn between the caml family of languages and scheme. Most serious stuff I write in Scheme, and when I got parsack (parsec for Racket) I now no longer have any reason to leave.
- agumonkey 11y agoI was reminded of a quote saying this kind of question (scheme or caml) is discussing brand of waters while lost in a desert dying of thirst. Although PHP post 5.5 matured enormously, I'm still rooting for a scheme.
- Johnny_Brahms 11y agoWho isn't? :D I rewrote most of my old linux projects (for home use, most of them) in Scheme48 just because I like scsh so much.
- mxuribe 11y agoI can't defend any code quality (and I'm certainly not associated with the project, I merely host my own/private network)...but i suppose php was chosen as the stack for (hopefully) more universal adoption. Most low-cost/budget (old school) web hosting companies support php out of the box...and the intent is for folks to host their own network instead of hopping on others, etc.
- krapp 11y agoI rummaged around and found a lot of the old, deprecated mysql_functions (with error suppression turned off, even,) raw queries and no prepared statements anywhere. They may be there, but this codebase is frustrating to roam around in. I did find a few comments warning of possible SQL injection problems if parameters aren't sanitized - which should not be a thing in modern PHP. I support the project wholeheartedly but I can't help but despair at the amount of NIH syndrome and archaic patterns I'm seeing. Unsurprising given how old some of the code seems but be, but still... code like this doesn't inspire confidence in the long-term stability of the project.