question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for case format LOWER_CAMEL in naming convention

See original GitHub issue

Currently, thrifty has 2 policies for field name - DEFAULT and JAVA. Checkstyle by default and mostly configured to check for lowerCamelCase in java.

How about a third naming policy for lowerCamelCase? We can use guava’s CaseFormatter to determine the current case format. If it is not equal to CaseFormatter.LOWER_CAMEL convert to the same.

Should be very trivial.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benjamin-badercommented, Feb 4, 2018

That’s true, but I’m OK with that outcome. I don’t think anyone who has snake-cased thrifts is using the java-style naming policy - as you notice, it simply doesn’t do anything useful in that case. We can call out the breakage in release notes, but I doubt anyone will actually be broken.

0reactions
ZacSweerscommented, Jun 29, 2018

Note that guava’s case formatting doesn’t play nice with acronyms, which forced us to move away from it

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the lowerCamelCase naming convention? - TechTarget
Learn about lowerCamelCase, a naming convention in which a name contains multiple words joined together as a single word with a lowercase first...
Read more >
Capitalization Conventions - Framework Design Guidelines
Apply capitalization conventions for identifiers, compound words, and common terms. Understand how case sensitivity works in .NET.
Read more >
Snake case - Wikipedia
It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames. One study has found...
Read more >
What is pascal case? - TheServerSide.com
Pascal case -- or PascalCase -- is a programming naming convention where the first letter of each compound word in a variable is...
Read more >
SQL naming conventions and capitalization rules
Joe Celco suggests using lowercase letters for scalars such as column names, parameters, and variables, e.g. @indent, @list, @script. Keywords ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found