3 ms·
When I did more PHP I quickly ended up writing my own sort of standard library with consistent functions and unit testing. It doesn’t really take much time and
by maxxxxx 7y ago
When I did more PHP I quickly ended up writing my own sort of standard library with consistent functions and unit testing. It doesn’t really take much time and makes things much more predictable.
- noir_lord 7y agoI think we all do this to a degree. If you look most major projects have equivalents e.g. Laravel has Str. Same with collection types, SPL is an abortion so everyone maps over array which isn't really an array to pretend we have proper collections/lists etc. It's mostly fine but there are times when it's annoying.
- maxxxxx 7y agoWith JS it’s pretty much the same. It’s standard library is so weak that you pretty much have to write your own.