Hacker News new | past | comments | ask | show | jobs | submit login

Some of Dates gripes are valid, but some are quite questionable.

In SQL you enforce uniqueness of rows by defining a primary key. Dates concern seem to be that you can have duplicate rows if no primary key is defined, but why would you do that in the first place? A table should always have a primary key.

His gripe against nulls are controversial - E.F.Codd suggested nulls himself, so when Date claims null have no place in the relational model he is just stating a personal opinion. And while nulls are kind of weird, his suggested alternative is far worse.

His complain about comparing different types is valid IMHO. SQL is weakly typed and types are silently converted. I think it would be be much better if it was strongly typed and values has to be explicitly converted when e.g. comparing a string to a number. The issue about custom types is a consequence of SQL being weakly typed.




What's his alternative to null in a nutshell?


Sentinel values of the same type, e.g. -1 to indicate a missing integer.


Ouch, yeah that's bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: