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
1
vote
1 answer

Why are there 2 ListBoxItems in the Visual Tree?

I am only displaying the selected element of a ListBox (yeah I know) ... And I am trying to understand why if I have a single ListBox.ItemTemplate with a single child of ListBoxItem, I have to traverse 2 ListBoxItems to access the element named…
patrick
  • 16,091
  • 29
  • 100
  • 164
1
vote
0 answers

Automatic Schema changes SQL Server

I am making a daily import script. It collects data from various sources and dumps it into a CSV. The CSV is used to make an external table and that external table is used populate the main table, with new data. The trouble is that the schema of…
Aman Khandelwal
  • 148
  • 1
  • 13
1
vote
2 answers

What is responsibility-driven design?

I am very confused about the responsibility-driven design concept. Mainly because of ever so slightly changing definitions depending on the source. Quoting BlueJ (the book I am learning that teaches Java): Responsibility-driven design expresses the…
Sebastian Nielsen
  • 3,835
  • 5
  • 27
  • 43
1
vote
2 answers

Objective-C messaging, smartly dealing with unknown messages

Is there a way to do something similar to KVC but use the message name as the key itself? For example, rather than valueForKey:, is there a way for an object to respond to all messages? For example, say you have an XML document:
dreamlax
  • 93,976
  • 29
  • 161
  • 209
1
vote
0 answers

file object vs path object

Python 3.4 (and above) has a module called pathlib which is for representing and working with paths. So, an instance of the pathlib class is an object which represents a path on the system (e.g. /home/my_file.py). I can use it to read a files…
RhythmInk
  • 513
  • 1
  • 4
  • 18
1
vote
1 answer

How to add or subtract numbers from a running total such that it will follow random given instructions

Given a sorted list of unique positive numbers, find the order in which these numbers should be added or subtracted such that with each calculation, the total should be positive or negative according to given instructions that consist of +/- signs.…
1
vote
1 answer

Migrate auto generated IDs from Oracle to SQL Server

I am currently developing a java application to migrate data of an Oracle database to an equivalent structured SQL Server database which I have migrated using liquibase. Now I could not figure out how to migrate the auto generated IDs as well since…
1
vote
1 answer

Flutter collapsed ExpansionTile not saving form data?

I am working on flutter expansionTile and added different fields inside that. If I expand the expansionTile and hit submit, The form fields are submitted which are inside expansionTile. But If I collapse it and then hit submit, then only those…
Faran Khan
  • 1,495
  • 4
  • 14
  • 26
1
vote
0 answers

REST API: What is the recommended URL to expose a Sub-resource of another Sub-resource?

I have two options to expose a Sub-resource of another Sub-resource but I don't know what approach to go... Supposing the people/{parentId}/addresses endpoint exists (where people is the resource and addresses is the sub-resource), how should I…
1
vote
2 answers

Uml Class Diagram for Metro Railway

I am trying to draw and define the classes in UML for the following problem. An Information System of Metro Railway Design the part of the conceptual scheme of the above system that will allow me to register the stations (by distinguishing…
giorgionasis
  • 394
  • 1
  • 7
  • 17
1
vote
2 answers

Scheduling concept in programming - user input

I am curious how the user input is handled in micro-controllers in way that all other work is not blocked. For instance, I have modern gas boiler - Vaillant, boiler is running his own tasks while I can scroll in the user menu, press buttons and so…
mekybsd
  • 13
  • 2
1
vote
2 answers

Why does closure capture reference while function does not? Also, why "lazy" keyword is required for closure declaration?

I experimented it with the following code in Xcode Playground: class X { var a = 3 init(a: Int) { self.a = a } deinit { print("\(self.a) is deallocated.") } func returnX() -> Int { return self.a …
qsmy
  • 383
  • 3
  • 14
1
vote
0 answers

Conceptual custom angular DateTimePicker question

I was asked to develop a custom date time picker with angular. My first thought was to develop a custom component, which would have a single input type text element and a div which would be invisible (this div would contain the calendar, hours,…
Bruno Miguel
  • 1,003
  • 3
  • 13
  • 26
1
vote
0 answers

How to create database/entities in complex situation

I have a Symfony 4 application on which users can view sports events and register themselves for these events. I use Doctrine as ORM and EasyAdminBundle for an admin panel. I'm having difficulty with figuring out how to structure my entities and how…
Wouter C
  • 533
  • 1
  • 6
  • 21
1
vote
1 answer

Is there any difference between controlled vs uncontrolled and statefull vs stateless components?

I am curious whether there is any difference when we try to differentiate react components as controlled vs uncontrolled and stateful vs stateless. Are we differentiating the same thing here with different terminologies or is there an actual…
PatilSaheb
  • 23
  • 7