F
F
FlexibleCurd2015-11-09 11:26:40
css
FlexibleCurd, 2015-11-09 11:26:40

Is it worth it for a beginner to write jQuery plugins himself?

Hi all !!!!
Well, as a plugin, most likely an "easy" solution without any additional settings.
I am a beginner in layout and noticed that some plugins are quite voluminous.
Of course, to say that the scrollspy bootstrap plugin is voluminous is nonsense (probably), but I decided to make it even smaller and write my own quickly, so to speak, and now I’ve already spent 2-3 hours on this matter, why so much ?: this is the question that when you start writing there are such moments that you would like to think over (for example, if the section does not fit into the plug-in condition and it is the last one you need to highlight it, but even if it is the last one but after it there is text, the highlight should be removed! although scrollspy does not do this, but I think it's better).
In general, I came to the conclusion: I connect scrollspy and don’t worry (if you really want to improve it somehow, you can influence its action a little through jquery, it’s faster than writing it yourself from scratch).
I have a fad on the amount of information (it always seems to me that everything will be wildly slow!, Of course, all this can be tracked, but so far I'm just a beginner and I think there are more important things to do (more important than the topics of tracking download speed, etc. (these topics are IMHO for more advanced))).

p/s.
and you can’t think through all the moments right away, is it worth the risk?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Dunayevsky, 2015-11-09
@dunmaksim

I have about the same problem, I constantly want to improve the code I write for performance and beauty reasons, but this perfectionism is unnecessary and greatly increases the development time.
While there are no really noticeable brakes, there is no need to optimize anything. The trend is not the best (Witcher 3, Chrome, Assassins Creed is just the tip of the iceberg), but while you make your perfect fast plugin, competitors will write a bunch of buggy curve crutches that will already work, and people will use them, and when finally release version 1.0, it is already so outdated that you yourself will not use it.

C
Cat Anton, 2015-11-09
@27cm

write your own in a quick way, so to speak, and now I have already spent 2-3 hours on this matter, why so many?

For a good plugin, this is not much.
Norm, do it.
Premature optimization is evil!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question