paradigms

Do you use MDA/MDD/MDSD, any kind of model-driven approach? Will it be the future?

核能气质少年 提交于 2019-12-03 07:27:27
Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. that promise incredible productivity boosts. However, I made the experience that it is either rather easy in the beginning to get started but as well to get stuck at some point when you try something that was unanticipated or pretty hard to find enough information that tells you how to start your project because there may be a lot of things to consider. I think an

Differences & Similarities Between Programming Paradigms [duplicate]

妖精的绣舞 提交于 2019-12-03 00:41:30
This question already has answers here : What are the most important programming languages to know for concepts? [closed] (25 answers) I've been working as a developer for the past 4 years, with the 4 years previous to that studying software development in college. In my 4 years in the industry I've done some work in VB6 (which was a joke), but most of it has been in C#/ASP.NET. During this time, I've moved from an "object-aware" procedural paradigm to an object-oriented paradigm. Lately I've been curious about other programming paradigms out there, so I thought I'd ask other developers their

What is the relation of 'Event Driven' and 'Object Oriented' programming?

可紊 提交于 2019-12-02 23:51:55
These days, I hear almost everywhere about 'event driven' programming. Wikipedia says: In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other programs/threads. Event-driven programming is the dominant paradigm used in graphical user interfaces and other applications (e.g. Javascript web applications) that are centered around performing certain actions in response to user input. Isn't this exactly our old friend OOP? And if this

C++ Techniques: Type-Erasure vs. Pure Polymorphism

余生颓废 提交于 2019-12-02 22:46:23
What are the advantages/disadvantages of the two techniques in comparison ? And more importantly: Why and when should one be used over the other ? Is it just a matter of personal taste/preference ? To the best of my abilities, I haven't found another post that explicitly addresses my question. Among many questions regarding the actual use of polymorphism and/or type-erasure, the following seems to be closest, or so it seemed, but it doesn't really address my question either: C++ -& CRTP . Type erasure vs polymorphism Please, note that I very well understand both techniques. To this end, I

Imperative vs Declarative code [closed]

别来无恙 提交于 2019-12-02 17:41:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . 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 me explaining how I realized I

Is there still a difference between a library and an API?

十年热恋 提交于 2019-12-02 15:43:04
Whenever I ask people about the difference between an API and a library, I get different opinions. Some give this kind of definition, saying that an API is a spec and a library is an implementation... Some will tell you this type of definition, that an API is a bunch of mapped out functions, and a Library is just the distribution in compiled form. All this makes me wonder, in a world of web code, frameworks and open-source, is there really a practical difference anymore? Could a library like jQuery or cURL crossover into the definition of an API? Also, do frameworks cross over into this

Scala versus F# question: how do they unify OO and FP paradigms?

*爱你&永不变心* 提交于 2019-12-02 14:29:07
What are the key differences between the approaches taken by Scala and F# to unify OO and FP paradigms? EDIT What are the relative merits and demerits of each approach? If, in spite of the support for subtyping, F# can infer the types of function arguments then why can't Scala? Daniel C. Sobral I have looked at F#, doing low level tutorials, so my knowledge of it is very limited. However, it was apparent to me that its style was essentially functional, with OO being more like an add on -- much more of an ADT + module system than true OO. The feeling I get can be best described as if all

The difference between Reactive and Functional-Reactive programming

亡梦爱人 提交于 2019-12-02 13:55:41
I have been doing some research into reactive programming recently and I'm finding it hard to find a good description of the difference between Reactive and Functional -Reactive. Is it simply that the reactive programming is implemented using functional methods/paradigms as opposed to using declarative or OO paradigms? Conal Functional Reactive Programming (FRP) is a specific programming model with a specific semantics. (Actually, there are two variants, which are sometimes called "classic FRP" and "arrow FRP".) I've given a summary in an answer to "What is (functional) reactive programming?"

C# Paradigms: Side effects on Lists

我是研究僧i 提交于 2019-11-30 05:17:17
I am trying to evolve my understanding of side effects and how they should be controlled and applied. In the following List of flights, I want to set a property of each flight satisfying a conditions: IEnumerable<FlightResults> fResults = getResultsFromProvider(); //Set all non-stop flights description fResults.Where(flight => flight.NonStop) .Select(flight => flight.Description = "Fly Direct!"); In this expression, I have a side effect on my list. From my limited knowledge I know for ex. "LINQ is used for queries only" and "There are only a few operations to lists and assigning or setting

What is the opposite of OOP? [closed]

半腔热情 提交于 2019-11-29 21:06:37
I started in High School learning java and python and I guess I just always learned OOP and nothing else my question is What are the other programming paradigms or types of programming languages beside OOP? "Opposite" isn't really a good way of putting it. What's the "opposite" of Democracy? OOP is a a paradigm -- a way of viewing the problem of programming. The four main coding paradigms are functional (viewing programs as mathematical formulas), imperative (programs are series of instructions for the computer), logical (model information and the relationship between that information), and