Questions tagged [paradigms]

A tag for questions relating to the world view underlying a particular software methodology or theory.

A tag for questions relating to the world view underlying a particular software methodology or theory.

A paradigm is a model, method or pattern. In programming different methods of writing programs are called , examples are and functional programming.

More information on paradigms

291 questions
0
votes
1 answer

Is event driven programming the same thing as asynchronous programming?

The title says it all. I'm just wondering because I am trying to understand what asynchronous programming is and it seems similar to event driven programming I learned for swing and libgdx.
vicg
  • 1,280
  • 14
  • 32
0
votes
2 answers

C# OOP - One class can be two different things (Inheritance Issue)

I'm making a console game in C#, and have encountered a problem with the OOP paradigm. I have an Item class: class Item { public int SellPrice; public string Name; } And a ShopItem class, which represents Item objects that…
Travier
  • 205
  • 2
  • 9
0
votes
0 answers

Result of unused code in paradigm compiler

Previously I was using Borland compiler for my project and currently switched to Paradigm compiler. I came across a peculiar situation. I have a piece of code which has no effect during execution. This no-use code behaves/causes no issue when…
0
votes
3 answers

Imperative vs Declarative code

I'm trying to understand the difference between imperative and declarative paradigms, because I have to classify Visual Basic. NET in the different paradigms. Beyond object-oriented, I guess it's also imperative or declarative. If someone could help…
user3516011
  • 31
  • 1
  • 4
0
votes
3 answers

Need help understanding .Select method C#

I am having difficulties understandting what type of statement this is and how to use the .select method. var lines = System.IO.File.ReadLines(@"c:\temp\mycsvfil3.csv") .Select(l => new { myIdentiafication=…
user2745076
0
votes
2 answers

Good Implementation of Aspect oriented Programming reference required

I have been reading about (AOP) Aspect Oriented Programming and I could not find any good article on internet with its implementation in C#. Everyone are talking about AOP Frameworks. The code the described in below reference is not working at…
pankaj n
  • 3
  • 3
0
votes
1 answer

Zend Framework 2 - Interfaces, modules and controller

I'm new to Zend Framework 2 and I'm trying to build an application for (so far, moderate) "fun" and I need some hints to know how should I structure my application. I have a existing module that allows me to display some web pages with 2 controllers…
Stupidus
  • 3
  • 2
0
votes
1 answer

What is the proper way to approach a program structured with an "outside control"?

Consider a program structured essentially like this: ClassA, B, and C fit together logically in a parent/child relationship, and they never expose their private properties. The program would make perfect sense (and would compile and run) with just…
Madison Brown
  • 331
  • 3
  • 10
0
votes
2 answers

Learning Functional Programming For Improved C++11 style. Haskel, Lisp, or

I've never programmed in a "pure" functional language. I earned my stripes on C and C++, tried Java, C#, PHP etc... but always I found myself going back to C++. Perhaps I'm a bit of a masochist, but I love the low level stuff. I also find that I…
0
votes
1 answer

compare before update(memcmp before memcpy), or just update, which performance is better?

The context(although not important), in a netfilter module, we use struct like: struct data { char mac[ETH_ALEN]; char in6_addr addr; }; to keep track of MAC address and ipv6 address. for handling ipv6 address changes: should I compare the…
Ted Feng
  • 829
  • 1
  • 17
  • 22
0
votes
1 answer

Are there any single paradigm languages

You always hear programming languages advertised as multi-paradigm. I think I understand what this means, but I was wondering if there are any languages that are strictly single paradigm. From what I understand, the four main paradigms are…
Iowa15
  • 3,027
  • 6
  • 28
  • 35
0
votes
1 answer

Whats the basic difference which drives MI support over classes/interfaces?

Don't get me wrong. I am searching for this answer quite some time. And frankly speaking I could not get a satisfying answer anywhere. In a lot of places - Its mentioned that MI poses the following problem big time. I have two classes A and B, and…
Arjee
  • 372
  • 3
  • 15
0
votes
1 answer

Django model ManyToMany id paradigm

i am new to Django, and i having trouble understanding how the model.ManyToMany works. I have this model: from django.db import models class Health_plan(models.Model): a = models.IntegerField () b = models.IntegerField () class…
ClaudioA
  • 327
  • 1
  • 5
  • 20
0
votes
2 answers

newbie to OO question

My question pertains to windows forms Let's say I have a combobox for customer and orders, and depending on the selection made on those comboboxes I populate a datagrid for all the Order details. I am interested in a double click event within the…
codemnky
  • 207
  • 2
  • 12
0
votes
1 answer

Generic interface for big projects

Let's say you are writing a bigger project and you have to use 3rd party libraries. So your complete project will be depended on these libraries. I thought instead of using those 3rd party libraries directly, I would write some sort of an wrapper…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197