kellogh,
@kellogh@hachyderm.io avatar

dear internet, where tf did Pascal_Snake_Case come from? is there a name for it? is it a real thing people try to do or is it only used by people badly mimicking other naming schemes?

kellogh,
@kellogh@hachyderm.io avatar

i've seen it lots of times, but only in contexts where i'm pretty sure it was entirely accidental or the author didn't really care about naming

amara,

@kellogh I was just complaining about naming last month and thia feels terrible on my fingers. 😂

Config or env vars are the only exceptions, but it's ALL_CAPS.

kellogh,
@kellogh@hachyderm.io avatar

@amara i always figured it was done by people who Wanted To Be Formal But Hadn't Learned About PascalCaseYet

amara,

@kellogh The mullet of naming

nuncio,

deleted_by_author

  • Loading...
  • kellogh,
    @kellogh@hachyderm.io avatar

    @nuncio @amara the common scheme's i've heard are

    • PascalCase
    • camelCase
    • snake_case
    • wtf_hungarianNotation
    amara,
    kellogh,
    @kellogh@hachyderm.io avatar

    @amara @nuncio ha! i actually love kabab-case, but i'm rarely in a context where it's allowed. also SCREAM_CASE, as i believe it's called

    sanityinc,
    @sanityinc@hachyderm.io avatar

    @kellogh I've seen this in OCaml too

    kellogh,
    @kellogh@hachyderm.io avatar

    @sanityinc in your opinion, is this a serious naming scheme? or just an accident?

    sanityinc,
    @sanityinc@hachyderm.io avatar

    @kellogh In my aesthetic opinion, it's an abomination, but I think it's official and idiomatic. OCaml is mostly lower case with underscores, but constructors and module names have capital initial letters. If you consider the "underscores between words" rule inviolable, you end up with either "Here_is_my_identifier" or "Here_Is_My_Identifier". Come to think of it, I've probably seen the former more than the latter.

    kellogh,
    @kellogh@hachyderm.io avatar

    @sanityinc whoa... it's official somewhere, i'll have to revise my hate for it...no, i'll still hate it but now i can respect it...no probably not that either but at least i know where it came from now

    sanityinc,
    @sanityinc@hachyderm.io avatar

    @kellogh I think the conclusion is that I can feel free to do what I want in OCaml, just like everyone else apparently did.

    kellogh,
    @kellogh@hachyderm.io avatar

    @sanityinc apparently ocaml is the florida of programming languages

    sanityinc,
    @sanityinc@hachyderm.io avatar

    @kellogh And the crazy thing is that if there were only one programming language where you expected everything to be camel-case...

    kellogh,
    @kellogh@hachyderm.io avatar

    @sanityinc i think i've seen Capital_snake_case in cucumber-type test names before

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Durango
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • ethstaker
  • JUstTest
  • InstantRegret
  • Leos
  • normalnudes
  • everett
  • khanakhh
  • osvaldo12
  • cisconetworking
  • modclub
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines