Skip to main content

Questions tagged [api-design]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 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 ...
tarstevs's user avatar
0 votes
1 answer
98 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 ...
user11937382's user avatar
0 votes
1 answer
18 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 ...
michaelgz13's user avatar
0 votes
0 answers
24 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 ...
Dan Watson's user avatar
1 vote
1 answer
49 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 ...
FEST's user avatar
  • 113
0 votes
0 answers
68 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 ...
marita3952's user avatar
0 votes
1 answer
99 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 ...
AlphaBetA's user avatar
1 vote
1 answer
71 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 ...
superstewie's user avatar
1 vote
0 answers
58 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 ...
Sylwester's user avatar
  • 119
4 votes
0 answers
82 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 ...
user7610's user avatar
  • 143
4 votes
2 answers
323 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"...
Adam Zerner's user avatar
4 votes
1 answer
639 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 ...
Zedaiq's user avatar
  • 159
1 vote
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 ...
Bingo Baby's user avatar
1 vote
1 answer
82 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 ...
André's user avatar
  • 113
19 votes
3 answers
592 views

Is there a theory of exception hierarchies?

I'm familiar with a dozen of programming languages which have exceptions in some way, yet I came to witness two "pathological" tendencies. There doesn't seem to be a common pattern or ...
wvxvw's user avatar
  • 1,388