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

Good examples of MVC?

Can anybody point to/give a very very correct example for the Model-View-Controller paradigm? I mean something really simple (like an inches to cm converter) implemented in some easy-to-understand language (VB.NET?) absolutely and exactly following…
Andrew J. Brehm
  • 4,448
  • 8
  • 45
  • 70
2
votes
1 answer

programming model vs programming paradigm?

Can anyone tell me difference between programming model vs programming paradigm ? I have seen these terms many times in literature but I have no idea when to use them can anyone give me an example of these terms usage ? THank you
Jazzi Khan
  • 47
  • 7
2
votes
4 answers

How to automatically run in the background?

I'm not sure that it's not implemented yet, I hope that it is. But I know that in .Net programmers should manually run time-consuming task in the background thread. So every time we handle some UI event and we understand that this will take some…
Hun1Ahpu
  • 3,315
  • 3
  • 28
  • 34
2
votes
2 answers

Paradigms in menu bar layout/design

Doing some restructuring on the my applications menu bar. When looking at other applications, there seems to be two different ways of structure. Either the "old school" most common way, the verb/command followed by the subject. I.e. what do you want…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138
2
votes
6 answers

What does it need to be a programmer?

What should I study in order to be a programmer. (except programming languages :) ) I know some C/C++ and some Java(, but I don't have the thinking of a programmer. I probably need to study some algorithms. What is your opinion?
cc.
  • 5,533
  • 14
  • 37
  • 46
2
votes
0 answers

Which pattern to use in Javascript to enable user overrides/customization of a core framework?

We've developed a sort of mobile application kit which was initially designed to run without any user code. Its part of a mobile app studio and now we'd like to enable "user overrides" through Javascript. Right now we're experimenting with 3 ideas :…
xamiro
  • 1,391
  • 1
  • 16
  • 32
1
vote
1 answer

Programming Paradigm Beginner

easy theory question. I have a couple years experience with PHP and Javascript, trying to branch out into other languages and to connect my experience with some theory. Have been reading about programing paradigms like imperative, functional,…
user173361
  • 137
  • 7
1
vote
1 answer

Does "Data Oriented Programming" just mean "using a global object" in javascript terms?

Ola, I am trying to understand how DOP would work through a JavaScript dominated lens. DOP seems to only offer a handful of examples, most of which are written in OOP based languages. My lack of experience with OOP makes it hard for me to translate…
Nightfall
  • 107
  • 1
  • 10
1
vote
0 answers

language for data-driven programming

I'm wondering if there is a language that supports programming in the following style that I think of as "data driven": Imagine a language like C or Python except that it's possible to define a function whose input parameters are bound to particular…
Martin
  • 11
  • 2
1
vote
1 answer

Alternative to OOP in Julia

I'm trying to learn a bit of Julia, so i'm writing some small projects in the language. I'd like to write, for example, a simple Perceptron in Julia, but it is not object oriented, so i can't create a class Perceptron, like in python What is a…
TheSnow
  • 45
  • 4
1
vote
1 answer

Incrementing a counter with functional programming vs imperative programming

I likely am asking a very stupid question here, please forgive me. I am a Java and C# backend-engineer with relatively good knowledge of OOP design patterns. I have recently discovered the debate about OOP vs functional programming and the question…
1
vote
1 answer

Practical Advantages and Disadvantages of Answer Set Programming/Logic Programming

I've recently taken an interest in Logic Programming, and more specifically Answer-Set Programming with CLINGO, and was wondering what the general consensus on this paradigm is in practical terms. For example, most declarative programs, including…
1
vote
1 answer

How to express recursive calls in higher dimensions

Just a question of curiosity, not serious. In the JS language I know that a factorial operation can be defined in the following form. function factorial(n) { if (n === 1) return 1; return factorial(n - 1) * n; } Then I defined a factorial…
Lane Sun
  • 13
  • 4
1
vote
2 answers

Separating JS & HTML in Wordpress

I recently read the discussion https://stackoverflow.com/questions/62617/whats-the-best-way-to-separate-php-code-and-html I am facing a similar dilemma. Currently working on a WordPress website which has a LOT of sliders, animated dropdowns, forms…
Tarun
  • 5,374
  • 4
  • 22
  • 32
1
vote
1 answer

Python: Make program react to keywords in a string without endless if-else nightmare

So, the real world context for this is a chatbot I'm working on, but here is a condensed version of what I'm trying to accomplish. The function is supposed to take a message, look if it contains certain keywords (some are case sensitive and some…
Vyralator
  • 55
  • 5