Questions tagged [concept]

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. This approach was introduced in 2001 by Christophe de Dinechin with the XL Programming Language.

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. This approach was introduced in 2001 by Christophe de Dinechin with the XL Programming Language.

For more, see Wikipedia.

300 questions
5
votes
2 answers

How is constraint overloading resolved by the partial ordering of concept?

Per cppreference, the partial ordering of constraints over subsumption is used to determine "the best match for a template template argument". And in the example section, the option that is "more constrained", i.e. the stronger/tighter, condition is…
RexYuan
  • 280
  • 7
  • 13
5
votes
3 answers

Is NULL a pointer?

So, I had an argument with my professor earlier defending that NULL is not a pointer, but he kept on insisting that it is because there is such a thing as NULL pointer. So, here I am now a little bit confused if NULL is really a pointer or not I…
Joe
  • 51
  • 3
5
votes
2 answers

Happstack-state concept and docs?

I'm starting making Haskell web server. I've decided to start with Happstack and Happstack-state. And I'm feeling hard to understand concept and attribute of Happstack-state. Is it a new kind of database? or Just object-graph like system? Can you…
eonil
  • 83,476
  • 81
  • 317
  • 516
5
votes
1 answer

Login system concept & logic?

I want to know the process which usually web apps follow to maintain login between multiple requests and also how they manage things using COOKIES. In my login form I am providing "Remember Me" feature. When user login then I check the username and…
djmzfKnm
  • 26,679
  • 70
  • 166
  • 227
5
votes
4 answers

application logic vs business logic

While I am trying to discerned the difference between the application logic and business logic I have found set of articles but unfortunately there is a contradiction between them. Here they say that they are the same but the answer here is totally…
Mo Haidar
  • 3,748
  • 6
  • 37
  • 76
5
votes
2 answers

What is Injectable and Embeddable?

I have heard about both terms Injectable and Embeddable many times, but I am not getting actual meaning of it. Please help me to understand both clearly.
NewDirection
  • 116
  • 10
5
votes
1 answer

Why two individually created immutable objects have same id and mutable objects have different while both refer to same values?

Two individually created mutable list have different ids. Python SHELL: (mutable) >>> mylist = ['spam', 'eggs'] >>> yourlist = ['spam', 'eggs'] >>> id(mylist), id(yourlist) (49624456, 48910408) While two individually created immutable strings have…
Yousuf Memon
  • 4,638
  • 12
  • 41
  • 57
5
votes
1 answer

What are values of function(a, b)?

I am testing module example from JavaScrit: The Good Parts. I don't know who passes in a and b in function(a, b). Somehow it works. Function.prototype.method = function(name, f) { this.prototype[name] = f; return this; } String.method('de',…
J Any
  • 4,847
  • 3
  • 13
  • 8
5
votes
1 answer

Java concept idea

** SOLVED ** I'm fairly new to Java and so far I love it! So I'm just asking if someone has a idea that could help me out. So here's what I would like to do. What I'm working on right now is a application that can interact with my local website…
Timothy Montanez
  • 125
  • 1
  • 1
  • 8
4
votes
3 answers

what is the concept behind java iterator?

I am doing a research on java iterator interface and cannot understand why it is designed like that. Why java iterator use hasNext and next instead merge them into one method? this a typical usage of java iterator Iterator iter = //iterator from a…
Bryan Chen
  • 45,816
  • 18
  • 112
  • 143
4
votes
3 answers

what's the concept of mandatory in orientdb?

I'm trying OrientDB. Most of concepts are easy and clear to understand. But there was one unfamiliar concept. The mandatory. What's this?
eonil
  • 83,476
  • 81
  • 317
  • 516
4
votes
1 answer

What is cluster and node in RabbitMQ?

About RabbitMQ two concept is unknow to me, cluster and node ? what is different between them?
RezaRastgoo
  • 99
  • 1
  • 11
4
votes
1 answer

Bug in C++20 concepts with template member functions and std::invocable

I was experimenting with C++20 concepts and the Eigen library, and I incurred an unexpected behavior. Specifically, consider the following concept requiring a type to be callable with either an Eigen::Matrix> object or an…
fdev
  • 127
  • 12
4
votes
1 answer

C++20 Concept test not working in MSVS 16.5

I'm new to C++20 concept, but from examples I've seen, this code should work... #include #include #include #include using namespace std; struct hasToString { string toString() { return…
4
votes
2 answers

When is an "instance" being created?

I've been reading articles about OOP with python, specifically this one. The autor of that article has a description and then a code example: The Python syntax to instantiate a class is the same of a function call >>> b = int() >>> type(b)
Miguel Ortiz
  • 1,412
  • 9
  • 21
1 2
3
19 20