3 ms·
Always liked the Ruby convention of PascalCase for constants and under_score for lexicals.
by inopinatus 4y ago
Always liked the Ruby convention of PascalCase for constants and under_score for lexicals.
- jacobsenscott 4y agoIn ruby anything that starts with a capital is a constant, but PascalCase is only used for ClassNames and ModuleNames, and ALL_CAPS_SNAKE_CASE = "is used for constant values". Unless you are some kind of monster anyway.
- inopinatus 4y agoQuite right, that’s the full picture. Honestly though I am that kind of monster