Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Chris Maunder13-Jun-23 7:44
cofounderChris Maunder13-Jun-23 7:44 
GeneralRe: Should libraries have a standard API and naming convention? Pin
rnbergren13-Jun-23 6:34
rnbergren13-Jun-23 6:34 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Jeremy Falcon13-Jun-23 7:28
professionalJeremy Falcon13-Jun-23 7:28 
GeneralRe: Should libraries have a standard API and naming convention? Pin
jschell13-Jun-23 12:16
jschell13-Jun-23 12:16 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Jeremy Falcon14-Jun-23 2:40
professionalJeremy Falcon14-Jun-23 2:40 
GeneralRe: Should libraries have a standard API and naming convention? Pin
jschell13-Jun-23 11:52
jschell13-Jun-23 11:52 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Peter_in_278013-Jun-23 15:45
professionalPeter_in_278013-Jun-23 15:45 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Greg Utas13-Jun-23 16:38
professionalGreg Utas13-Jun-23 16:38 
I don't expect the industry to standardize; this can even be undesirable. Standards can be dominated by big players who've already more or less aligned to the standard they're pushing. This gives them an advantage and makes it difficult for others to differentiate. But I expect each library to standardize internally instead of running amok with inconsistent naming or ways of doing something, although I can see the latter happening when intended for a broad range of applications.

Each of the four reasons you listed for a lack of standardization plays a role.

Breaking changes are a pet peeve. To me, a breaking change is something that requires a user to redesign their software, which is definitely something to avoid. However, simply changing a function name or its signature, and providing release notes so that users can easily convert to the new interface, shouldn't be considered a breaking change. But whiners will whine. Fine, so stay on the old release if you expect to do no work to move to the new one. Good libraries and frameworks maintain a low surface-to-volume ratio.

I think your #2 and #3 (both the result of multiple ways of doing something) are excusable in a library that supports a broad range of applications. But a library focused on specific types of applications should be more opinionated, settling on a standard way to do each thing in order to improve code reuse and interoperability between the applications that use it.

#4, and #2 and #3 when unwarranted, are what a former colleague called superfluous diversity. This is a dead giveaway that the system lacks what Brooks called conceptual integrity. It was almost certainly developed without proper design and code reviews or software architects to steer it on a consistent path.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: Should libraries have a standard API and naming convention? Pin
resuna14-Jun-23 1:01
resuna14-Jun-23 1:01 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Greg Utas14-Jun-23 4:03
professionalGreg Utas14-Jun-23 4:03 
GeneralRe: Should libraries have a standard API and naming convention? Pin
resuna14-Jun-23 5:49
resuna14-Jun-23 5:49 
GeneralRe: Should libraries have a standard API and naming convention? Pin
jschell14-Jun-23 6:21
jschell14-Jun-23 6:21 
GeneralRe: Should libraries have a standard API and naming convention? Pin
resuna14-Jun-23 12:03
resuna14-Jun-23 12:03 
GeneralRe: Should libraries have a standard API and naming convention? Pin
jschell14-Jun-23 5:57
jschell14-Jun-23 5:57 
GeneralRe: Should libraries have a standard API and naming convention? Pin
BernardIE531714-Jun-23 0:54
BernardIE531714-Jun-23 0:54 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Graeme_Grant14-Jun-23 2:14
mvaGraeme_Grant14-Jun-23 2:14 
GeneralRe: Should libraries have a standard API and naming convention? -> Nope Pin
brompot14-Jun-23 3:45
professionalbrompot14-Jun-23 3:45 
GeneralRe: Should libraries have a standard API and naming convention? -> Nope Pin
Dan Sutton14-Jun-23 9:15
Dan Sutton14-Jun-23 9:15 
GeneralRe: Should libraries have a standard API and naming convention? Pin
SeattleC++14-Jun-23 5:07
SeattleC++14-Jun-23 5:07 
GeneralRe: Should libraries have a standard API and naming convention? Pin
dandy7214-Jun-23 6:52
dandy7214-Jun-23 6:52 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Juan Pablo Reyes Altamirano14-Jun-23 5:58
Juan Pablo Reyes Altamirano14-Jun-23 5:58 
GeneralRe: Should libraries have a standard API and naming convention? Pin
dandy7214-Jun-23 6:49
dandy7214-Jun-23 6:49 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Chris Maunder14-Jun-23 6:57
cofounderChris Maunder14-Jun-23 6:57 
GeneralRe: Should libraries have a standard API and naming convention? Pin
dandy7214-Jun-23 7:06
dandy7214-Jun-23 7:06 
GeneralRe: Should libraries have a standard API and naming convention? Pin
StatementTerminator14-Jun-23 7:02
StatementTerminator14-Jun-23 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.