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.

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.

107 questions
74
votes
4 answers

What is the purpose of storing multiple lower resolution versions of the same original image?

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 icons like circles I already wonder why they do…
user16217248
  • 1,029
  • 1
  • 5
  • 19
70
votes
16 answers

Is it a waste of time to free resources before I exit a process?

Let's consider a fictional program that builds a linked list in the heap, and at the end of the program there is a loop that frees all the nodes, and then exits. For this case let's say the linked list is just 500K of memory, and no special space…
Ramzi Kahil
  • 1,089
  • 1
  • 10
  • 20
41
votes
9 answers

Is memory management in programming becoming an irrelevant concern?

Background I revisited an old (but great) site I had not been to for ages - the Alioth Language Shootout (http://benchmarksgame.alioth.debian.org/). I started out programming in C/C++ several years ago, but have since then been working almost…
csvan
  • 551
  • 4
  • 7
36
votes
2 answers

What is the proper way to do REST?

Everybody nowadays does SOA, even if some don't actually understand what is all about. So they do it wrong. Using that as an analogy I know what REST is (or at least I think I do) and want to do some of it. But I want to do it right. So my question…
JohnDoDo
  • 2,309
  • 2
  • 18
  • 32
33
votes
5 answers

Why can't Java/C# implement RAII?

Question: Why can't Java/C# implement RAII? Clarification: I am aware the garbage collector is not deterministic. So with the current language features it is not possible for an object's Dispose() method to be called automatically on scope exit. But…
mike30
  • 2,788
  • 2
  • 16
  • 19
31
votes
14 answers

What is the most inspiring speech from a developer you ever watched?

Please put a direct link to it. Required: Still available online (please put a direct link to it) Must be a speech from a current or former developer Speaker's popularity doesn't matter Target audience should be other developers It is not required…
user2567
26
votes
12 answers

Where can I get free public raw data?

In web development, a mashup is a web page or application that uses and combines data, presentation or functionality from two or more sources to create new services. There are many sources for getting data (raw information). Governments are good…
Amir Rezaei
  • 10,938
  • 6
  • 61
  • 86
22
votes
3 answers

What modern alternatives to Numerical Recipes exist?

In the past, the Numerical Recipes book was considered the gold standard reference for numerical algorithms. The earliest Fortran Edition was followed by editions in C and C++ and others, bringing it then more up-to-date. Through these, it…
Stewart
  • 357
  • 2
  • 9
19
votes
2 answers

To include a resource ID in the payload or to derive from URI

Designing an API, we've come up against the question of whether a PUT payload should contain the ID of the resource being updated. This is what we currently have: PUT /users/123 Payload: {name: "Adrian"} Our route code extracts the ID from the URI…
Adrian Lynch
  • 318
  • 1
  • 2
  • 6
19
votes
4 answers

How to Determine # of Programmers needed for a project

How do you know how many programmers a particular project needs to be successful? The company I work for fulfills orders for client companies. We have written an in-house warehouse management system that handles location based inventory…
kstevens715
  • 293
  • 1
  • 2
  • 5
19
votes
3 answers

What's the difference between an Asset and a Resource?

I've used several IDEs and created several default projects. Upon creation, I'll find folder structures created for me. Sometimes I'll see a Resources folder, sometimes an Assets folder, and sometimes both. Is there actually a (standard) difference?
Olson.dev
  • 299
  • 1
  • 2
  • 5
18
votes
1 answer

Are there any A.I. resources that explain the concepts and present source code?

Are there any A.I. resources that explain the concepts and present source code, similarly to AI Horizon? I've read books and research papers but they generally present a conceptual approach, without really delving into the source code of it.
user6791
18
votes
4 answers

Why are string resources generally kept external to the code and not inside the code?

Generally, on many platforms, I'm writing my string resources to a .resx or .xml file, and then I'm getting them using some platform-dependent approach. That is, on iOS, I'm getting them via NSBundle.MainBundle, and by using Context.Resources on…
17
votes
5 answers

How to organize localization string resources?

We're developing a large application, consisting of many small packages. Each package has its own set of resource files for localization. What's the best approach to organizing and naming the localization strings? Here are my thoughts so…
16
votes
4 answers

Will the Database connection be closed if we yield the datareader row and not read all the records?

While understanding how yield keyword works, I came across link1 and link2 on StackOverflow which advocates the use of yield return while iterating over the DataReader and it suits my need as well. But It makes me wonder as what happens, if I use…
GawdePrasad
  • 473
  • 2
  • 4
  • 11
1
2 3 4 5 6 7 8