2 ms·
And so are every upper-case letter. And if you want, you can modify your keyboard layout to swap the - and _ and no longer have to reach for the shift key at al
by pierrebai 6y ago
And so are every upper-case letter. And if you want, you can modify your keyboard layout to swap the - and _ and no longer have to reach for the shift key at all.
(I'll just laugh at the argument that underscores causes problem with line width limitations.)
I prefer the underscore style as I find the names more legible, it's easier to see where each particle starts and ends. It's particularly evident when using acronyms: read_JPEG_image is much more legible than ReadJPEGImage. Many style guide resort to lower-casing acronym due to that: ReadJpegImage.
- gmfawcett 6y agoOn a tangent: Emacs has a venerable minor mode called "glasses-mode" that inserts visual underscores whenever the case changes in the middle of a word. So "readJPEGFile" is displayed on screen as "read_JPEG_File". (This is just a display trick, the file itself is not modified.) It can be handy for reading denseCamelCaseCode, esp. when your eyes are tired.