Re: [GENERAL] id and ID in CREATE TABLE

Поиск
Список
Период
Сортировка
От Thomas Swan
Тема Re: [GENERAL] id and ID in CREATE TABLE
Дата
Msg-id 3D3832B4.2090205@idigx.com
обсуждение исходный текст
Ответ на Re: [GENERAL] id and ID in CREATE TABLE  (stefan@extum.com)
Список pgsql-sql
Tom Lane wrote:<br /><blockquote cite="mid12220.1027085465@sss.pgh.pa.us" type="cite"><pre wrap=""><a
class="moz-txt-link-abbreviated"href="mailto:stefan@extum.com">stefan@extum.com</a> writes: </pre><blockquote
type="cite"><prewrap="">But anyway this is not so important, but why upper cases are bad ?   </pre></blockquote><pre
wrap="">
It's well established that all-lower-case text is more readable than
all-upper-case ... at least in English; but I think the same would be
true of any language using an approximately Roman alphabet.  The problem
with upper case is there's less variation in the overall letter shape.
If you don't care to dig in the academic literature about it, here's a
simple experiment: which of the following paragraphs do you find more
readable?
it's well established that all-lower-case text is more readablethan all-upper-case ... at least in english; but i think
thesamewould be true of any language using an approximately romanalphabet.  the problem with upper case is there's less
variationinthe overall letter shape.  if you don't care to dig in theacademic literature about it, here's a simple
experiment:whichof the following paragraphs do you find more readable?
 
IT'S WELL ESTABLISHED THAT ALL-LOWER-CASE TEXT IS MORE READABLETHAN ALL-UPPER-CASE ... AT LEAST IN ENGLISH; BUT I THINK
THESAMEWOULD BE TRUE OF ANY LANGUAGE USING AN APPROXIMATELY ROMANALPHABET.  THE PROBLEM WITH UPPER CASE IS THERE'S LESS
VARIATIONINTHE OVERALL LETTER SHAPE. IF YOU DON'T CARE TO DIG IN THEACADEMIC LITERATURE ABOUT IT, HERE'S A SIMPLE
EXPERIMENT:WHICHOF THE FOLLOWING PARAGRAPHS DO YOU FIND MORE READABLE?
 

For me, at least, the second version takes noticeably more time to read
and is certainly less pleasant.  (I suppose that for a non-native
speaker of English, mental translation might slow you down to the point
where you don't notice a difference.  If so, try it on a random
paragraph in your own language.)</pre></blockquote> It's a pattern recognition issue.   Taken in context with your
readingexperience and the general constructs of the English language in addition common usage, you encounter far more
lowercase letters than upper case letters.  It makes sense that it would be easier to recognize the words in all lower
case. Secondly, your brain expects lower case letters behind the leading upper case letter for the word.   So in a
senseyou backtrack just a little because it doesn't match what you expect.   I'm not discounting the statements you
made,but this is one additional observation.<br /><br /> [ In the previous paragraph there were 6 capital letters to
the471 non-capital letters. ]<br /><blockquote cite="mid12220.1027085465@sss.pgh.pa.us" type="cite"><pre wrap="">
 

For PostgreSQL there is also a backwards compatibility issue: if we
change this decision now, we'd cause all kinds of problems for existing
code and databases.
 </pre><blockquote type="cite"><pre wrap="">Why then Oracle , IBM is using them and why the SQL standard is not 
changed ?   </pre></blockquote><pre wrap="">
The SQL standard's choice in this matter is prehistoric; undoubtedly
it falls out of the days when computer printers only had one type case.
IBM probably still has a residual fondness for those days ;-).  But
the rest of the industry figured out that lower case was better
somewhere around 1960, cf Algol-60 which was the first language to spell
its keywords preferentially in lower case.
        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

<a class="moz-txt-link-freetext"
href="http://www.postgresql.org/users-lounge/docs/faq.html">http://www.postgresql.org/users-lounge/docs/faq.html</a>
</pre></blockquote><br/><br /> 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: id and ID in CREATE TABLE
Следующее
От: Josh Berkus
Дата:
Сообщение: Two Index Questions