Questions tagged [concepts]

Concept programming is a programming paradigm focusing on how concepts, that live in the programmer's head, translate into representations that are found in the code space.

121 questions
2
votes
4 answers

What is the terminology for "two or more different ways to represent the same data?"

For example, A system can accept a description of a symbol as "black-heart" or "heart-black". As far as this system is concerned, both description are valid. Is there a computer science terminology or math concept for the existence of multiple,…
Anthony Kong
  • 391
  • 3
  • 12
1
vote
2 answers

Help me with concept - rolling time window

I am designing some software for transportation companies (air, ground, water, etc). In these industries, you have rest rules where you need to get a certain amount of rest in between activities. So lets say trucker/pilot/sailor has an activity to…
-1
votes
1 answer

When would you ever use a range not in the context of an array

I'm constantly trying to acquaint myself with different programming concepts, and I recently looked deeper into ranges. In Haskell a range is basically a literal that expand to some kind of array. In Ruby (and Python I guess) it is a completely…
hgiesel
  • 781
-2
votes
2 answers

why does enumeration(enum) falls into category of non composite data type

I can see that integer or pointer are non-composite data types whereas record and objects are composite data type. Similarly i guessed enumeration is composite because integers or string values can be used like in an array. Turns out it isn't.
-2
votes
1 answer

Could you suggest mutually exclusive groups for String Extension methods or give a name for this one?

I am separating one of my method extension classes (i.e., StringExtensions) into regions, as has become confusing and it's difficult to see the wood for the trees. I have grouped the methods into four regions, as follows: Identification: Usually…
Phil C
  • 1,966
-2
votes
1 answer

Explanation of the code snippet , keyword operator in , in c++ , use of objects in classes

class Vector { public: Vector(int s) :elem{new double[s]}, sz{s} { } double& operator[](int i) { return elem[i]; } //function 2 int size() { return sz; } private: double∗…
Mann
  • 1