Questions tagged [conceptual]

Conceptual questions involve programming problems which are not related to program code itself, but with algorithm logic and program architecture.

364 questions
2
votes
0 answers

Pros and cons separating Web API and Client?

It's good to separate Web API and Client for maintainability and distribution, but are there any other pros and cons doing it? For example, performance. Will it significantly affect application startup time? I guess it's faster to start one…
2
votes
1 answer

Why should I use MVP pattern in GWTP application?

I've implemented such an architecture for two times, so haven't realised real profits it gives. All I obtained is code of View, separated in two places. Most of the methods contain lines of code like getView().* In additional there are at least two…
Nikolay Shabak
  • 576
  • 1
  • 7
  • 18
2
votes
2 answers

How is JS both non-blocking / asynchronous but single-threaded?

I'm having trouble visualizing how Javascript can be both single-threaded but non-blocking on the client. I've always envisioned something like an assembly line: At the start of your code execution, you've got a single assembly line putting…
fuzzybabybunny
  • 5,146
  • 6
  • 32
  • 58
2
votes
7 answers

Conceptual question: Loose Coupling

I am building a graphic board like project where i am facing a design issue. Main Class is Board which is a canvas responsible for handling mouse events when drawing shapes. It also has context variables such as currentShape or snapFlag to activate…
coulix
  • 3,328
  • 6
  • 55
  • 81
2
votes
1 answer

Why is sort method part of Collections instead of AbstractList?

When sort method works upon only Lists, I feel keeping it in Collections class is somewhat buggy. Shouldn't there be a separate class dedicated to Lists? Maybe AbstractList or something like ListUtil.. ?
Mohit Kanwar
  • 2,962
  • 7
  • 39
  • 59
2
votes
2 answers

Conceptual data modeling: Is RDF the right tool? Other solutions?

I'm planning a system that combines various data sources and lets users do simple queries on these. A part of the system needs to act as an abstraction layer that knows all connected data sources: the user shouldn't [need to] know about the…
paprika
  • 2,424
  • 26
  • 46
2
votes
3 answers

Concept for product upgrade in a productline without inapp payment

I have a "Base", "Normal" and a "Deluxe" App. "Base" is free, "Normal" costs 1$ and "Deluxe" costs 2$. The "Base" app holds the entire logic for all content and shows the trial content at the same time. The "Normal" and "Deluxe" are only unlocker…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
2
votes
3 answers

Generic SQL Proxy - Does it exist?

I am working on a concept product which tries to solve the domain problems of 'dynamic data masking'. This is an area where you don't get a lot of inputs when you do your standard google search. The idea is to ecrypt/substitute/shuffle/mask data in…
Jay
  • 2,394
  • 11
  • 54
  • 98
2
votes
3 answers

How to store different classes in one Variable?

I have a little conceptual problem. I have different classes representing the geometric data of an edge depending what type of edge it is. For Example the class for a straight line and a circle: class Line{ private: double[3] startPoint; …
2
votes
1 answer

How would you use these two conceptually different approaches to writing javaScript Objects

This is a little bit of a noob question, but coming from a server side (PHP) background, I am struggling a little with the conceptual differences between the different ways of creating javaScript objects and classes. I have two snippets, which…
Paul Danelli
  • 994
  • 1
  • 15
  • 25
2
votes
2 answers

async/await thread transition curiosity

I have the following simple console application: class Program { private static int times = 0; static void Main(string[] args) { Console.WriteLine("Start {0}", Thread.CurrentThread.ManagedThreadId); var task =…
Michael Nero
  • 1,396
  • 13
  • 24
2
votes
1 answer

Understanding the difference between a script and a program

So I've written a few comprehensive scripts using bash and sh, but only a couple of small java programs. I've read a couple of java books and just feel like it isn't sticking. I find C and C++ easier to grasp for some odd reason and then scripting…
nullByteMe
  • 6,141
  • 13
  • 62
  • 99
2
votes
1 answer

What Does the Process Tree Look Like Using Fork()?

Say, for example, we have the following executed in the shell: ls | grep "abc" | wc I understand how a child process would fork from the shell and how its a child, like this, Shell (pid=12) \ \ ls (pid=13) but I'm not sure…
2
votes
2 answers

Why are NASM programs broken down into 3 sections?

What is the technical reason NASM programs are broken down into three "sections"; .data, .bss and .text ? What is really happening behind the scenes? Why does the assembler need to know in advance if there are constants, why not just take them as…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
2
votes
3 answers

How should I ideally create a well-structured UITableViewDataSource?

I have an NSArray of songs fetched from a server. That is my raw data source. The array contains custom objects which have an NSDictionary and NSArray as backend. I am wondering if implementing a formatted data source using an NSDictionary will be…
duci9y
  • 4,128
  • 3
  • 26
  • 42