Is a framework based on a programming language?

Asked

Viewed 498 times

12

I know that a framework is like an application to be used in applications, but it is correct to say that a framework is based on a certain language? Example:

jQuery is a Javascript-based framework

And what’s the difference of a framework to a library? Is there?

1 answer

16


A framework specific is made for a specific language. I don’t know if you can say "based on a language," it depends on the interpretation of what this means, but generally speaking, this is not the correct term.

Already exists an answer for the second part of the question. And based on it we can say that a framework It’s just a library with a specific philosophy. And a library is just a collection of algorithms and data structures written in a language to perform some task. In some cases this task is to facilitate the use of language, as in the case of jQuery, but it is not always the case.

Note that according to the official page and understanding of most programmers, jQuery is a library and not a framework, therefore I consider all the statement incorrect.

jQuery is a library written in Javascript (or for Javascript)

I take this opportunity to make it clear that jQuery is also not a programming language, as many think.

  • The link you linked was very useful, I was able to understand the difference. So jQuery is not a framework because you don’t work on it, you just "use it," right?

  • That’s it. And in fact his creators make it clear.

  • Perfect, and it’s even because of that that some programmers are told to stop with the "freshness" of wanting all Javascript to be "converted" to jQuery, because all jQuery code is Javascript. Thank you.

  • @Rafaelalmeida It is not freshness, it is the great and correct saying of not having to reinvent the wheel when making a car. If in your application you are often manipulating DOM elements, jQuery is almost always the best option, since it has a wide community, well defined documentation, good performance and is rich in functionality.

  • 1

    @Lfziron I disagree radically, but I will not go into details not to provoke a discussion, after all is not our goal here. I just don’t want to let the people who are reading here think that.

  • @Yeah, thanks for the fix. I think by summarizing, I ended up saying in a very generic way about the use of a library, something that should be well studied before starting the project. Rectifying myself, I will leave the article below that has a neutral point on the subject, so that I can clarify to those who read: http://www.revista-programar.info/artigos/jquery-usar-ou-nao-use/

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.