Why Should You Learn Ruby?

Learn Ruby at Treehouse with a free 7-Day trial:
trhouse.co/43pIjxR
Ruby is a dynamic, object-oriented, general purpose programming language designed for productivity and fun. The designers of the Ruby language chose to make things simpler and more pleasant for the programmer.
Because Ruby was designed to be simple and comprehensible, it can be a pleasure to use. If you compare Ruby to Java, you'll see that when you work in Ruby, lists sort themselves, strings of text can capitalize themselves, numbers can round themselves, and much more!
Follow Us!
Twitter: / treehouse
Instagram: / teamtreehouse
LinkedIn: / treehouse-island-inc-
Facebook: / teamtreehouse
#coding #programming #learnruby #ruby

Пікірлер: 152

  • @axedyson
    @axedyson6 жыл бұрын

    man, classic one. Everybody compares high-level programming languages against java with the "Hello World" style xD

  • @axedyson

    @axedyson

    6 жыл бұрын

    shevegen yeah but java runs faster and you have more control over your program

  • @nikitapavlov4778

    @nikitapavlov4778

    5 жыл бұрын

    Java is a high-level language too

  • @imadalamaddin3717

    @imadalamaddin3717

    4 жыл бұрын

    Haha! I was going to say the exact same comment! It's not like we use programming languages to write "Hello, world"s and "not needing to compile" is definitely not a "nice thing" per say...

  • @valizeth4073

    @valizeth4073

    4 жыл бұрын

    @squ34ky2 Now you watch a C++ project being built and run with clang, it will have finished even before the interpreter can load up.

  • @jorgeed.1117

    @jorgeed.1117

    4 жыл бұрын

    ASM is easier than Java

  • @mokhosh
    @mokhosh6 жыл бұрын

    You're basically describing all scripting languages, not just Ruby

  • @mokhosh

    @mokhosh

    6 жыл бұрын

    Ok, one of all points doesn't apply to one scripting language. Good job, fascinating catch! by the way, did he even mention meta-programming?!

  • @tauhidaman007

    @tauhidaman007

    4 жыл бұрын

    MoTech can I learn ruby on windows 10

  • @valizeth4073

    @valizeth4073

    4 жыл бұрын

    @@tauhidaman007 Don't learn it at all, scripting languages are only worth using when you need to template code, or support another language with a simple runtime script. Bottlenecking the hell out of hardware isn't going to make AI cure cancer.

  • @tauhidaman007

    @tauhidaman007

    4 жыл бұрын

    @@valizeth4073 right now i am learning python should learn it?

  • @Vuden13

    @Vuden13

    3 жыл бұрын

    @@tauhidaman007 no

  • @Cassio81863636
    @Cassio818636364 жыл бұрын

    I came here to learn more about ruby lang and I end up seeing a guy comparing languages verbosity as it was the most important quality of a language. that's just sad.

  • @koala_8027

    @koala_8027

    3 жыл бұрын

    ikr, this really bothered me.

  • @diegoaugusto1561

    @diegoaugusto1561

    3 жыл бұрын

    Oh yeah I do enjoy me some PoolableConnectionManagerFactory to go along with my JavaPersonEntityBeanManagerFactory

  • @sonicbroom8522

    @sonicbroom8522

    2 жыл бұрын

    Except that 'language verbosity' is the entire reason that Ruby was developed. The creator of Ruby said none of the programming languages ever considered the programmer, and put the needs of the machines above everything else. Maybe do some damn research before you spew complete BS

  • @AJtheEngiqueer

    @AJtheEngiqueer

    2 жыл бұрын

    @@sonicbroom8522 ok so why should i learn ruby over python? or c++? or java? quickly..

  • @sonicbroom8522

    @sonicbroom8522

    2 жыл бұрын

    @@AJtheEngiqueer Its easier to learn than all those especially for beginners. Tons of high profile website run on Ruby on Rails. The code is cleaner to read and write.

  • @samiassasa3029
    @samiassasa30296 жыл бұрын

    Writing "Hello, world!" Is not the greatest way to make others believe that they should learn Ruby. I believe that introducing practical stuff is better, for example GUI.

  • @karthikeyanak9460

    @karthikeyanak9460

    5 жыл бұрын

    he does something more than hello world. watch the video fully.

  • @desubakadesu

    @desubakadesu

    5 жыл бұрын

    @@karthikeyanak9460 you mean doesn't ?

  • @theraccoonsHQ

    @theraccoonsHQ

    4 жыл бұрын

    :D haha

  • @simonemril7425
    @simonemril74254 жыл бұрын

    Thank you sir! I appreciate you and your time.

  • @valizeth4073
    @valizeth40734 жыл бұрын

    Compiling a .java file to a .class will *not* convert it to machine code which computers can understand, but with code that the JVM can understand. Big difference. Simpler doesn't always mean better. Speaking from a Java vs Python perspective, but surely python is a lot easier, yet a hell of a lot slower (and java itself is really really slow). Making a large project in a language like Java or C++ is a lot easier than doing an equally large project in Python, due to the higher control you get. Scripting languages do not give the user the ability to write as they like, the completely opposite infact.

  • @santiagolerin

    @santiagolerin

    3 жыл бұрын

    yeah, I was used to play a lot with the text in C, the moment I got to Python, anything worked just because i was changing between spaces and tabs in the same document... ps: I actually like python a lot and is my favorite tool in the box for now.

  • @Deepanshu412
    @Deepanshu4126 жыл бұрын

    Next video - Why should you learn all the programming languages ?

  • @hxkdneuxbxjdidndnxj
    @hxkdneuxbxjdidndnxj3 жыл бұрын

    Ruby is the best programming language hands down - I’ve been doing programming for the past 19 years and have tried a couple of dozens of languages. It should get more attention!

  • @Dev_4_hire

    @Dev_4_hire

    3 жыл бұрын

    Very subjective

  • @genjimccorkle5518

    @genjimccorkle5518

    2 жыл бұрын

    Nah, then you would get paid less.

  • @zealousprogrammer4539
    @zealousprogrammer45396 жыл бұрын

    Awesome video thank you very much, One of the most aspect of Ruby everyone envy it, Why? Marz the creator is the greatest language designer he added in Ruby all the higher funcs That Java 8/9, Python and ES6 are stealing today since its birth from 1995 map, reduce, filter, lambda and much - one of the enigma I can't understand why Java, Python and JS are so popular while Ruby is overlooked when when Ruby already had these functionalities out of the box?

  • @TheInimicus
    @TheInimicus5 жыл бұрын

    "Most languages have package managers, but you'll have to download them yourself". True, they're not installed automatically so advnaced developers can chose the best package manager for their needs (like java devs can choose between maven and gradle). Other, however (like node, which has code in JS) already comes with it's own package manager "npm", which you still can subsitute for newer, like 'yarn' by facebook.

  • @codingart7736
    @codingart77366 жыл бұрын

    Why should I choose ruby over python?

  • @mcmiloy3322

    @mcmiloy3322

    6 жыл бұрын

    Arguably Python is the better, more consistent, more popular language. But Ruby just tickles my brain the right way to make me love it.

  • @maz4962

    @maz4962

    6 жыл бұрын

    Any programming language is just a tool and i think Python is one of the most used tools for a reason. You can apply Python in a huge range of fields while Ruby may be a good choice just for a few tasks you want to automate, and guess what, Python can easily handle them too. I prefer Python over Ruby for general use, but as i said, both Ruby and Python are a tools... feel free to experiment with both of them to get an idea about what i'm talking about.

  • @nagakrushnay4254

    @nagakrushnay4254

    6 жыл бұрын

    As a programmer you need to Learn every technology then only we know which one is better. When coming to Python it has a Indentation problem, in ruby there is no problem in defining scopes. Ruby is also good programming language, learn it, you love it.

  • @nagakrushnay4254

    @nagakrushnay4254

    6 жыл бұрын

    Damoon Imani Right

  • @randerins

    @randerins

    6 жыл бұрын

    You can do more things with Python, but not necessarily better.

  • @janmsavage
    @janmsavage3 жыл бұрын

    uh, why no mention of ruby being the only language whose objects can (learn to) perform method calls that they were not initiated with at Class initialization time? In layspeak, ruby is the only language whose paradigm (object orientation, everything is an object) has an additional deviation in that, it allows its objects extra flexibility in determining what actions they can perform even though they were not born with tje ability to perform those actions. This is a big deal and thT is why Rails (which is based on Ruby) is so successful.

  • @benzflynn
    @benzflynn Жыл бұрын

    Useful video giving an insight to both the philosophy and practice of Ruby language. No question it whets the appetite for learning more on Ruby.

  • @RaFiStudiozOfficial
    @RaFiStudiozOfficial4 жыл бұрын

    Been learning java & ruby, ruby is just fun and makes it easy to understand what programming is all about, but once you learn one language, every other language is easy to learn.

  • @duncansiror5033

    @duncansiror5033

    4 жыл бұрын

    That makes sense but it seems so many people say the opposite. They say start with C or C++. I'm doing cyber security so scripting languages like Python and Ruby are crucial. But I am interested in others like Java.

  • @Dev_4_hire

    @Dev_4_hire

    3 жыл бұрын

    @@duncansiror5033 you should definitely start with C

  • @i_youtube_
    @i_youtube_5 жыл бұрын

    Ruby is dynamic typing language while Java is static typing. You will spend most of your time as programmer in debugging and that is easier in static typing languages. So short syntax does not make the language always better, easier, or faster. Static typing languages are better for complex projects.

  • @clintonhouston1048

    @clintonhouston1048

    5 жыл бұрын

    @squ34ky2 Ruby doesn't need saving lol, just not as popular as it used to be, but there are still developers using Ruby/Rails like Stripe or Hulu for instance.

  • @shreyas5137
    @shreyas51373 жыл бұрын

    which app should we use to write codes of HTML, java, javascript etc?

  • @spacesauce1012
    @spacesauce10125 жыл бұрын

    Hey so I’m learning python currently but I want to learn ruby as well, would it be best if I first get great at python and then learn ruby? Or would it be better if I learn them both at the same time?

  • @spacesauce1012

    @spacesauce1012

    5 жыл бұрын

    BLYAT thank you 🙏

  • @soufianta8374
    @soufianta83743 жыл бұрын

    Hi, is ruby still worth it to learn in 2021? I love ruby but what about execution speed? It seems that ruby is much slower than js for example (another interpreted language), so no need to compare it to "compiled" (java) stuff (much slower imo)...

  • @somacruz8272

    @somacruz8272

    Жыл бұрын

    what conclusion did you come to?

  • @solutioni3394
    @solutioni33943 жыл бұрын

    uh I'm just learning Ruby but I have learned quite a bit about java and they are both OO so either way you still have to make a ton of classes when you make big projects. Again I'm new to programming but still...

  • @soomaabdullah16
    @soomaabdullah165 жыл бұрын

    His pitch of voice and way of saying words and the rhythm of his sentences just kills my boardum from studying and makes me more and more interested Thank you..

  • @v.solutions2199
    @v.solutions21996 жыл бұрын

    You should learn Go. And ruby too 🤗

  • @skillfulactor09

    @skillfulactor09

    6 жыл бұрын

    Daddy FatStacks why learn Go

  • @v.solutions2199

    @v.solutions2199

    6 жыл бұрын

    skillfulactor09 well, I like Go for backend development, it’s compiled, and it makes use of multiple cores. Plus it was easy enough to learn. Doesn’t hurt that Go developers are well paid developers either.

  • @skillfulactor09

    @skillfulactor09

    6 жыл бұрын

    Daddy FatStacks oh nice where did you learn Go from if I may ask from team treehouse udemy or docs etc

  • @Guard-Of-Zion

    @Guard-Of-Zion

    6 жыл бұрын

    Daddy go is bs

  • @v.solutions2199

    @v.solutions2199

    6 жыл бұрын

    skillfulactor09 both treehouse and two books introducing go by Caleb Doxsey and Sams teach yourself Go in 24 hours

  • @Andybaby
    @Andybaby5 жыл бұрын

    Surely 'ease of debugging' is more important than 'number of keystrokes'?

  • @FinnTG
    @FinnTG4 жыл бұрын

    Laugh in Python: Print "Hello, World!"

  • @TheInimicus
    @TheInimicus5 жыл бұрын

    "The most library is Ruby on Rails (which has code similar to the one in Java), but for this demonstration we'll install sinatra (to make my point about simplicty valid)" :D

  • @lgandroid1387

    @lgandroid1387

    4 жыл бұрын

    You don't know what you saying

  • @MrAer85
    @MrAer855 жыл бұрын

    Sounds like Data (Brent Spiner).

  • @jpm8288
    @jpm82884 жыл бұрын

    Ruby is great, if you can set it up.

  • @greatscott8680
    @greatscott86804 жыл бұрын

    Java programs run really fast??? In what universe?

  • @Alebarrel
    @Alebarrel5 жыл бұрын

    Maybe Crystal in addition?

  • @MrWhoztheBoss
    @MrWhoztheBoss6 жыл бұрын

    Unitll python is out their nothing better that it 😘

  • @coolerking7427
    @coolerking74276 жыл бұрын

    All languages have there place.

  • @TheInimicus
    @TheInimicus5 жыл бұрын

    "gem comes installed automatically, so you can save time". Yea, you can save a few minutes for installing the package manager. This is basically 0 compered to real development.

  • @peppepinz2886
    @peppepinz28864 жыл бұрын

    Is ruby a good choice to find a job ?

  • @goodperson7427
    @goodperson74273 жыл бұрын

    Ruby is a lot similar to python

  • @avik999
    @avik9996 жыл бұрын

    What about python? It also have those advantages, then why ruby over python?

  • @snoooters

    @snoooters

    6 жыл бұрын

    The argument I always hear is just that python has more libraries better suited for data science. I'm sure Ruby has its equivalent gems.... I prefer ruby because I just like the syntax better, plain and simple. Another reason is that python is installed on the OS by default on many *nix distros. Ruby is installed on some linux distros, but not all.

  • @Qew77

    @Qew77

    4 жыл бұрын

    ruby is simplier in syntax

  • @ayushmanpraxri7063
    @ayushmanpraxri70636 жыл бұрын

    I'll choose c++ over ruby

  • @KangarooDude69

    @KangarooDude69

    4 жыл бұрын

    Ok Boomer

  • @majedhk5460
    @majedhk54605 жыл бұрын

    *Should i learn Ruby or Python ?*

  • @RaFiStudiozOfficial

    @RaFiStudiozOfficial

    4 жыл бұрын

    majed HK any of both are a good option to get started, i was introduced to ruby and have been having a great time

  • @icterinetech899
    @icterinetech8995 жыл бұрын

    What about golo

  • @jjsiegal1
    @jjsiegal13 жыл бұрын

    You haven't told us 'WHY we should learn Rails???' Wasn't that the Tag LIne ???

  • @kerrytylenda4662
    @kerrytylenda46625 жыл бұрын

    yay

  • @yuvrajchhugani4338
    @yuvrajchhugani43385 жыл бұрын

    To prove that any programming language is good or easy the compare it to java which means java is the benchmark

  • @sonicbroom8522

    @sonicbroom8522

    2 жыл бұрын

    Java is absolute garbage tier. The benchmark is an actually useful and fast language like C/C++. Java is a complete joke and a mess

  • @kellycatbagan2995
    @kellycatbagan29955 жыл бұрын

    tf is up with the creepy, deafending background music?

  • @captainbodyshot2839
    @captainbodyshot28394 жыл бұрын

    2:10 Java compiler most certainly does not make finished programs run fast

  • @pushkarthakur2942
    @pushkarthakur29426 жыл бұрын

    Is there any book for Ruby...?

  • @alessandroporfirio1910

    @alessandroporfirio1910

    6 жыл бұрын

    Pushkar Thakur "The Ruby Programming Language: Everything You Need to Know" by Flanagan and Matsumoto. Flanagan is a well known JavaScript author. Matsumoto is Ruby's creator.

  • @mcmiloy3322

    @mcmiloy3322

    6 жыл бұрын

    "The Well Grounded Rubyist" is a good one.

  • @pushkarthakur2942

    @pushkarthakur2942

    6 жыл бұрын

    Thanks

  • @ThumbIKR
    @ThumbIKR6 жыл бұрын

    Very good ruby tutorial for fresher like me... :)

  • @TheInimicus
    @TheInimicus5 жыл бұрын

    Printing text to standard output (System.out, puts) is extremely rare task.

  • @SubterraneanChick
    @SubterraneanChick6 жыл бұрын

    It’s wayyyy too easy to pick on Java. Ya know? AND the Hello World routine is dead. You’re pretty much telling newcomers to judge a book by its cover. Pick a Lang based on what you look to achieve. There are so many factors that come into play once you actually research and NOT LISTEN TO THOSE WHO TRY TO CONVINCE YOU THAT ONE LANG IS BETTER THAN ANOTHER. Put in the work and define what you want out of a language. The beauty is that there are lots of options so you will find what suits YOUR NEEDS better. Ruby and Rails are both fading fast. It was a hipster Lang of sorts. Everyone ran to it because they saw the crowd headed that way. Nothing takes the place of hard work and research folks.

  • @pitust
    @pitust5 жыл бұрын

    nodejs vs ruby fast : slow npm : rubygems JIT : interpreted

  • @victorhendriks836
    @victorhendriks8364 жыл бұрын

    Why nobody tells this in my country

  • @zayanalrashdr3948
    @zayanalrashdr39484 жыл бұрын

    Java did broken my head latrly But overall ruby haviy on memory And Java is the opposite but with very much much codes

  • @doctorbeans9274

    @doctorbeans9274

    4 жыл бұрын

    Did you have a stroke?

  • @kylemacarthur9863

    @kylemacarthur9863

    3 жыл бұрын

    Whi Ben lk that t he?

  • @tartarus1322
    @tartarus13224 жыл бұрын

    You're purposefully overcomplicating and construing java as more complicated than it is and underplaying ruby.

  • @amrojjeh

    @amrojjeh

    4 жыл бұрын

    Yea, you actually don't need to compile the java program. You can just run the java program from the JDK and it compiles the code automatically.

  • @sonicbroom8522

    @sonicbroom8522

    2 жыл бұрын

    Ok then. Show me a 1 line Hello World in Java

  • @richardschofield2201

    @richardschofield2201

    2 жыл бұрын

    @@sonicbroom8522 I don't use Java but I do use C# which is very similar. Hello world in one line. Easy. Creat a new console application, then write: Console.writeline("hello world"); Yes theres lines for namespace, class and your entry method etc, but you don't write them. Visual studio does it all for you. In fact all I need to write is "CW" then hit tab and it writes the following automatically. Console.writeline(); Then to run it just hit F5. I'm pretty sure in C# it's less key hits than with ruby. Counting number of lines of code is a bit irrelevant.

  • @moayadmyro2091
    @moayadmyro20913 жыл бұрын

    You are wrong in java when they use packge this for performance in ruby all command in one pack where in java you have to be more professional to call what exactly what you want

  • @mariobroselli3642
    @mariobroselli36422 ай бұрын

    Most popular!?

  • @pavelh.3318
    @pavelh.33184 жыл бұрын

    Why dont you compare ruby to python

  • @sollyprogrammer3750
    @sollyprogrammer37504 жыл бұрын

    I love Ruby cause it's syntax is so cool but i bet Java is faster than Ruby with BenchMarking. C,C++, JavaScript, Java, Lua and Crystal programming languages are the only fastest programming language don't compare programming languages by hello world. I love Ruby because it's syntax is readable, like english. Ruby on Rails is the web killer app. #UNLEARN_TO_LEARN_RUBY_AND_RUBY_ON_RAILS

  • @segfault-
    @segfault-4 жыл бұрын

    simple != good

  • @Qew77

    @Qew77

    4 жыл бұрын

    it is though

  • @user-es4vu9sf9l

    @user-es4vu9sf9l

    4 жыл бұрын

    simple == good

  • @rahmanatiqur2332
    @rahmanatiqur23326 жыл бұрын

    I know java really well and ruby I think java is better than ruby because java is more flexible if you learn java you can make android apps, web apps and GUI but if you learn ruby you can make web apps and maybe GUI. One more thing gmail is powered by java so is the teamtreehouse website

  • @clintonhouston1048

    @clintonhouston1048

    5 жыл бұрын

    You can also make android apps with ruby as well using xamarin platform and you can also do machine learning with ruby

  • @RAF4Y
    @RAF4Y4 жыл бұрын

    comparison is all wrong in my opinion. java has a different league (actually its own). should have compared with php or python

  • @MrJohn-wy2hn
    @MrJohn-wy2hn6 жыл бұрын

    Is Ruby still a thing? Ruby seems to be dead

  • @snoooters

    @snoooters

    6 жыл бұрын

    I mean I don't think Ruby is dead if TreeHouse put in all the time and effort into making this video.

  • @amitagarwal2638
    @amitagarwal26383 жыл бұрын

    Lol python is more easy then this 🤣 give a valid reason to use ruby. What ruby can do that python or java or Js can't?

  • @vatsalaykhobragade
    @vatsalaykhobragade5 жыл бұрын

    python ❤

  • @LesterFD
    @LesterFD2 жыл бұрын

    you cannot compare a dynamically typed language to a strictly typed language on its amount of code lol. especially java that has tons of boiler plate code is a bad example compared to every language

  • @letscode5367
    @letscode53675 жыл бұрын

    Why should you learn python

  • @hanes2
    @hanes26 жыл бұрын

    Just go with python

  • @nayan7207
    @nayan72076 жыл бұрын

    I will choose python over ruby,,,,lol,,ruby is long dead

  • @clintonhouston1048

    @clintonhouston1048

    5 жыл бұрын

    No it's not stupid, tell that to Hulu, Airbnb, Groupon, Shopify, or even Stripe among others like Twitter.

  • @valizeth4073

    @valizeth4073

    4 жыл бұрын

    @@clintonhouston1048 Compared to a language like C that 99% of all computer chips in the world run, it was never alive.

  • @ajayananddwivedi7154
    @ajayananddwivedi71544 жыл бұрын

    Rather use python

  • @ajf
    @ajf6 жыл бұрын

    Ruby == Python

  • @maz4962

    @maz4962

    6 жыл бұрын

    No, LOL.

  • @luiscortes6963

    @luiscortes6963

    6 жыл бұрын

    false

  • @MrJohn-wy2hn

    @MrJohn-wy2hn

    6 жыл бұрын

    +Maz is that Takagi?

  • @maz4962

    @maz4962

    6 жыл бұрын

    Yep.

  • @ItisLegit

    @ItisLegit

    5 жыл бұрын

    In terms of a pure scripting language, he's mostly right, but in terms of community, Ruby is stuck on Rails while Python is expanding to Data Science and Machine Learning.

  • @govindrajput6454
    @govindrajput64546 жыл бұрын

    But Ruby is dead for companies

  • @govindrajput6454

    @govindrajput6454

    6 жыл бұрын

    Yeah but another companies don't need ruby

  • @randerins

    @randerins

    6 жыл бұрын

    LOL, that's not what job websites say. There's still great demand for Ruby at least in the US.

  • @govindrajput6454

    @govindrajput6454

    6 жыл бұрын

    Rony B. But in my country India there is no scope of ruby

  • @SubterraneanChick

    @SubterraneanChick

    6 жыл бұрын

    There is no huge demand. Not on the East coast. Rails is dead and gone. Ruby is on it’s last leg. But hopefully it will pick up for those who rely on it.

  • @genjimccorkle5518
    @genjimccorkle55182 жыл бұрын

    Hope to god I never program in Java.

  • @mariuscodori193
    @mariuscodori1934 жыл бұрын

    Not a fair comparison... Stopped watching right there