Using jQuery to manipulate entire HTML DOM [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Is this a good practice? I mean is it good if all of my codes(behavior,presentation,structure) are inside on my .js(for example, since I'm making a website) file? Why? Sorry for my bad english.

Obviously it is not good practice, the recommended practice is to split all the code into its designated file. The simplest method is to use multiple script tags with src.
If you're really interested in dividing up your code efficiently, I would suggest learning BoostrapJS or AngularJS.

Related

What is the best method to bring a gigantic JS object to client side? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
What is the best method to bring a gigantic JS object to client side?
This is not a good idea. You are going to bloat your website / application size and it will run very slowly.
You are better off putting that object either into a database or at least server side in some form and making API calls to just the data you need, when you need it.

what practice is better using pure javascript & css is or using frameworks? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
being a student which practice is better using pure javascript & css or frameworks? And which is better for professional field?
Depends what you want to do.
Most of the times, what you want to build is already built by someone else so there is no need (and mostly, no time) to re-invent the wheel. Customers want results as soon as possible, so frameworks are good for prototyping.
But to get there, you should first try building things from scratch, so for learning you go with pure CSS and vanilla JS, and then build your knowledge of frameworks.

Do I need to learn OOP before learn Angular JS? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have good knowledge of HTML CSS Bootstrap and Basic knowledge of Javascript & Jquery so do I need to clear all Object oriented programming before jump on Angular?
Yes you should, but not just because of angular. For complex applications an Object oriented Structure is always a good decision, because it will help you to represent an subset of the reality in your application

How to organise RactiveJS code [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I struggle to find any suggestions how to organize RactiveJs code.
Currently I just put RactiveJs code to the bottom of the page. It was okay till my scripts were small. But the bigger they are the more problem it causes. I'm considering moving the RactiveJs code to separate js files, may be using some pattern (Module?).
Are there any guidelines in this regards?
There is a spec for component-per-file: https://github.com/ractivejs/component-spec/ and there are loaders that allow you to incorporate them into the page.
However, Ractive doesn't force you to use this pattern. You are free to experiment whatever convention works for you.

Is angular.js considered too large for simpler use cases [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Would angular.js be considered too large to use for simpler use cases, for example just for a certain
portion of a web page which is not a SPA ?
I would say yes. For small tasks like you describe here, I prefer to use simpler two-way-binding-frameworks such as KnockoueJS. It is super easy and you can achieve quite a lot of cool funtionality.
The answer of your question is yes and it is discussed in the AngularJS documentation.

Categories