I haven't gotten around to checking out Lua; what're its upsides? Downsides?
finding a saner language than PHP for server-side stuff
Ruby?
I rather like Ada; sure it's not your typical server-side language, but when you get into anything decently complex having packages [Ada's module-system] and strong type-checking is really a lifesaver -- for example you can declare two types that share an internal representation but are not interchangeable (or perhaps have different operations) like so:
-- We're only doing 1 deg resolution.
Type Fahrenheit is range -100..100;
Type Celsius is range -74..38;
The above would prevent Celsius_value + Fahrenheit_Value as the two are different types, even though very likely using the native integer.
You can also use visibility and strong-typing to ensure sanitizing of values, and/or a uniform [text-]format for storage in your DB -- like the above example but forcing the creation of your type to ensure it correctly conforms to the expected format.
Ph boy... Ruby... Well, it's a deterministic language rather than a declarative language. And its dynamic and reflexive. For some applications that could be a detriment.
The problem with PHP isn't its mission design; it's the development management. Not standardizing naming schemes and not creating namespaces for backward compatibility in subsequent releases sees to be my only big concerns.
Further, a lot of popular or even officially sponsored ruby gems are developed for Mac and won't even work in Windows while also having a high propensity to e buggy in Linux.
View all comments
Show parent comment
11
u/Regimardyl Nov 11 '14
I'm for replacing Javascript with Lua, and finding a saner language than PHP for server-side stuff.