3 ms·
I think is super weird that databases can have developer-hostile designs like this and still be considered "world class". If a web all framework had pitfalls li
by skrebbel 8y ago
I think is super weird that databases can have developer-hostile designs like this and still be considered "world class". If a web all framework had pitfalls like these, people would rageblog them into oblivion. I'm not trying to single out postgres because I have the impression that the same holds for all databases over some age.
I mean, most of this article reads as a list of features postgres never should've had. If PHP can deprecate magic quotes, then why can't postgres do something similar? Why do the "string data type" docs contain anything other than the "text" type, outside a section titled "deprecated, do not use"? Why isn't there a strict mode that warns me when I'm trying to use Bad Ideas From The Nineties?
- Daishiman 8y agoEvery single technology that lives long enough has legacy features like these and antipatterns. When compared to other software of similar age, this is remarkable little cruft. Every tool that's powerful enough needs to have caveats. I agree it's a PITA, but this is orders of magnitude better than say, bash, C++, Linux, or PHP.
- jrumbut 8y agoStrict mode sounds like an awesome idea. From time to time people release database schema linting scripts, those might help? They can't deprecate varchar and some other ill advised field types because they are required to comply with the SQL standard. The text thing, though, has never been a secret. Learning about it is sort of a coming of age ritual for postgres developers.
- samus 8y agoPostgres' warts are nowhere as unpredictable and problematic as magic quotes. Apart from those things, most RDBMs are incredibly stable and ironed-out workhouses and are nowhere as controversial than PHP is.