Hot answers tagged

5

SQL is based on Relational Algebra and Tuple Relational Calculus, not higher-order functions or functional programming. While SELECT, FROM and WHERE have analogous functions in other languages, SQL itself doesn't support generalized higher order functions, but only those "higher-order" functions that the language itself defines. Since SQL doesn't allow ...


3

This is related to constraint-programming. Prolog is an example of such a system. There exists javascript implementations of prolog http://yieldprolog.sourceforge.net/ . You could then make your prolog program and use it on both the server and client. Another approach is having all the logic on the server side but expose it as an api which the client could ...


3

Have a look at LINQ, which takes the basic concepts behind SQL and generalizes it to object-oriented programming. The Where operator is a bog-standard Filter, the Select operator is a projection/Map, and so on. All of the basic SQL query operations are represented in LINQ, implemented using higher-order functions, so yes, you're correct in your intuitive ...


2

If what you are trying to do is present a single endpoint to many APIs, you might find some value in Netflix' Falcor project. Falcor is not a query engine. It is a library for "efficient data fetching." It is one example of a growing set of tools delivering "Demand Driven Architectures" -- alternatives to traditional rest services that allow the author of a ...


1

Are there any other problems, aside from the mentioned data consistency issue, I should be aware of when I save data like this in a relational database? Source control. Is there a better option for persistence? Maybe? I mean, what you're talking about is scripting. Normally, scripts are deployed alongside the app and follow the more traditional ...


1

Yes, there is exactly that. You can provide your quickfix as a semantic modification to the EMF resource. Xtext's serialization mechanism will figure out how to convert your changes to the AST back to text. Something along these lines should do the trick: @Fix(MISSING_SUPERTYPE_ID) public void fixupSupertype(final Issue issue, IssueResolutionAcceptor ...


1

Does this pattern have a formal definition? This is also referred as convention over configuration. Who invented it? This is a hard question, according to Wikipedia it goes back to 1960's. Apparently it's influenced by the concept of default. Is it considered a DSL? I would say yes, because it's specific to the domain of ORM framework (related to the ...



Only top voted, non community-wiki answers of a minimum length are eligible