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
5
votes
2 answers

What is graph oriented programming?

What is GOP and does it relate to either the maths or data structure definitions of graphs? How does it compare to aop, oop, functional, logic or other paradigms?
Tim Matthews
  • 5,031
  • 8
  • 38
  • 45
4
votes
1 answer

How to program shared behaviors in Rust without repeating same code in each module?

For writing a very large program, I see no way to alleviate having to write the same code for each struct that uses a certain shared behaviour. For example, Dog may "bark": struct Dog { is_barking: bool, .... } impl Dog { pub fn…
4
votes
2 answers

What is the practical use of arbitrary code block (by curly brackets) in C#

I have seen an example with the switch statement where each case block was surrounded by the curly brackets, like this: switch (itemType) { case ItemType.TV: { String message = Messages.GetMessage(itemType); …
Kornelije Petak
  • 9,412
  • 15
  • 68
  • 96
4
votes
2 answers

I want to call it side-effect programming, but there's gotta be a better term for this

What is the name of the following programming paradigm: Code is executed based on a set of logical tests resolving to true (the clause). The clause is comprised of operators and operands. Each operand is a value/object. Instead of evaluating the…
Hanoixan
  • 449
  • 3
  • 12
4
votes
2 answers

Name this (2-D, logic-table-like, visual) programming language/paradigm (Subtext/Example Centric Programming)

I remember stumbling upon a video clip introducing a new programming "language" and a paradigm. The "language" was 2D and visual in nature, and therefore tightly coupled with its IDE and interpreter in the video. It started out like a truth table…
aib
  • 45,516
  • 10
  • 73
  • 79
4
votes
0 answers

Modularity Techniques in C

Most of my programming experience and learning so far has been focused on languages (C++, C#, Python, etc.) that feature tools for Object Oriented Design and other 'high level' organizational concepts. Many of these languages have pretty clear…
MrKatSwordfish
  • 1,504
  • 5
  • 18
  • 30
4
votes
1 answer

When to use declarative programming over imperative programming

As far as I know the main difference between declarative and imperative programming is the fact that in declarative programming you rather specify what the problem is, while in imperative programming you state exactly how to solve a problem.…
VincentDS
  • 310
  • 2
  • 8
4
votes
1 answer

Can programming be truly declarative?

I've been teaching myself a bit about declarative vs imperative programming, and I've come to the (possibly false) understanding that declarative programming is more or less just abstraction. For example, according to how I understand these…
jah
  • 155
  • 1
  • 2
  • 11
4
votes
1 answer

Are there any context-oriented programming language, and what's their use for?

I heard someone talking about Context-Oriented Programming, so I googled it to found out what that means, and it seems like a new paradigm of programming, but also all I found are academic papers talking about the concept. So I would like to know if…
Ezequiel Barbosa
  • 211
  • 1
  • 15
4
votes
0 answers

Difference between flow-based programming and functional programing

I recently came across the term flow-based programming as a paradigm. According to this wikipedia article the paradigm is about defining separate "black-box" processes that exchange data with each other and can be recombined to produce different…
4
votes
1 answer

New to ASP.NET MVC - Will I have to relearn security?

I'm planning work on a new project and am now tempted to use ASP.NET MVC. My project plans to use JQuery and AJAX (although non-JS clients will also be supported). Coming from a standard ASP.NET background, I'm still trying to get my head around the…
keyboardP
  • 68,824
  • 13
  • 156
  • 205
4
votes
3 answers

JAVA: Is it possible to write comments in different languages?

I am relativly new to Java and I am writing small programs to practise. Therefore I write a lot of comments in my programs to understand the written code easier, whenever I have to make a change. Because I am a German programmer I write the comments…
THE-E
  • 193
  • 3
  • 4
  • 21
4
votes
2 answers

Can Prototypical OOP Be Considered a Paradigm In C++?

Good day, considering the following code, could one classify prototypical OOP to be a paradigm in C++? #include template< class... Bases > struct TestClass : public Bases... { int a; template< class... Parents > TestClass<…
4
votes
3 answers

declarative programming and imperative programming

I am studying two main paradigms of programming, declarative and imperative paradigm. I am having a hard time following the ambiguous statements made on my textbook and wikipedia, such as: declarative: - focuses on "what" the computer is to do. -…
Midnight Blue
  • 5,061
  • 10
  • 41
  • 46
4
votes
1 answer

Dealing with hierarchy-breaking effects in iOS games and apps

I started working as a iOS developer about a year and a half ago, and I'm having some trouble with software architecture and organization. I use Apple's recommended Model-View-Controller paradigm, and my code is generally very hierarchical: if a…
Archagon
  • 2,470
  • 2
  • 25
  • 38