Conceptual questions involve programming problems which are not related to program code itself, but with algorithm logic and program architecture.
Questions tagged [conceptual]
364 questions
5
votes
2 answers
REST API: Is it a really bad practice to create custom HTTP response codes?
Is it a bad practice when writing a RESTful API to use custom HTTP response codes like:
417 - Password not provided
418 - Database error
I see there is a list of standard HTTP response codes. However, from looking at Twitter's API, it appears…

Placeholder
- 4,651
- 6
- 33
- 35
5
votes
3 answers
Other builtin or practical examples of python `with` statement usage?
Does anyone have a real world example outside of python's file object implementation of an __enter__ and __exit__ use case? Preferably your own, since what I'm trying to achieve is a better way to conceptualize the cases where it would be used.…

samstav
- 1,945
- 1
- 20
- 20
5
votes
6 answers
Java Best Practice new vs .create()
Well, i have a very conceptual question. A lot of things look like fabrics, where i'm not sure where the great benefit is.
As example
public class MyObject {
public MyObject() {
}
public static MyObject create() {
return new…

MemLeak
- 4,456
- 4
- 45
- 84
5
votes
3 answers
Enumeration vs Indexing vs Iteration
I've been reading Eric Lippert's blog for a while now (it's excellent, you should check it out) and In the comments of one of his posts, he mentions that he had no intention indexing a sequence of numbers but rather only enumerate them.
What is the…

Dimitar Dimitrov
- 14,868
- 8
- 51
- 79
4
votes
1 answer
Term for diff/delta on multiple files or data structures
I would like to know whether there is a proper term to describe "diffing" of / obtaining the delta between multiple files or data structures, such that the resulting "diff" contains first a description of the parts common to all files/structures,…

smheidrich
- 4,063
- 1
- 17
- 30
4
votes
1 answer
How does the Multivariate imputer in scikit-learn differ from the Simple imputer?
I have a matrix of data with missing values that I am trying to impute, and I am looking at the options for different imputers and checking to see what settings would work best for the biological context I am working in. I understand the knnimpute…

Kangaroo
- 41
- 1
- 2
4
votes
2 answers
What would happen if I don't close an ssh session?
I'm new to Python. Currently I'm using it to connect to remote servers via ssh, do some stuff (including copying files), then close the session.
After each session I do ssh.close() and sftp.close(). I'm just doing this because that's the typical way…

KhaledMaged
- 449
- 1
- 5
- 12
4
votes
3 answers
How does a DBMS implement their own sorting algorithm? Or do they?
When a SQL is translated to C by parser such as YACC or BISON, does that piece of translated C code contains the the sorting algorithm mathematics? I do not understand how the sorting is implemented in a DBMS (such as MySQL or Microsoft SQL Server)…

KMC
- 19,548
- 58
- 164
- 253
4
votes
1 answer
what is Bonjour?
I was watching wwdc videos this afternoon and I heard the word Bonjour .
So I just want to know what is Bonjour in Apple .
This is just to clear the concept .
Thanks

harshalb
- 6,012
- 13
- 56
- 92
4
votes
2 answers
Concept: Trial & Full version in IOS today. (separate Apps, inapp purchases, Applestore rejection)
Concept on howto maintain a trial and purchasable full version of an IOS-app today:
There are lots of dicussions on this topic, but I would like to look at this for my case and how it would be designed TODAY (2015), with actual Apple…

mcfly soft
- 11,289
- 26
- 98
- 202
4
votes
1 answer
Continuation Passing Style In Common Lisp?
In an effort to find a simple example of CPS which doesn't give me a headache , I came across this Scheme code (Hand typed, so parens may not match) :
(define fact-cps
(lambda(n k)
(cond
((zero? n) (k 1))
(else
…

macrolyte
- 352
- 3
- 12
4
votes
1 answer
What is the reason today's programming languages just allow one method return value?
What is the reason today's programming languages just allow one method return value?
I would like to know several reasons why e.g. Java does not allow to have a method
public String, Car, Driver exampleMethodName(String name, Car car, Driver…

Dominik Feininger
- 460
- 3
- 16
4
votes
3 answers
My trainer says Java creates 380 objects to run a simple java program.Is this right?
A java trainer who trained in our company claims there are 380 objects created to run the simplest "Hello World" program. Is this correct ? How do I verify it ?

user2434
- 6,339
- 18
- 63
- 87
4
votes
2 answers
Best practices for initialising Objective-C properties
I understand that this may not necessarily apply to just @properties, but they would be the most common use case. If there is, for example:
@property (strong) NSObject *object;
...
@synthesize object = _object;
It is possible to initialise it in…

Greg
- 9,068
- 6
- 49
- 91
3
votes
1 answer
What do files actually contain, and how are they "read"? What is a "format" and why should I worry about them?
As it becomes ever easier to use computers in general and get into programming in particular, an increasing fraction of beginners seem to lack certain fundamental understanding that was once taken for granted in programming circles. Meanwhile as…

Karl Knechtel
- 62,466
- 11
- 102
- 153