«« Next » « Previous
«« Next » « Previous

Link Details

Wouldn't it be cool if everybody did it? Login and vote now.
Link 96973 thumbnail

By reborg
via reborg.tumblr.com
Published: Jul 22 2008 / 07:37

I think there is a connection between the enthusiasm of the Ruby community and the average size of a typical gem contribution. I explain my reasons in this (short) article. I'll be happy to hear what you think.
  • 12
  • 0
  • 833
  • 252

Comments

Add your comment
User 225162 avatar

herval replied ago:

0 votes Vote down Vote up Reply

I dont think there are more (and finer grained) gems than there are libraries on, say, java or python...

User 299854 avatar

reborg replied ago:

0 votes Vote down Vote up Reply

For the number you can be right, but I never saw in Java (I don't know in Python) jars like this one: http://downtowncartel.com/randexp-gem/. It's a generator of random strings matching a given regexp. Take this as a general example. Let's say I need this feature in my Java project. If it's provided as a jar I need to add the dependency to the building environment (hoping that it is in the maven repo), add it to Eclipse and if the project is a command line app, be sure that the class-path is setup correctly (if you are smart and know your business you can almost automate all). If this is the granularity of a jar file I have to deal with I can soon end up with hundreds of them creating a potential maintenance headache. Personally I would think twice before doing this. Usually I prefer to copy and paste the relevant snippet of the code because it's way faster for a simple feature like this one.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (12)



Voters Against This Link (0)