English borked SQL

2010-Dec-21, Tuesday 01:01 pm
mellowtigger: (penguin coder)
[personal profile] mellowtigger

I have suggested before that our language influences our thoughts, and that influence determines how we conceive the world, and that conception changes how we act in the world.

I noticed today a totally new way in which the influence of English language affected (negatively) the creation of a computer language. I already knew some Structured Query Language (SQL), but I'm taking a 3-day class this week in Microsoft SQL Server 2008's version of Transact-SQL. I noticed today that SQL syntax was badly influenced by one of the regrettable features of English syntax:

Adjectives precede Nouns.


I noticed the problem because of the Intellisense feature of the SQL Server management interface. As I type a new SQL command, the program determines context and shows me available choices that are appropriate within that point of the SQL command. The problem, unfortunately, is that SQL syntax puts the field names (adjectives) BEFORE the table names (nouns), so context can't yet be determined.

If we had more reasonable English syntax where nouns preceded adjectives (as in Spanish language), the SQL standard would have been created with the appropriate order for Intellisense to work well.


Date: 2010-Dec-21, Tuesday 08:43 pm (UTC)
From: [identity profile] snousle.livejournal.com
The problem, unfortunately, is that SQL syntax puts the field names (adjectives) BEFORE the table names (nouns), so context can't yet be determined

So you'd want a SQL language more like:

select from person
fields firstname, lastname

or something like that?

That would definitely help. SQLServer's intellisense is pretty awful, it gets in my way as often as it helps. I have actually renamed rarely-used tables to prevent them from being the default intellisense choice.

Date: 2010-Dec-22, Wednesday 04:17 am (UTC)
From: [identity profile] kroyd.livejournal.com
You're very aware and perceptive. :)

Profile

mellowtigger: (Default)
mellowtigger

About

January 2026

S M T W T F S
    123
4 56 78 910
11 12 1314 15 16 17
1819 20 21 22 23 24
25 262728293031

Most Popular Tags

Powered by Dreamwidth Studios
Page generated 2026-Jan-27, Tuesday 04:22 pm