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

Create parent/child relationship in class

I have two classes, a child class: type MyChildClass = class public parent: ^MyParent; end; And a parent class: type MyParentClass = class public childs: array of ^MyChildClass; end; However, this wont work since only the class declared the last…
user8848976
0
votes
1 answer

Link between models of computation, computer system architectures and programming paradigms

I have been reading about these topics for a while and may have understood something. But I am confused with some connections: i. Turing Machine (RAM model to be exact) & Imperative Programming Lambda Calculus & Functional Programming ii. Von Nueman…
0
votes
1 answer

A bady-written Scala code. How would look a well-written one? (playing with programming paradigms and techniques)

I am a Scala newbie. The following code is my extension of the first lesson from "Functional Programming Principles in Scala" course by professor Martin Odersky from the first lesson about Rationals "Functions and Data". I have added opti method…
MthStd
  • 1
  • 1
0
votes
0 answers

Is it a good idea to mutate Node's global object?

Is it a good idea to add properties to Node's global object? Searches for this lead me to a discussion of global variables in Node, and frankly I can't find much about the global object for some reason. From my understanding, global in Node is…
pushkin
  • 9,575
  • 15
  • 51
  • 95
0
votes
3 answers

C++0x OOP paradigm shifts?

Are there any and if yes, which ones?
Shinnok
  • 6,279
  • 6
  • 31
  • 44
0
votes
1 answer

Function pointers implication to Object-oriented programming

In his talk "The Future of Programming", Robert Martin mentions the motives for structured, functional and object-oriented paradigms: Structured programming: don't use unrestrained goto; Functional programming: don't use assignment; Object-oriented…
ebu_sho
  • 394
  • 6
  • 17
0
votes
1 answer

How to automatically save the GUI to file? (Paradigm)

The good (and bad) old Delphi taught us the "classic" way of building application because of the way we write code "behind" the IDE. Based on this paradigm, I built some time ago a library that allows me to save/load the GUI to INI file with a…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
0
votes
1 answer

Prototypical OO: extending an object that is not "class-like"

Prototypical OO talks about getting rid of the class-instance distinction and having only objects. Objects inherit from other object. However, all examples that I've seen end up having "class-like" objects and "instance-like" objects. The former…
0
votes
1 answer

about entity component paradigm

I'm making a little IDE and during programming activity i am facing a little difficulty that i'm trying to explain. I have two layers (cpp files), one for the more low level entities (entity itself, vector etc) and one for the higher level (the IDE…
freesoft
  • 57
  • 7
0
votes
1 answer

Comparison of Javascript Pattern/Paradigms / Best practice of design

I am compiling a list of biases(both proponents and antiponents) to explain to my team lead why our current javascript design is outdated. This is an open-ended question, I am looking for 3rd party analysis on the pro's and con's of the following to…
0
votes
1 answer

What Python features wouldn't be possible with static typing?

There have been many questions and answers about the relative benefits of static and dynamic typing. Each has their camp, and there are obviously good reasons for both. I'm wondering though, are there any specific features of Python that wouldn't…
Jeremy
  • 104
  • 3
  • 12
0
votes
1 answer

Are language paradigms such as OOP designed from an execution or authoring perspective?

Mostly I've worked with JavaScript, but am currently working with C#. It occurred to me that when programming and taking into account object hierarchies, that in both cases I don't really know how the code is being executed. When writing 'class'…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
0
votes
1 answer

Does this "overly general" type of programming have a name?

Anyone who has experience with the Salesforce platform will know it can essentially be used as a backend for a lot of web applications. They let the end user define custom objects and the fields on those objects. So for instance, rather than having…
Leylandski
  • 421
  • 5
  • 8
0
votes
1 answer

Data structure to keep track of active connections

When I want to keep track of active connections, is it better to save them into linked list or directly to some array where index will represent ID of the connection? I want to prevent possible race condition issues, for example: number of…
yojimbo87
  • 65,684
  • 25
  • 123
  • 131
0
votes
0 answers

Term for function that interprets arguments by type rather than order?

Is there a term for a function that interprets arguments based on their type rather than the order in which they are passed? For example, the JavaScript function function multiplier(text, iterations){ // Do some type checking of text and…
RobF
  • 116
  • 1
  • 7