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
0
votes
1 answer

Keeping class state valid vs performance

If i have public method that returns a reference type value, which is private field in the current class, do i need to return a copy of it? In my case i need to return List, but this method is called very often and my list holds ~100 items. The…
0
votes
3 answers

What is the job of 'Interface' in OO programming?

From what I understand, does it mean. making methods to build up different components of a program. e.g. if i was to make a program that adds and subtracts numbers then I would have something like; public void addnum(int addnum){ …
Seeker
  • 509
  • 4
  • 19
0
votes
1 answer

How to replace text in a text file?

I have a file String.xml, as shown: SoundAndBackground Settings Hello world! I am trying to develop a Java…
yogeshkmrsoni01
  • 663
  • 1
  • 7
  • 9
0
votes
0 answers

c++11 lambdas doesn't work with boost::concepts

The following code doesn't work with clang 3.3. but it does word with g++ 4.8.1. Boost version is 1.55. #include template class ConceptsBase {}; int main() { auto l = [](){}; …
0
votes
5 answers

Fork concept, dont quite grasp how fork works

I try to draw out the process according to the code but I really need some explanation in why, here is the question: B() { pid_t pid; if ((pid = fork()) != 0) waitpid(pid,NULL,0); printf("2"); if(fork() ==0) {…
Rozen
  • 139
  • 1
  • 2
  • 14
0
votes
1 answer

Some advices about conception of an application needed

i'm going to write a wpf-application and i think i need some advices. I have a database that provids some records. These records are shown in a ListView. The user can insert, delete or modify records. Each of these operations calls the appropriate…
MrToast
  • 1,159
  • 13
  • 41
0
votes
3 answers

fclose function in c, Why fread() works but not fwrite() if you call fclose for file handler

Why is it if we read a file with fread() and don't include fclose to close the same same file reference but still it works. However if we forgot to include fclose after fwrite then it doesn't work.i.e. no writing on file reflects.
sean
  • 146
  • 2
  • 9
0
votes
1 answer

What would this concept be called?

I am trying to do something in code, that is not working and I'm not even sure what to google for. The actual case is in python using tkinter, but here is a simple example that will make the point. I want to create a bunch of variables so I made a…
Dan
  • 10,614
  • 5
  • 24
  • 35
0
votes
1 answer

How to overwrite parent properties (redeclaration of parent property as a static variable)?

It is possible to have a type in the parent class that the subclass overwrites? The idea here would be to have a shape class, with subclasses of rectangles, square, circles, etc. Wondering if it's possible to overwrite the definition of 'shapeType'…
snowbound
  • 1,692
  • 2
  • 21
  • 29
0
votes
1 answer

SOA - The four tenets

I'm reading about SOA and the four tenets thats required to make a SOA-application. I have tried different sources, but the explainations is twisting. Im searching for something that is a bit less abstract. Is my interpretation correct? The four…
Kim Smith
  • 79
  • 1
  • 7
0
votes
1 answer

why use simple_list_item_1 when calling ArrayAdapter

I understand that simple_list_item_1 is a pre written xml layout file that we use when we are creating a listview. We pass it in as one of the parameters to the constructor of ArrayAdapter<>. But why do we need a middleman? the android manual on…
Siavash
  • 7,583
  • 13
  • 49
  • 69
0
votes
1 answer

What's the relationship between those two “heaps”?

There're two concepts named "heap" in computer science. One is the memory pool used in memory management, the other is an algorithm. I know they are different, but what's the relationship between them? Or they just happen to get the same name?
can.
  • 2,098
  • 8
  • 29
  • 42
0
votes
2 answers

Concept Application Server IDE CIDE will not launch on XP in IE8?

I am trying with concept://localhost/Samples/CIDE/cide.con with the server running as an NT service A few code examples run (many crash Client.exe but not the server) e.g. concept://localhost/Samples/test.con runs. thanks
0
votes
2 answers

AngularJS directive communication not having same parent

Let's imagining that I have a directive that contains some data and I want to interpolate it somewhere else in a second component (directive or else), without having a controller linking them. For example, take the zippy of angularjs webpage, but…
user2024621
  • 275
  • 3
  • 9
0
votes
0 answers

Activate jquery function after "splash screen"

I am working at a school project for a site with a simple navigation. So i am using keyup functions for scrolling. Demo model is on my webpage The concept is quite simple, a screen pops up. You type in your name. "Log in" screen fades out and intro…
Mike P
  • 178
  • 8