Snakes vs Camels

7 views
Skip to first unread message

Mike Austin

unread,
Sep 29, 2026, 7:11:25 PMSep 29
to PiLuD
I've been doing JavaScript/TypeScript for so long that I haven't seen snake case in a long time (I don't use Python). With my little c++ database toy, I started with camelCase and extended it to the db column names. They did not look good. They look all scrunched and blurry.

id   teamId   sortOrder   teamKeySeqId
==== ======== =========== ============

id   team_id   sort_order   team_key_seq_id
==== ========= ============ ===============

Being so used to camelCase I guess I didn't mind. But looking at the difference, I would say snake_case is easier to scan.

The oldest topic, and I'm bringing it up. :) It may be easier to convert to Title Case also for converting to friendly names.

ID   Team ID   Sort Order   Team Key Seq ID
==== ========= ============ ===============

Raoul Duke

unread,
Sep 29, 2026, 8:38:35 PMSep 29
to pi...@googlegroups.com
on us keyboards, dash is the best since it is easiest to type :-)

David Barbour

unread,
Sep 30, 2026, 10:01:16 AMSep 30
to pi...@googlegroups.com
Kebab case is nice in contexts where '-' isn't an infix subtraction operator. But '_' is a better representation of spacing within a name, IMO. Works nicely for big numbers, too, e.g. `1_000_000`. 



On Tue, Sep 29, 2026 at 7:38 PM Raoul Duke <rao...@gmail.com> wrote:
on us keyboards, dash is the best since it is easiest to type :-)

--
You received this message because you are subscribed to the Google Groups "PiLuD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pilud+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pilud/CAJ7XQb7G1oaxRgU7m58v%3DUEnxaWrNy5PMbkXswOJontdU%2B2UfQ%40mail.gmail.com.

Mike Austin

unread,
Oct 1, 2026, 1:27:14 PMOct 1
to PiLuD
Reply all
Reply to author
Forward
0 new messages