Questions tagged [api-design]
The api-design tag has no summary.
16 questions
2
votes
3
answers
145
views
Can comparison sorts be implemented with an opaque compare-and-swap operation?
The standard library sorting functions I'm familiar with in C and Java accept a user-defined comparator, which takes two elements a and b and returns a <=> b, ...
0
votes
0
answers
64
views
How to Think About Physical Design of Libraries in C++ When Considering the Deliverable's API?
Since design ideas, and even the concept of Physical Design (exactly where you put your files), are such a broad topic, may I give a definite example and ask for feedback on the example?
Suppose you ...
0
votes
1
answer
149
views
What is an API, exactly
I’ve read the Wikipedia article and know it’s basic function but I don’t understand what it physically is. Like, is an api a text file that the main program reads from and you are just putting your ...
0
votes
1
answer
52
views
What does it mean to 'provide' an API call?
So I have a database pre-loaded with data related to food recipes and the assignment says:
'Provide an API call that allows us to specify an ingredient or set of ingredients and return full recipes ...
0
votes
0
answers
45
views
Socket API in TCP
According to me Statement S1 and S2 is True while S3 is False.
The Solution says 'S3' is correct ? Am I Wrong ? Kindly help with explanation .
I know Connect() in TCP is used by the client side for ...
1
vote
1
answer
75
views
WebHook versus API
I've read many blogs about this but I still get somehow confused, specially why a webhook is a thing vs an API and not just a subset of API.
The way I interpret from most places (and interpret is ...
0
votes
0
answers
121
views
How to validate usability of software frameworks
My thesis will produce a software framework that can be used by programmers to solve problems in a paticular domain.
One of the case studies I want to do to verify the contribution I'm making is to ...
0
votes
1
answer
145
views
Can an operating system without api still work? [closed]
In theory operating system is a special program run by itself without help so that also mean normal program can still run by itself mean that the need for api is not must have so finally can we have ...
1
vote
1
answer
138
views
On the fly manipulation of operators
Assume that you are writing sorting algorithms, and that you want the ability to select between ascending and descending order. The only change required to do this for comparison sorts is to use the ...
1
vote
0
answers
106
views
Variable argument placement in methods
Imagine that we have a base class number that has implemented a integer and floats, but not complex numbers and that we would like to extend it to also support ...
4
votes
0
answers
102
views
"Programing in goals" as an alternative to defining APIs (from B. Victor's talk The Future of Programming )
In his talk The Future of Programming, in the third section of the talk about "programming using goals", Bret Victor says this:
https://vimeo.com/71278954 [15:20]
What won't work, what would be ...
4
votes
2
answers
404
views
What's the difference between declarative syntax and encapsulation?
I had been first introduced to the idea of declarative syntax when using Angular JS. From what I understand, the idea is that you say, "do this" instead of "in order to do this, do this, this and this"...
4
votes
1
answer
761
views
Operator overloading: Java vs. Python
Why operator overloading was included in Python and not in Java?
How does one decide to include or exclude operator overloading in a programming language?
It is said here that operator overloading is ...
2
votes
2
answers
1k
views
How to structure device driver software?
I'm asking here for both the scientific, programmatic, and structural format of a device driver. What does that mean? Basically, I'm not asking how to write a driver in general ... I'm asking how to ...
1
vote
1
answer
131
views
API - Design issues [closed]
I'm building a GUI Desktop application that will communicate with an API(http) in a webserver.
In the client side I have a GUI Desktop application and a GSM Modem(hardware). The GUI Desktop ...