Skip to main content

Questions tagged [resources]

Memory, files, network connections, I/O devices and other objects that have to be acquired and then released within a program. Please do not use this tag to ask questions about educational resources such as tutorials, books, websites or classes. Those are off-topic on Programmers.

12 votes
4 answers
3k views

I encountered the following situation: I have two modules, TokenService and Wifi which are initialized from main(). The modules themselves don't know of the existence of each other and function ...
glades's user avatar
  • 493
0 votes
1 answer
377 views

This might be an opinionated question but I'm eager to hear your anecdotes as I'm at the beginning of designing a new API. Now I'm questioning whether I want this API to be a sink API or non-sink API. ...
glades's user avatar
  • 493
0 votes
0 answers
111 views

I find myself in a situation where I have two roles, "Admin" and a "Organizer". The "Admin" accesses the AdminUserController to update users, while the "Organizer&...
Aridez's user avatar
  • 129
-2 votes
2 answers
75 views

Given an app that manages appointment bookings, I'm separately storing purchases, bookings made, or cancellations (some of them non-refundable) and am required to show the sum of these, based on ...
benomatis's user avatar
  • 105
0 votes
1 answer
338 views

More specifically this applies only to resources which have asynchronous dependencies themselves (but I think that's majority of them). Concrete example: class Foo : IAsyncDisposable { public ...
Shadow's user avatar
  • 361
74 votes
4 answers
12k views

Sometimes in apps I look into the Resources and find files for, for example, a 256x256 version, a 128x128 version, a 64x64 version, AND a 32x32 version, of the same icon. When I see simple geometric ...
CPlus's user avatar
  • 1,219
0 votes
0 answers
152 views

In our team we are currently discussing which technology makes more sense for an upcoming feature - HTTP polling vs WebSocket. To give some context: We are developing a TV streaming application (...
david.mihola's user avatar
2 votes
1 answer
3k views

I'm making a basic platformer game. I have a Game class as well as Level class. The game object holds a pointer to the current Level object. A level currently has a std::vector of GameObject raw ...
Luke B's user avatar
  • 147
0 votes
1 answer
350 views

I am writing a class -- let's call it MessageSender -- that needs to perform operations over the network. It basically does these things: Take some configuration establish a connection send stuff If ...
Felk's user avatar
  • 204
-4 votes
2 answers
98 views

I know that browsers use a separate port for each tab. However, in each tab, there might be multiple scripts doing data transfer over the network. How does a browser makes sure that the data is ...
marked-off-topic's user avatar
1 vote
2 answers
154 views

I am building an interpreter in C for a simple programming language. The interpreter is fitted with a built in garbage collector. The GC simply marks all objects which are linked from some root (the ...
Aviv Cohn's user avatar
  • 21.6k
1 vote
1 answer
5k views

I am currently developing a software for a multi languages environment using visual studio (en, fr and es). The soft is some kind of a 3d configurator, if I take the exemple of a car configurator, the ...
TontonVelu's user avatar
2 votes
1 answer
652 views

For an application that is starting out I do not want to over pay for servers and resources that will not be used since the budget is very limited at this point. This will be a for an iOS and Android ...
Luis Liz's user avatar
  • 131
-4 votes
1 answer
132 views

I want to ask about iOS application characteristic/behavior regarding processing location information. My previous wording isn't straightforward and seems to make it look unclear (which is my problem ...
Alvin Suryadi's user avatar
-1 votes
1 answer
579 views

We have many clients which, upon start up, request a specific resource on the server using an HTTP API (not RESTful). This resource is - currently, identical for all clients. Naturally, since the ...
user991710's user avatar

15 30 50 per page
1
2 3 4 5
8