Hacker News new | ask | show | jobs
by marinintim 3568 days ago
Do you program in SQL? (I've just pressed Shift and released it after I typed SQL, hey)

Using Caps Lock for its intended purpose means that it's another mode that you need mental resources to keep track of.

Historical aside that's not related to your comment: early Soviet computers modeled after IBM PC had Latin key, that basically worked like Shift, but it changed layout from Cyrillic to Latin and vice versa. This idea died after MS Windows, that didn't (and still doesn't? I don't know) have this option, took over the market.

4 comments

Has anybody seriously been mentally bogged down by confusion from keeping in mind that they have caps lock on? That sounds entirely implausible.
There is an option in pgAdmin to automatically capitalize keywords. Last I checked though it capitalizes them only in pgAdmin - the actual .sql file is lowercase.
People still use all caps for Sql?
I like to write the keywords in upper case to visually separate them from table/field names.
Doesn't syntax highlighting do that?
When I do SQL, it's usually SQL over psql over SSH-to-database-server. And it's uncommon enough to not warrant any time investment into how to get psql syntax-highlighted.
I write quite a lot of SQL and PL/SQL. Yes, I use Caps Lock as intended.