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
18
votes
3 answers

Why do we need ContinueWith method?

Why do we need Task.ContinueWith() method. Cannot we just write that "continuation code" inside Task body?
16
votes
4 answers

Architecture of an application which opens multiple documents (projects)

I am working on a Qt based CAD application and I am trying to figure out the application's architecture. The application is able to load multiple projects with plans, sections, etc, and to show these drawings in dedicated views. There are per…
ezpresso
  • 7,896
  • 13
  • 62
  • 94
15
votes
2 answers

Concept of and basic questions about separating logic (C++) and GUI (Qt)

I finished a project in C++. It is a console application, created with CodeBlocks. Although I consider it not so important in the scope of this question: The application manages data about bills and customers of a small company. The program is…
LCsa
  • 607
  • 9
  • 30
15
votes
2 answers

SQL vs NoSQL: what about other issues than ACID and scalibility?

I have read quite a few articles lately which describe SQL and NoSQL from both sides of the divide, such as http://use-the-index-luke.com/blog/2013-04/whats-left-of-nosql. These articles very often touch the subjects of things like ACID and…
mauritslamers
  • 527
  • 3
  • 10
15
votes
3 answers

Why does adding an index to a database field speed up searching over that field?

I'm new to databases and have been reading that adding an index to a field you need to search over can dramatically speed up search times. I understand this reality, but am curious as to how it actually works. I've searched a bit on the subject,…
Scott Lemmon
  • 694
  • 7
  • 16
14
votes
3 answers

Recommended / Standard handling of Laravel Data Migrations

Laravel ships with database migrations for managing CRUD operations regarding the structure of a database, but what is the appropriate/recommended/standardized way to handle migration of actual data? My question is, should the data migration take…
12
votes
3 answers

What is the difference between a Mobile and a Desktop device?

Using Chrome Browser DevTools I wanted to add a custom device in the Emulated devices tab. You can choose several options such as the width and height. And also choose between: Mobile Mobile (no touch) Desktop Desktop (touch) So the difference…
Alvaro
  • 9,247
  • 8
  • 49
  • 76
11
votes
3 answers

How does the PowerShell Pipeline Concept work?

I understand that PowerShell piping works by taking the output of one cmdlet and passing it to another cmdlet as input. But how does it go about doing this? Does the first cmdlet finish and then pass all the output variables across at once, which…
Richard
  • 6,812
  • 5
  • 45
  • 60
11
votes
2 answers

Why decorator is a structural and not behavioral design pattern?

I consider myself having intermediate knowledge of GoF design patterns. However, I get confused when it comes to classifying those patterns into structural and behavioral patterns. I do not have any confusion about creational patterns. From…
Anand Patel
  • 6,031
  • 11
  • 48
  • 67
11
votes
2 answers

How does one represent multiple threads in a flow chart

I have been tasked with creating a flow chart for some client server and start up processes in our organizations software. A lot of our processes run concurrently as they have no impact on one another. How is this traditionally represented in the…
Dabloons
  • 1,462
  • 2
  • 17
  • 30
11
votes
2 answers

What is a PowerShell cmdlet?

Approaching cmdlets in a conceptual way, How are they made? Are they compiled? Is it the equivalent of a batch file for PowerShell? Is it a script or a binary? What is the structure used for storing these cmdlets?
citn
  • 1,522
  • 3
  • 18
  • 29
9
votes
1 answer

Why does min/max/sum(c(NA, 4, 5), na.rm = "xyz") work while mean() with same inputs doesn't?

I would like to understand why sum/min/max functions in R interpret a character string as TRUE when supplied to na.rm, while mean() does not. My uneducated guess is that as.logical("xyz") returns NA, which is being supplied to na.rm as the argument,…
Plhu
  • 117
  • 1
  • 9
8
votes
2 answers

Why use instance variables to "connect" controllers with views?

This is a conceptual question and I haven't been able to find the answer in SO, so here I go: Why instance variables are used to connect controllers and views? Don't we have two different objects of two different classes (Controller vs Views). So,…
Nobita
  • 23,519
  • 11
  • 58
  • 87
8
votes
1 answer

How to move my RoutedCommand handler from View-codebehind to ViewModel?

The following RoutedCommand example works. However, the handling for the button which executes the command is in the codebehind of the view. The way I understand MVVM, it should be in the ViewModel. However, When I move the method to the ViewModel…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
8
votes
2 answers

Why to run code in method called by XAML Window.Loaded?

I saw a code example that creates a method Window_Loaded() which is called by XAML's "Window Loaded" event:
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
1
2
3
24 25