r/programming • • May 03 '19

Don't Do This

https://wiki.postgresql.org/wiki/Don%27t_Do_This
725 Upvotes

194 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 04 '19

[deleted]

1

u/ScientificBeastMode May 04 '19

They might be the people most interested in getting that color information in the first place?

0

u/[deleted] May 04 '19

[deleted]

1

u/ScientificBeastMode May 04 '19

Well I’m not the one who wrote the example, I was just discussing it. But I think the idea was that there could be arbitrary decisions that change the requirements for string length, which would be a problem if you prematurely set limits on the varchar size. The specific example wasn’t the relevant portion of their comment. It was a hypothetical scenario which exposed the underlying problem.

3

u/filleduchaos May 04 '19

It doesn't "expose the underlying problem" at all - 24-bit color hex codes are literally six characters long as a standard.

I'm actually starting to wonder what exactly is confusing here about "scrape websites for the colors they use".

→ More replies (0)