[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Ruby

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 26
Thread images: 4

File: 10681_968c_6.jpg (14KB, 750x422px) Image search: [Google]
10681_968c_6.jpg
14KB, 750x422px
Is Ruby a good programming language for beginners?
>>
yes yes yes yes
>>
>>59960670
No, go with python
>>
No. And I say that as somebody who learned on Ruby first.

>>59961562
Definitely not.
>>
All intro CS courses should be pure C
>>
>>59961589
I learned c++ as my first language but c seems like best language for learning to program (regardless of it being a meme language)
>>
File: tGfEZmb.png (30KB, 400x400px) Image search: [Google]
tGfEZmb.png
30KB, 400x400px
>>59961562
SNEK
>>
>>59960670
Go with JavaScript like all the cool kids.
>>
>>59961562
agreed.

ruby even as a first language is ass. python makes for a great beginner language due to it's relatively simple syntax.
>>
unless
>>
>mfw im only on /g/ because I'm taking a break from using ruby on rails to code my very own personal blog
>implying you believe me

next step is to resize an image in gimp for coderelated
ul {
margin: 0px;
padding: 0px;
list-style-image: url("arrow.png");
}

I love ruby and so do all of my boyfriends
>>
Honestly no language is good for beginners. Some are slightly more forgiving, but learning your first language will suck no matter which one you choose. Learn the language you want to use, that is the best one to learn on. After you learn the first one the rest will come easy.
>>
>>59960670
no
neither is >>59961562
Use a language that only has the basic building blocks: functions, loops, conditions
>>
Sure it is.
>>
>>59967171
>functions, loops, conditions
algol
>>
>>59960670
Ruby is the best language if youre a beginner who wants a deep understand of how a language works from the ground up and not learn syntax superficially by rote. The only book that teaches Ruby at this deep level is "The Well Grounded Rubyist", you will be a Ruby expert after reading that book.

Ruby has the most readable code of any programming language and the syntax is most intuitive. Its the most practical scripting language for general scripting tasks.
>>
Assembly x86-64. Anything else is a meme.
>>
>>59960670

Yes and no.

If you learn Ruby first, all other languages will feel clumsy and dull for you. But it will make programming very easy and give you "instant gratification".

Usually I would recommend starting with something like Java or C first and THEN learn Ruby, to see how easy programming can be.

But if you want a low entry barrier, Ruby is a good idea.

Or try something like Python or Go, they are also good starting langauges.
>>
>>59968059
>all other languages will feel clumsy and dull for you.

Horseshit.
>>
>>59968065

How so?

I've tried a lot of languages and it's super hard to find something as smooth as Ruby. Maybe Haskell, C# with LINQ, or ECMA script.

File.open("sample.txt", "w") { |f| f.puts "Hello file!"}

a, b = (1..10).partition { |i| i.odd? }

c = Array.new(5) {|i| i = rand}
c.sort
>>
>>59968139
>
{ |i| i.odd? }

>not
&:odd?


learn ruby
>>
File: rubyist.jpg (18KB, 260x325px) Image search: [Google]
rubyist.jpg
18KB, 260x325px
This
>>59965389

Ruby was my first language, because I liked it.
now I'm learning JavaScript because I really like it.

learn a language you like, if you do not know what language you like.
learn Lua.
>>
>>59960670
Started with Python. Do that first, then Ruby. Python forces you to have good syntax and it's an excellent habit to have.
>>
>>59968843

I know how to use procs and blocks, I just wanted to give a clean example.

Just like I wrote
c = Array.new(5) {|i| i = rand}
c.sort


and not
c = (0..4).map{rand}.sort


TIM TOWTDI ftw..

odd = ->(i){i%2==1}
a = [*1..10].select &odd
b = (1..10).to_a - a

p a, b



>>59968010

"The Well Grounded Rubyist" Is really a good book, I've learnt a lot from it.


>>59968888

>learn a language you like

Can't argue with quads.
>>
>>59968888
Nice quads.
>>
File: jags faaf sgaj.jpg (44KB, 606x540px) Image search: [Google]
jags faaf sgaj.jpg
44KB, 606x540px
>>59962218

>ruby even as a first language is ass. python makes for a great beginner language due to it's relatively simple syntax.

>ruby is ass
>python is great because simple syntax

What the fuck? Ruby and Python have almost identical syntax
Thread posts: 26
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.