Thursday, February 18, 2016

That application is wise which has less third-party dependencies or less dependencies whatsoever.

I heartily accept this credo "That application is wise which has less third-party dependencies or less dependencies whatsoever".

Most Ruby on Rails applications usually, and all Ruby on Rails applications sometimes, have plenty of gems. I believe that most of the gems can be easily eliminated and the application will still function as good as ever. In fact, it'll be faster, lighter and less likely to have bugs because gems are subject to have bugs.

I believe, that most of the functionality that gems provide, can be written by ourselves in a reasonable amount of time and without that much effort.

We don't need a third-party library which:
  • highlights a line in the terminal in the red colour and that's all it does.
  • allows us to write 2 lines of code to connect to gmail.com instead of 4 ones we write using the standard Ruby library.
  • allows us to write print_with_3_new_lines("Blabla") instead of print("Blabla\r\n\r\n\r\n")
  • takes us tremendous amount of time to learn its API.
  • is hardly used by anyone else.
  • makes us dependable on the author of the library and their mood of fixing the bugs or improving it.

No comments :

Post a Comment