• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Is Ruby easier to learn than Java, since there appears to be less code to write?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are much more things than keystrokes that we need to consider
 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still, this is an interesting question. The lines of code may be less, yet the method and variable names may be much longer. There are at times many ways to do things, yet the language reads very english sentence-like. The language is focused on developers, not on compilers.

Is Ruby your first OO language? Was Java? (just curious).

I've found Ruby to meet my language expectations better, have a lower barrier-to-entry, and read a lot nicer (than Java).

I've also found they syntax of Ruby to be a bit more Perl-ish that I'd hoped for, though because I enjoy using the language so much - I'll give it that concession.

 
Rancher
Posts: 43015
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that's true (and -knowing very little about Ruby- I have no way of knowing) then I'd say that Ruby code might be harder to read since the code density should be higher for the same functionality.

Of course, these days IDEs make the task of typing/writing the actual characters that make up the code easier, so from that perspective there may not be much difference.
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic