Click here to Skip to main content
15,887,027 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
Gerry Schmitz13-Jun-23 3:31
mveGerry Schmitz13-Jun-23 3:31 
GeneralRe: Should libraries have a standard API and naming convention? PinPopular
Richard Deeming13-Jun-23 3:31
mveRichard Deeming13-Jun-23 3:31 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Marc Clifton13-Jun-23 4:46
mvaMarc Clifton13-Jun-23 4:46 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Jeremy Falcon13-Jun-23 7:30
professionalJeremy Falcon13-Jun-23 7:30 
GeneralRe: Should libraries have a standard API and naming convention? Pin
Single Step Debugger13-Jun-23 4:53
Single Step Debugger13-Jun-23 4:53 
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 
Chris Maunder wrote:
We're scared to break backwards compatibility so we create new methods to avoid breaking old methods, and overloading functions doesn't always work is or possible
That's always the crux of the situation. The reality is, if you have a lot of users, not every dev is hardcore and wants to spend their entire life always relearning. And to be honest, if you want a family and kids you can't really blame some people. So, there needs to be a sense of familiarity even if something new is introduced. If it's completely different with every major release, you'll find yourself losing users that just want to get their job done and don't care about being an uber geek.

Love or hate PHP, that's the exact reason it was so hard for it to de-crap (if it ever did). It just got too popular too quick. And to keep that... they kept the crap. The original developer even mentioned this. He never expected PHP to get so popular as it did in the beginning. But, once it did it was too late.

Chris Maunder wrote:
There are too many ways to do a given task so we present you a bag of parts (eg streams and buffers) and let you mix and match because there's no single "default" way that's practical to provide
So if you want a design an API that's "easier" but the original goal of the first version of the API was to be granular... and let's say you can't change the first version much because of a strict ABI compatibility, then adding helper classes and/or a helper API is what I'd usually do. To your point, it does bloat the codebase. I suppose keeping it a separate helper project would help with that.

If it's a fundamental paradigm shift though, like using AI and qubits to psychically predict winner lottery numbers while retrieving data, that would be a new project for sure.

Chris Maunder wrote:
Program flow has changed sufficiently (eg async and promises) that there truly needs to be different methods to cater for this
It's worth mentioning that is this a good thing since CPUs are all about cores now and not just upping raw clock speed. I suppose the design of this would be language dependent though. As far as JavaScript, you can keep pretty much the same API design when it comes to async vs synchronous code.

Chris Maunder wrote:
We just like making up new paths for writing the same old code because they suited our headspace at the time
As far as naming standards go, such as REST, it's a good thing in the modern world. Back in the 1960s nobody cared about connected systems. Nowadays, eventually even the desktop will be replied by a merge of web and desktop technologies. Connectivity is king. Being able to crosstalk between different, disconnected systems is way more important. The whole idea behind web 3.0 (not web3) and web 4.0 concepts require this.

So yeah, it's more involved to have to learn a standard, but any industry gets more involved as it grows. This one is no different. And have some conventions not only helps with discoverability if documentation is lacking, it can help with the actual coding aspect to because you'll get some idea of what's what from a disconnected system.
Jeremy Falcon

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 
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 

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.