Slashdot Mirror


Is Caps Lock Dead?

An anonymous reader asks "Recently I have noticed that I haven't used caps lock other for any purpose other than hitting it by accident. Once upon a time, COBOL was written in all caps, and other languages like BASIC and Fortran were not case sensitive. Capitals were the way to go for writing code. Does the caps lock key serve any purpose any more, and if not, should it be removed, moved, or replaced?"

40 of 1,206 comments (clear)

  1. Yes by linuxpoweredtrekkie · · Score: 5, Insightful

    Caps Lock is EVIL!

    I remapped my capslock into an extra control key months ago. I never type more than a couple of words in capitals, and can easily hold down the shift key.

    Capslock is just a problem when you accidentally hit it when reading something you are keying in.

    1. Re:Yes by odie_q · · Score: 2, Insightful
      Ok, that might complicate matters, but there is just no way compressed size can double. Consider the following example (still not completely relevant, I know):
      $ ls -l
      total 3316
      -rw-r--r-- 1 odie users 922449 Jun 6 12:03 ALL_CHAPTERS.TXT
      -rw-r--r-- 1 odie users 177417 Jun 6 12:05 ALL_CHAPTERS.TXT.bz2
      -rw-r--r-- 1 odie users 922449 Jun 7 01:50 aLl_cHApTErs.TXt
      -rw-r--r-- 1 odie users 198291 Jun 7 01:52 aLl_cHApTErs.TXt.bz2
      -rw-r--r-- 1 odie users 922449 Jun 6 12:01 all_chapters.txt
      -rw-r--r-- 1 odie users 182350 Jun 6 12:05 all_chapters.txt.bz2
      -rwxr-xr-x 1 odie users 100 Jun 7 01:50 random_caps.pl
      We're talking 12% here, not 100%.

      --
      ...ceterum censeo Carthaginem esse delendam.
  2. Not everyone is a programer by Dark+Bard · · Score: 5, Insightful

    Writers and layout people use cap lock all the time. Most will use it from time to time in standard word processing. Computers aren't just for programers. Some of us use the software they write.

  3. Computer freeze check by TheOtherAgentM · · Score: 5, Insightful

    I use Caps Lock to check if Windows has completely frozen up. If the light on my keyboard doesn't come on, it's time to do a hard reset.

    1. Re:Computer freeze check by TummyX · · Score: 1, Insightful

      If your computer has frozen to the point where the keyboard lights won't respond then it's likely to be a hardware failure not windows.

  4. What a silly question by Overly+Critical+Guy · · Score: 5, Insightful

    Of course caps lock is necessary. It's necessary for whenever you want to type in all-caps without holding shift the whole time. I can think of dozens of examples of this. Hell, where I work, the blank fields on our contracts must be typed in all caps. I wrote a screenplay once, and you need caps all over the place. When I'm coding, I write some macro names in all-caps.

    No, the caps lock shouldn't be removed or replaced. It's handy to have a key that allows you to toggle lower to upper caps so you don't have to hold shift.

    Pointless Ask Slashdot question!

    --
    "Sufferin' succotash."
    1. Re:What a silly question by hackstraw · · Score: 2, Insightful

      It's necessary for whenever you want to type in all-caps without holding shift the whole time.

      That is a software issue not a hardware one. Caps lock have nothing to do with >>99.9% of computing, and 99.9% of the time it is invoked accidentally, and it has negative effects on the users computing experience. The password entry should never be in all caps, neither should commandline interfaces, most editors (emacs, vi, etc) dont make sense when cap locks is enabled, and for some reason, all caps is difficult to read, and it LOOKS LIKE SOMEONE IS YELLING AT YOU!!!

      I always disable it in windows, my mac, linux, etc. Its one of the 1st things I do when I get a new computer. Let the damn thing be emulated in software if its needed.

  5. Move the key by 88NoSoup4U88 · · Score: 2, Insightful

    Just move the caps-lock key to the scroll lock button ;). Anyone ever uses -that- button anymore nowadays ?

  6. Yes, it is by Ice_Balrog · · Score: 3, Insightful
    Yes, Caps Lock is useless and annoying. Infact, I find it so annoying when I accidentally hit my Caps Lock that I added this to my xorg.conf (XF86Config for those still using XFree86):
    Option "XkbOptions" "ctrl:nocaps"
    There are quite a few other things you can do with your Caps Lock key in Xorg/XF86, just Google for them.
    --
    #include "sig.h"
  7. Replace it with a key labelled [help] by mikael · · Score: 4, Insightful

    I am still amazed that after 20 years of the desktop PC, we still have to press the key labelled [F1] to get any type of GUI help, rather than having a key labelled [HELP], although Microsoft did find a way of squeezing in a key with the Windows logo.

    --
    Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
    1. Re:Replace it with a key labelled [help] by AsimovBesterClarke · · Score: 2, Insightful

      20 years, eh? Seems like 20 years ago, most every dumb terminal I used had a 'Help' key. And it has probably been nearly 5 years since sitting at a Sun console, but I seem to recall a help key there, too.

      Now, in the over 20 years, I have never expected pressing this key would actually provide anything resembling help, but the key has been around.

      Oh, and this gets an "Insightful"??? and scored 4???

      --
      Ads are broken.
    2. Re:Replace it with a key labelled [help] by Gary+Destruction · · Score: 3, Insightful

      Mice and keyboards are simple devices that would have nothing to gain by going to USB. The only possible advantage would on systems without IOAPIC's. You would gain extra IRQ's by using USB mice and keyboards.

  8. Re:OF COURSE IT SERVES A PURPOSE by randyest · · Score: 2, Insightful

    hold down shift?

    --
    everything in moderation
  9. Swap caps lock and control by ultrabot · · Score: 5, Insightful

    More useful than switching with escape is switching caps lock with Control.

    You should have:

    Option "XkbOptions" "ctrl:swapcaps"

    In the InputDevice section for your keyboard (in XF86Config, of course).

    Voila'! Ctrl assumes its rightful place on the keyboard. Ergonomic implications are massive.

    Equivalent hack is available for NT too. It's done via registry, but I can't be bothered to google for it right now.

    --
    Save your wrists today - switch to Dvorak
    1. Re:Swap caps lock and control by jesup · · Score: 3, Insightful

      Ah. A vi user. If you're an Emacs user, having the capslock key mapped to control is the ONLY way to fly. As others have said, that's the One True Position for the control key. (Check Sun keyboards, for example.)

      My "CapsLock" keys have the legend worn off of them, and one even has a groove from where my pinkie's fingernail hits it.

    2. Re:Swap caps lock and control by Soul-Burn666 · · Score: 2, Insightful

      Oh man!
      The horrors of clicking caps-lock by mistake in VI...

      suddenly hjkl do stuff like finding a man page for a command or removing a newline instead of moving around.........

      --
      ^_^
  10. scraping the bottom of the barrel! by bratgrrl · · Score: 4, Insightful

    This is one sad excuse of a story. Aren't there any leftover SCO blurbs to fill in?

    --

    ---

    SCO is weenies
    Gator is Spyware
    Microsoft is thugs

  11. Re:for actually using a computer (writing document by tftp · · Score: 4, Insightful

    What if he types with only one finger?

  12. Re:Caps Lock? Who cares about Caps Lock? by localroger · · Score: 3, Insightful

    My KVM switch uses Scroll Lock (hit twice within 1/2 second) to enable the other keys for switching machines. If we don't have some useless keys on the keyboard, devices like my KVM switch would have to hijack functions I actually use once in awhile, which would be annoying.

    --
    Brackets contain world's first nanosig, highly magnified:[.]
  13. Think of the children by tisme · · Score: 2, Insightful

    If you are teaching young children how to type on computers, you would almost certainly still find a use for caps lock.

    While some of them can handle Shift + letter, many of them rely on Caps Lock to get a capital letter through, especially when they are just getting started.

  14. Medical claims by arashiakari · · Score: 2, Insightful

    Medicare rules require all digital claim information to be submitted in ALL CAPS for processing. Lowercase alpha characters get claim reimbursement requests rejected.

    Ask the Japanese if they should get rid of hiragana since they have katakana, or get rid of kanji since they can simply spell phonetically. Uppercase characters are still important to data processing and the proper use of the English language.

  15. Re:No! I use CapsLock as my "ESC" key by dragonman97 · · Score: 2, Insightful

    I did the same thing after I got fed up with the key, and found a nice utility to remap it on my Windows machine at work - life's so much easier that way.

  16. WHAT'S THE MATTER WITH YOU PEOPLE? by MillionthMonkey · · Score: 2, Insightful

    And do you give your constants names so long that you really need to use your caps lock key instead of just using shift?

    Of course I do. Don't you?

    Either your code is full of single-letter names, or you don't do much programming. Holding down Shift while typing hurts my fingers if I do it too much. If I didn't have CAPS LOCK I'd be on workers' comp by now.

  17. Re:Still use it sometimes.. by el_gordo101 · · Score: 2, Insightful

    I use Home, PgUp, PgDn, and End all day long. Combined with the Ctrl and Shift keys, they are very powerful for navigating aound your documents, editing code, etc. Once you master using these keys and their Ctrl/Shift combos, you will rarley use a mouse again.

    --
    TODO: Insert witty sig
  18. Re:No! I use CapsLock as my "ESC" key by Cainam · · Score: 2, Insightful

    Why not just use the Esc key as your "ESC" key?

  19. Caps lock in Military by WhatsAProGingrass · · Score: 3, Insightful

    In the US Air Force, we use CAPS LOCK all the time. It sucks. It's a pain in the ass because they want so much stuff in capitals, like its better that way. I'm a fan of readability. And if everything is in caps anyways, then everything stands out, so why use it. Also, working for the government, you'll notice a lot of busted up keyboards with no caps light that works. So when putting in passwords can be a bitch sometimes.

    --
    Mark
  20. Re:For checking if system is dead by TrixX · · Score: 2, Insightful

    I usually use NumLock for that...

    Scroll lock is useful to stop the console scrolling (in linux VCs) when some program is spewing lots of data to stdout/err

    It can be dangerous. I remember once pressing it accidentally while burning a CD. cdrecord locked trying to write its progress to the console, the CDwriter buffer emptied, and I lost the CD.

  21. Honestly.. by Raven42rac · · Score: 2, Insightful

    This honestly does not bother me that much. If the placement of keys on the keyboard gets you hot and bothered, seek help.

    --
    I hate sigs.
  22. Re:I use it all the time by Frobnicator · · Score: 5, Insightful
    I've never understood the 'need' people have to capitalize SQL. It's not case sensitive. If one has a decent syntax highlighting editor, then the capital's don't help at all!
    It's a style thing. It's also the common style used almost everywhere.

    You say it doesn't help if you have a syntax highlighting editor; you can't count on having a syntax highlighted editor all the time.

    While I think there are benefits to it, many interns that I've worked with seem paralyzed if they don't have syntax highlighting. A few are paralized if they don't have auto-complete. If the code REQUIRES syntax highlighting to be understandable, clearly you need to adopt a different style.

    If you don't have SQL syntax highlighting, the more complex the SQL statement is the more it benefits from the all-cap keywords. That in itself is enough to justify (for me) it's use. Since I compose my SQL statements in my C++ interface code, I don't have SQL syntax highlighting; the C++ editor highlights them all as strings. Using caps really helps readability, especially when the SQL statements are complex and require several lines to compose.

    --
    //TODO: Think of witty sig statement
  23. Macro names by aarondsouza · · Score: 2, Insightful

    It's a fairly common convention to have macro names in C/C++ be all caps. This is where I seem to use the CapsLock key the most anyway.

    --
    "In mathematics, it's not enough to read the words -- you have to hear the music"
  24. Re:Yes. by noda132 · · Score: 2, Insightful

    Pressing capslock puts the keyboard into upper case until the shift key is pressed. Then it should go off.

    While I think this is a clever idea, it would nullify the point above. People who use capslock to type in long constants would have to press it after each underscore. As any decent programmer will tell you, ACONSTANTNAME is much worse than A_CONSTANT_NAME.

    I personally touch-type and hold down the Shift key for long constants; I find it faster than synchronizing my Shift keypresses with my '_' keypresses.

  25. Re:Happy Hacking by Anonymous Coward · · Score: 1, Insightful

    I have a Happy Hacking keyboard and I don't like it much. The keys feel mushy, like a cheapo $5 keyboard, and it's too minimalist for my taste. Also, the alt, fn and compose keys are way too small. My current keyboard is an IBM Model M -- yes, the one that sounds like a machine gun and weighs as much as one.

    I remapped the Caps Lock key to be a Left Control, and also put Escape left of the "1" key. The old Escape key closes the current window. Now I'm in business.

  26. Keyboard update suggestions by Rui+del-Negro · · Score: 3, Insightful
    I think keyboards definitely need an update. More important than removing keys, though, is adding keys for some common tasks.

    There are several keys that I think should be standard on all keyboards, not just to avoid having to use combinations, but mainly to avoid having a different combination in each program (ex., some programs use Ctrl+Z for undo, others use Alt+Backspace, etc.). Here's my list:
    • Select - Hold down this key to select items or text. Shift+Select selects from the last selected element to the current one, Control+Select adds the current element to the selection. Alt+Select would invert the selection. It would be placed where Caps Lock currently is. Caps Lock would be moved to the space above the numeric pad, where the Caps Lock LED usually is (make the LED part of the key). The other two "lock" keys would also be moved here.

    • Cut, Copy and Paste - Self-explanatory. Above Insert / Home / End.

    • Undo and Redo - Also self-explanatory.. Above Cut, Copy and Paste

    • Back and Forward - Above the left and right arrow keys. Useful for browsers, media players and wizards, can also work as "turn" keys for games, leaving the side arrows for strafe.

    • Help - Where F1 currently is. All function keys would move right by 2 keys, leaving Help between Esc and F1, with a space on each side. Alternatively, put it next to Undo.

    • Sleep - In the "System" section, near an edge of the keyboard (ex., top right), along with Print Screen and Pause / Break. Combined with Shift, Control and Alternate, this key could also be used for Standby / Hibernate / Shutdown.

    Most of these keys could simply emulate the most common shotcuts (ex., Help = F1, Cut = Ctrl+X, etc.), so they would automatically be compatible with most existing programs.

    I doubt this will happen anytime soon, though, since Microsoft is pretty much the only company with the power to dictate a "standard", and the fact that the only new keys to appear in several years are the "winkeys" shows that their idea of a "useful" key is one that has their logo on it, even if it's only used about once a month (or, in my case, not even that).

    Also, one thing I'd like to see is a mouse where, instead of a scroll wheel (or two wheels), there was a mini-trackball, that could be used to scroll both vertically and horizontally. I'm surprised no-one has come up with this yet (at least I've never seen one).

    RMN
    ~~~
  27. Re:I use it all the time by tommy · · Score: 2, Insightful
    I find the following easier to read:
    select *
    from tblWhatever a
    join tblYaddaYadda b
    on a.ID = b.ID
    where b.foo = 1
    It's even better with syntax highlighting. But even without formatting, I prefer syntax highlighting over SYNTAX CAPPING ;-).
    --

    I have a woman and money. Life is good.

  28. Re:No! I use CapsLock as my "ESC" key by mirko · · Score: 4, Insightful

    Or in Quake : I use it mapped to the "Always Run" function.

    --
    Trolling using another account since 2005.
  29. Re:I use it all the time by servognome · · Score: 3, Insightful

    In your example I would use shift key because there is alot of switching between upper and lower case.
    Because I so rarely use caps lock, it becomes a distraction to use. Its just so much more natural to hold shift and type "s-e-l-e-c-t" than pausing, looking down, and hitting caps lock. Yeah I know caps lock is right above shift, but I have trained myself to not accidently hit it, so I just can't naturally hit caps lock while typing .
    I only caps lock when I know at the beginning of a large chunk of text that I will be using all caps.
    I think this article does beg the question "When should we trade tradition for efficiency?"

    --
    D6 63 0D 70 89 81 BB 8E 7B 7C 5F 5D 54 EA AB 73
  30. Re:I use it all the time by phaze3000 · · Score: 2, Insightful

    Syntax highlighting is all very well when you're writing the code in the first place, but if you're trying to debug what's going wrong with an app (for example by tailing a log of SQL commands executed) then capitalisation makes things much, much easier to quickly read and understand.

    --
    Blaming GW Bush for the Iraq war is like blaming Ronald McDonald for the poor quality of food.
  31. Re:No! I use CapsLock as my "ESC" key by EvilMidnightBomber · · Score: 5, Insightful

    The problem with making ANY remapping changes to your keyboard is that in a programming environment where you frequently have to hop on other people's comps to "drive", you instantly take on the role of "goober who can't type" rather than "superhero debugger". It's bad enough there isn't universal standardization of the all-important backslash key, which 2/3 of the time is a std-sized key below enter and 1/3 of the time a 2x length above it.

  32. Re:No! I use CapsLock as my "ESC" key by Weirdofreak · · Score: 2, Insightful

    On my keyboard (UK) it's to the left of Z.

    When I first got Linux up and running, it was using an American layout. To use backslash I had to press hash, and God knows where the hash key was mapped to, because the backslash key didn't do anything. I found myself copy and pasting from the Perl scripts I'd transported over from my parents' Windows box. Thankfully though, I only needed it in said Perl scripts. " was @ and @ was ".

    Now, not only have I figured out how to change the layout, I've also managed to figure out how to stop num lock from being on when I log in. I've got nothing against the key, it's the LED that I hate.

  33. Re:I use it all the time by Herschel+Cohen · · Score: 2, Insightful

    Why is this so much easier to read

    select *
    from tblWhatever a
    join tblYaddaYadda b
    on a.ID = b.ID
    where b.foo = 1

    than: SELECT *
    FROM tblWhatever W
    JOIN tblYaddaYadda Y
    ON W.ID = B.ID
    WHERE Y.foo = 1
    ??

    There are other potential problems in your SQL that unrelated to whether the reserved words are all caps or not. For instance: SELECT * can get some unexpected results. [First what table are you selecting from - not that important really, since you were just trying to show readibility.] However, even though the table of interest may have an altered structure you might not be seeing columns of interest if the stored procedure that contains this code was not refreshed after the structure change. You are using stored procedures I assume.

    Another simple hint: use aliases that are more easily connected to the table name. Many of us use many more than two tables in our Joins.

    For many reasons stay away from selecting everything, if you have no need for most columns. An easy way to bring your system down or locking others out if used in combination with temporary table on an older version of a backend server.

    Just because you no longer have an interest in using all caps key, does not imply others do not. There are other more important problems.