News for hackers. Stuff that matters.
Re:Why Is the Migration to Python 3 Taking So Long? by skybrian on Thursday November 14, 2019 @01:42PM (#21538080)
That's something of an illusion. The flaws in SQL often aren't noticed because you usually pick one database vendor and stick with them. There are plenty of differences between vendors, but you don't usually have to support them at the same time, and you don't notice for simple cases.

But changing database vendors for a company can be a big deal, as bad as going from Python 2 to 3.

Re:Why Is the Migration to Python 3 Taking So Long? by just_myles on Thursday November 14, 2019 @05:09PM (#21540004)
This is true. But, I think he means syntactically you can make jumps from one dbms to another without much of a fuss. Obviously there are non-language features but, that is not what is being discussed here.
Re:Why Is the Migration to Python 3 Taking So Long? by setr on Thursday November 14, 2019 @06:00PM (#21540450)
That's mostly a result of databases (kinda) converging, SQL being a declarative language and it primarily being a wrapper around relational algebra, with a bunch of flags. And of course, it's a very direct interface to the RDBMS, and you're just migrating between systems that try very hard to have the same interface.

As a language however, it's a whole lot of nonsense. Extremely inconsistent syntax, stuffing a trinary logic into a boolean system, a standard that gets extended arbitrarily, and even the tooling ecosystem is a fair bit pathetic (the lack of formatters particularly annoy me; everyone tries to support SQLs generally, and end up missing every extended feature.. if it's not a simple select query/ddl, you're not getting a decent format output)

And it most certainly is a whole lot of fuss to migrate unless your database is tiny, or you didn't actually utilize the DB except as a dumb datastore (eg you relied solely on your ORM + indexes); there's a reason no good translator exists, and those that exist only support a very limited subset of any particular SQL variant, despite programming languages having a whole array of transpilers; it's simply not at all a simple language, and the variants only superficially look the same.

Re:Why Is the Migration to Python 3 Taking So Long? by just_myles on Tuesday November 19, 2019 @02:57PM (#21577526)
"As a language however, it's a whole lot of nonsense. Extremely inconsistent syntax, stuffing a trinary logic into a boolean system, a standard that gets extended arbitrarily, and even the tooling ecosystem is a fair bit pathetic (the lack of formatters particularly annoy me; everyone tries to support SQLs generally, and end up missing every extended feature.. if it's not a simple select query/ddl, you're not getting a decent format output)"

Would love to see your point in action. For me personally, speaking strictly writing simple scripts, they pretty much translate fairly well. Regarding formatting, are you referring to the output?

Re:Why Is the Migration to Python 3 Taking So Long? by wvenable on Thursday November 14, 2019 @05:49PM (#21540371)
Dealing with Unicode in SQL has long been a backwards-compatibility nightmare.
Re:Why Is the Migration to Python 3 Taking So Long? by just_myles on Monday November 18, 2019 @04:53PM (#21568506)
In all fairness, dealing with unicode in general has been a pain point for me.