Ruby Gems vs Javascript Libraries with some pretty cool libraries!
If you’re a beginner to the world of programming like me then you’ve probably gone through a very similar emotional rollercoaster as I have. At first everything's all great, you're learning all this cool stuff, front end, backend wow this is awesome. Then you keep learning and keep learning and keep refactoring and you get to a point where you're just like Whoa, am I really expected to remember everything??!
In short no…
If you have any experience with ruby you’ve probably heard of these little things called gems. If you're like me however, you might have had this idea that ruby gems are magical and they just work. I remember putting gems into my gemfile and running a quick bundle install and voila it just worked. Truth is we've all been fooled and there's no such thing as magic.
So what is a ruby Gem?
A Ruby Gem is a library or plug-in. It’s some functionality that you’ll install to fill a specific need. The RubyGems software allows you to easily download, install, and use ruby software packages on your system.
A Ruby gem is a library for any type of functionality that you feel is reusable and want to share with other programmers. Anyone can make a ruby gem whether its helpful or not.
But is using a gem cheating because you didn’t code it yourself?
Honestly, a very important thing I've learned in my short time being a programmer is that programmers are lazy! If someone has already built out a functionality that is publically available then use it!!
Gems are great! I love gems and now that I'm learning Javascript I can continue using gems to help me right?
Jokes on me because gems are only a Ruby thing.
Think back to that Ruby Gem definition for a minute though. A Ruby Gem is actually a sort of library… and Javascript has MANY libraries that we can utilize just like gems!
A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage.
https://www.khanacademy.org
Cool JavaScript Libraries that I found:
Algolia Places
Anime.js
AOS — ANIMATE ON SCROLL
Choreographers-JS
Premonish
TweenJs
Three.js
Granim.js
Bideo.js
Chart.js
Cleave.js
Slick
There are TONS of javascript libraries out there that are free for all programmers to use! If there is a certain functionality that you want to incorporate in your program I definitely recommend doing a quick google search to see if you can possibly save yourself some time.
Oh wait! How do you even use these libraries?!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!READ THE README!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Here are some helpful resources to explore different javascript libraries: