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
0
votes
1 answer
Usage Concept -- User Controls, Interface
This is one question about two things: When do I use [a] user controls, [b] interfaces? Or, given all the possibilities what would be the optimum use of the said items.
Why do I ask?
UserControl: I attempted to create a website with one ASPX page…

Jim V
- 31
- 6
0
votes
2 answers
Should I use Exception Handling or Check the values
I need some help with a conceptual problem.
Essentially, I have some data from a known source. I know that all of the data can potentially not have a value. I have two options.
Option 1:
I can check all of the data before it is stored to prevent…

Aelphaeis
- 2,593
- 3
- 24
- 42
0
votes
1 answer
Should i use Static/Shared Methods for readability:
I have always been tought to avoid using static methods. But i've also been tought to try to keep my code as readable and short as possible.
I have a list of proxies and for all of them i should perform 5 different validation.
For me these…

JMan
- 2,611
- 3
- 30
- 51
0
votes
2 answers
Setting up models for tutor website
I'm wondering what the best way would be to set up models in Ruby on Rails for a tutoring website.
I would like the users to register (I have no particular way in mind but I'm assuming I'll go with one of the more popular ruby gems). They can then…

DaniG2k
- 4,772
- 36
- 77
0
votes
2 answers
What is a good way to serialize remote commands?
I've been working into a small game just for learning.
The intent of the game is that it is going to be online, but I have some trouble on how to serialize the commands sent from server to client.
There is a lot of different commands that can be…

MasterID
- 1,510
- 1
- 11
- 15
0
votes
2 answers
Is passing by reference is a special case of passing as pointer?
I haven't understand passing by reference in C++ completely. I already read related questions like the following ones.
What are the differences between a pointer variable and a reference variable in C++?
Are there benefits of passing by pointer…

danijar
- 32,406
- 45
- 166
- 297
0
votes
4 answers
Spring injecting one property dynamically
I am new to Spring and i am stuck with a scenario where i need help.
My Scenario is i have a bean definition for some specific module like this.

Logicalj
- 99
- 3
- 14
0
votes
1 answer
std::bind inside of a class, general concept of an event system
I'm working on a library that's based upon a simple event-system.
For work with GUI elements ("controls"), these are needed a lot. For example, the Window class has got a bunch of events, like "onMouseMove", "onKeyPress", "onKeyRelease", .. However,…
user1795160
0
votes
1 answer
Performance Typed Column x Distinct Table
There are differences between distinct tables and type columns in terms of Performance or Optimizations for queries?
for example:
Create Table AllInOne(
Key Integer Identity Primary Key,
Desc varchar(20) Not Null,
OneType Integer Not…

EProgrammerNotFound
- 2,403
- 4
- 28
- 59
0
votes
2 answers
Find intersection(s) of any two functions - solving simultaneous equations
Imagine having any two functions. You need to find intersections of that functions. You definitely don't want to try all x values to check for f(x)==g(x).
Normally in math, you create simultaneous equations derived from f(x)==g(x). But I see no way…

Tomáš Zato
- 50,171
- 52
- 268
- 778
0
votes
3 answers
What is the purpose of dividing rows into columnfamilies if they can have different number/types of columns anyway?
Given that a column family can have rows with arbitrary structure we could store all rows in a single "store" (avoiding the name 'columnfamily/table' on purpose).
What is the purpose of column families then?

Eugen
- 2,292
- 3
- 29
- 43
0
votes
2 answers
MVC: Controller keeps array of model objects or view objects?
I have a view controller placeViewController which pulls in a bunch of Place objects, and from these loads and populates a matching bunch of PlaceView objects which are then displayed as subviews to its main view.
I need to update these views…

trapper
- 11,716
- 7
- 38
- 82
0
votes
1 answer
Variation Amongst Arrays
I have several items(topics) each featuring several sub-items, as outlined below...
Application
microsoft word
excel
visual studio
DB
mysql
mssql
I want to compare several of these groups and give a score to each topic based on how many subitems…

eric MC
- 766
- 2
- 10
- 36
0
votes
4 answers
Need to understand the functionality of string.count() function
I was trying to understand the functioning of string.count basically
The documented definition of it is
string.count(s, sub[, start[, end]])
Return the number of (non-overlapping) occurrences of substring sub in string s[start:end]. Defaults for…

NIlesh Sharma
- 5,445
- 6
- 36
- 53
0
votes
3 answers
In memory class generation with attribute and methods
Hey this is a conceptual question and create some curiosity in my mind that is it possible to create Class(not object) dynamically or in memory? and also we can define attributes and methods for this class dynamically as well.
Is this possible in…

kundan bora
- 3,821
- 2
- 20
- 29