[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]

LEARN RUBY NOW

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: 246
Thread images: 31

File: ruby.png (89KB, 959x833px) Image search: [Google]
ruby.png
89KB, 959x833px
YOU HAVE 17 SECONDS TO EXPLAIN WHY YOU DON'T KNOW RUBY
>GO
>>
chink babby version of python
>>
File: ruby.jpg (62KB, 691x825px) Image search: [Google]
ruby.jpg
62KB, 691x825px
I do, I just want to find some small projects I can do with Ruby.
>>
>>60411218
I don't have to know it. I can program, using Ruby isn't hard, I just need to look up syntax while using it for something.
>>
You answered yourself
>go
Lang is more fun
>>
>>60411218
I already know Crystal. Change a few keywords and fuck some dynamic stuff in there and it's the same.

>>60411234
More like unfucked version of Python.
>>
I tried installing it but I kept getting an early EOF error when I was downloading it
>>
>>60411218
dynamic languages are cancer
>>
>>60411218
You've answered your own question, OP.
>>
File: mycomrade.png (88KB, 190x204px) Image search: [Google]
mycomrade.png
88KB, 190x204px
>>60411259
>>
>>60411218
because it's already disappearing.

rails is junky hacks, and too many "cloud" type services like Google Engine are replacing running your own shitty server.

webassembly and whatever javascript abstraction of the day are the future of any web programming, especially webassembly. Push a binary and it's a client side server using a remote API which can run on anything Rails isn't needed.
>>
>>60411218
I don't have the required IQ.
>>
>>60412546

There are other uses for Ruby than Rails. Not all of us are web developers.
>>
I do, Rails developer by trade.

Slow, but attractive language.
C++ is for the shit I do outside of work, when you need speed.
>>
File: wizardpeep.jpg (24KB, 400x397px) Image search: [Google]
wizardpeep.jpg
24KB, 400x397px
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("meme-arrow.png");
}

I love ruby and so do all of my boyfriends
>>
>>60411218

I don't know any programming languages
>>
Smaller amount of external and even standard libraries than Python. Fuck reinventing the wheel.
>>
>>60412674
why anon? find one you like, get books on it & begin. nothing to lose
>>
>>60412836

I tried scratch but it started to get too hard.
>>
Because who the fuck even needs it?
>>
I'm not 12 anymore.
>>
>>60411218
cuz python.....
>>
Because I learned Python and Go instead.
>>
useful things I can do with it?
aren't jobs for it dead?
>>
>>60412546
wtf is the difference between Google App Engine and Azure?
>>
>>60413415
Why even fuck with Go?
>>
Use it regularly at work for system scripts and with Puppet. Also django fucking sucks so if I need something more than flask or Sinatra, say for a full blown crud app, I use Rails and like it a lot.
>>
>>60411218
Because I do IT security and I don't see the need to know a programming language
>>
>>60413750
>security
>doesn't know programming

I dont think we hire hardly any security staff without programming knowledge where I work. We use a lot of open source and in house tools and programming is required for all of this unless you're just some kind of malware babysitter.

Anyway my point is you should learn, combing security skills with programming knowledge could lead you to a $200k job where I work.
>>
'Cause PHP.
>>
it's alright
>>60411234
this is true though
>>
I already know Ruby but I don't see any good use for it. Python and Perl are better everywhere.
>>
>>60411218
because my job doesn't require it and I have neither the time nor the inclination to learn it
>>
>>60413902
Dunno where the hell you live but in my country a 200k job is simply nonexistent, no matter how skilled you are.
>>
>>60414045
The land of burger $$$ my friend
>>
>>60411238
Try a web startup.
>>
>>60411326
What does Ruby so right that Python does wrong?
>>
>>60411218
I WANT RUBY TO TIE ME UP AND TAKE OFF HER SOCKS AND SHOES AND SMOTHER ME WITH HER DELICIOUS STINKY SWEATY FEET
>>
>>60413717
Why does Django suck?
>>
>>60415005
I found some ruby books on lainch earlier, I'm reading them now
>>
>>60415303
lainch? explain for a newfag please
>>
>>60412865
this is bait
>>
>>60415334
lainchan dot org
Check the lambda board, there is a programming books thread that has books for ruby.
>>
>>60411218
because I went to college instead of KarlyKode bootcamp.
>>
>>60415538
thanks newfriend
>>
File: ror.png (305KB, 1432x652px) Image search: [Google]
ror.png
305KB, 1432x652px
>>60411218
>>
>>60415082
patrician tier
>>
>>60411218
Trivia: A ruby is just a sapphire but red.
>>
>>60412124
For actual software dev they definitely are.

>>60412588
this, desu

>>60415050
Language design, implementations and statically typed counterpart.
>>
>>60411218
Recommend me a good resourse for getting good (preferably a book).
>>
File: ruby_lsw.png (121KB, 1920x1080px) Image search: [Google]
ruby_lsw.png
121KB, 1920x1080px
>>60411218
But I do OP (for real shit), is so confy.
>>
>>60411218
None of the projects I'm working on require it, the library ecosystem for anything except web stuff is underwhelming, and it's not interesting enough to learn just for its own sake.
>>
Ruby is great. It's comfy to write, you can do lots of nice things involving metaprogramming in a non-retarded way (i.e. not by calling eval), it's got a nice syntax for lambdas which makes them very natural, it lets you write programs creatively, it has a very high level of introspection. I could go on. I think it's one of the few languages that really make use of how they have a dynamic runtime, along with the Lisps (and Smalltalk, which is supposedly even better).
The Python shitlords really have no idea what they're missing. Do yourself a favour and go read Metaprogramming Ruby.
>>
>>60415853
>adria
that's already where I have to stop commenting
>>
>>60411218
I only code in asm, C/C++, C# and Java
I'm an oldfag
>>
>>60415674
>Language design
A nothingpost. Be particular or go home. And I hope you don't mean Nim. It's a buggy hobbyist mess next to the much younger Crystal.
>>
File: 1479658050305.png (180KB, 565x600px) Image search: [Google]
1479658050305.png
180KB, 565x600px
>>60411218
>tfw ruby and C are the only languages you know
>>
>>60415082
fuck off footfag
>>
>>60415981
>using "shitlord" as an insult
I've been baited.
>>
>>60416111
Is it not used as an insult anymore? I've been away from this board for a while.
>>
>>60416065
Learn Elixir.
>>
>>60416126
The stereotype is that only SJWs use it.
>>
File: 03,200_.jpg (30KB, 399x499px) Image search: [Google]
03,200_.jpg
30KB, 399x499px
>>60415050
>What does Ruby so right that Python does wrong?
Ruby was designed from the ground up to be a consistent language using smalltalk style object system. Python started out as a tiny language that just got features added to it that were suggested by users to Guido. You can learn all of Ruby by reading pic related and become an expert because all the parts of the language fit together in the same object model. You will always know what is in scope, what parts of the language can communicate, know what parts of your code are hidden from each other. Even the module system inherits from the universal object and is an object. In Python you always are searching for the 'pythonic' way of doing something because there is no unified design that you can count on.

Let me repeat, pic related is the best book to learn Ruby, it will give you a very deep understanding of how all parts of Ruby work and fit together. Its the ONLY book you need to understand ALL of Ruby. There are not many languages where you can start out from the get go as an expert.

>>60412590
>Slow, but attractive language.
I cant believe people keep repeating this meme. Ruby started out as a language designed and implemented entirely by one person (Matz) using yacc. Since then there is a design team dedicated to working on the Ruby compiler and Ruby is now a faster language than Python.
>>
File: EloquentRuby.png (582KB, 679x877px) Image search: [Google]
EloquentRuby.png
582KB, 679x877px
>>60416305

Nice pick, awesome book and is true, is prolly the only Ruby book he needs.

Now if he wants to reinforce it, he can read the pic related book.
>>
>>60416305
Ruby's speed is average for a dynamic language, and it's certainly going to look very slow to somebody who writes C++. I think it makes up for it with its slowness with everything you mentioned though.
I really think Python ought to be a compiled language, it makes very little use of its dynamic features, and the fact that it's slo slow just shows how incompetent Guido is as a language designer and implementor.
>>
>>60416305
>Ruby is now a faster language than Python.
Ruby is now a faster language than CPython for SOME applications.
>>
Is crystal gud? Does it have future?
>>
>>60416305
Something weird about this post. It praises Ruby for having "the same object model" in all parts of it - that everything, even the module system inherets from and is a subclass of a universal object. It lords this design philosophy over python. Except in python, everything is also a subclass of a base object class too...
>>
>>60416938
>Except in python, everything is also a subclass of a base object class too...
yeah, I dont think so. why dont you tell me what object all the underscorre functions inherit from or why you have to pass an explicit self parameter to object methods so you can use local scope, Im not really seeing the unified object at work there
>>
>>60411218
I have learned a little so far. I like it a lot. It's very relaxing to write in. Thought I want to learn about writing Ruby on Android with Ruboto. I can't find any good learning materials.
This summer I am going to write a Tox bot in Ruby.
>>
what's so great about ruby, why not haskell or something
>>
>>60411218
I don't write CRUD apps
Therefore I don't need Rails
Therefore I don't need Ruby
>>
>>60411218
I've used Ruby several times, and even have a couple of projects on it, but seriously I've forget almost of it. I need to check a lot of references whenever I want to do something.
It's a pretty nice language desu.
>>
File: 1458102903103.jpg (7KB, 379x451px) Image search: [Google]
1458102903103.jpg
7KB, 379x451px
>>60416305
This desu-ne
>>
>>60411218
Get the fuck out if you use anything other than C.
>>
>>60417219
get the fuck out if you use anything other than assembly
>>
File: perl.gif (44KB, 643x326px) Image search: [Google]
perl.gif
44KB, 643x326px
*cough* I'm a man, not a kid OP
>>
>>60417086
>>why dont you tell me what object all the underscorre functions inherit from
They inheret from "object", like everything else. You can try calling isinstance(instanceName, object) on the underscore methods in a class instance if you don't believe me.
>>
>>60417487
ok, I'm actually learning something here since Ive never learned Python (nor wanted to). But bundling all underscore methods on the universal object seems like way too much functionality on something that is supposed to be generic and only provide the most basic functionality for an object to exist.
>>
>>60417761
You're mixing up a couple different questions here.

>1: What is the type / supertype of underscore methods?
All methods, including those whose names happen to include some underscores, are instances of either the `function` type or the `boundmethod`. Both are subclasses of object.

>2: From what class are the underscore methods inherited?
They're inherited in the usual way. The `object` type, from which all other types inherit, defines only the most essential ones, such as `__instancecheck__` (which backs `isinstance`) and `__hash__`.
>>
>>60417305
Fucking hell mate, do yourself a favour and learn Ruby. You lot are the COBOL programmers of the 2000s.

I learnt Ruby for my job, OP. We were a rails shop, but now I'm going travelling and writing web shit in Sinatra in the meantime. It's absolutely the most beautiful language I've written. Makes Python look like a big pile of shit.
>>
i only know BASIC
>>
I strongly recommend using an auto-indent plugin in whatever editor you use with Ruby. I use "Beautify Ruby" in Sublime. You have to have the rubocop gem installed for it to work. You can configure it to run automatically every time you save the file. And remember to set your editor to 2 space indent and have tabs to spaces on.
>>
>>60418585
So you're used to typing "end". That'll come in handy
>>
>>60411218
its fucking slow as balls and has less support than python and eats ass to write because it's so far up its own ass about objects.
>>
>>60418680
>indents below 8 spaces

literally unreadable
>>
File: angry_cat.png (32KB, 128x122px) Image search: [Google]
angry_cat.png
32KB, 128x122px
>>60418680
>uses Sublime
Cuck.

Just use a real fucking language that doesn't allocate MB's to perform basic functions.

Ruby programmers are the next victims of workplace automation.
>>
>>60417305
Using a language with a camel mascot whose name isn't pronounced like camel.
>>
>>60411218
ruby is obsoleted by Elixir and crystal
>>
>>60415538
>lainchan dot org
any other good chans that I should know about?
>>
to be honest unicode support in ruby still sucks.
>>
File: 471.jpg (84KB, 682x600px) Image search: [Google]
471.jpg
84KB, 682x600px
>>60418981
Anon gives garbage advice.
You don't even know what your program is doing with Elixir. You're writing in a HLL down to an interpreted language.
And Crystal is a meme.
>>
>>60411218
Because karly hates me ;_;
>>
>>60419069
https://crystal-lang.org/2017/02/24/state-of-crystal-at-0.21.html

Crystal doesn't even have a stable threading model.
>>
>>60419037
https://8ch
.net/prog/catalog.html

https://boards
.420chan.org/prog/
>>
>>60411218
Because Racket is better in every way.
>>
>>60419178
>8ch
haha no
>>
>>60411234
Rails > Django
>>
>>60416062
>A nothingpost.
It's a if-you-have-to-ask-then-you-can't-judge thing.
However, as handy example take variable scoping: Ruby has overall sane block scoping. The exception are for-loops but the flaw is that for-loops exist in the first place, as existing alternatives are better anyway. That's a non-issue, since no Ruby programmer uses for-loops.
Python on the other hand has retarded pre-ES6-JS-like variable scoping where only functions and classes instead of every block.
Not only does that suck in a number of cases, it also reveals the design process:
>everything is global in my toy language, bitches
>wait, you need scope in functions or those toy recursions that can't have TCO will suck
>wait you need scope in classes to hold state

>It's a buggy hobbyist mess next to the much younger Crystal.
Nim is what I was referring to when I said, Python has the worse statically typed counterpart. And you are right, of course, Crystal is the better language.
>>
>>60411218
Because I can write easier-to-maintain more-performant rest apis and mvc apps with java and any of a dozen frameworks.

Or, if I'm in the mood to pay the windows tax in order to use a better language, ASP.NET
>>
>>60411218
Sorry but I don't want to start off with a huge technological debt. Dependence on ruby has killed far too many start ups for me to ever want to use it.
>>
>>60416657
>Ruby is now a faster language than CPython for SOME applications.
The hard truth is that unlike Python, Ruby actually has other implementations that matter. JIT compilers among them that beat PyPy where it matters. And it will only get better with JRuby9000.
>>
>>60416837
yes
i hope so
however, it appears they currently don't have the manpower to implement the standard library for windows.
>>
>>60416305
Being a couple of percentage points faster than python still means that it is slow. Only desperate Juicero-tier start ups use it for anything important.
>>
>>60419697
it's exactly like 4chenks, desu
>>
>>60420295
>"where it matters"
be specific
>>
>>60415172
Django was made by some folks at a newspaper company to be a cms and I'm not a fan of how it works. I much prefer Rails and I feel Rails is a lot more productive as in development time than django
>>
>>60411218
Because I already know R, python, c, c++. I don't think I will gain anything from learning ruby.
>>
>>60420401
>I don't think I will gain anything from learning ruby.

Employment maybe? Those other languages are all NEET fizzbuzzer-tier (with the exception of C of course.)
>>
>>60420425
I would rather learn matlab.
>>
>>60420379
be not a faggot, search for yourself
spoiler:                                                                                                                                                                                                                             everything that isn't a trivial numeric benchmark
>>
>>60420628
How about you provide evidence to back up your own assertions.
>>
Because Go.
>>
>>60421042
Go! is superior.
>>
>>60419069
>You're writing in a HLL down to an interpreted language.

no dickhead, elixir doesn't transpile down to erlang, it's compiled directly into beam vm bytecode, like scala / clojure for JVM.

also ruby is btfo by elixir, watch this: https://www.youtube.com/watch?v=xoNRtWl4fZU
>>
>>GO
thanks for answering for me
enjoy your dead language
>>
>>60419697
wizardchan is more your speed.
>>
I wa thinking about learning Python but Ruby sounds intresting
>>
>>60411218
It's terrible.
If it was good, Twitter would still be using it.
>>
But I do.

>>60411234
Ruby is objective better than Python in every way except data researchers decided to write their janky broken ass libraries for Python instead
>>
http://harmful.cat-v.org/software/ruby/
>>
>>60421548
Ruby and Python were never designed or even intended to be used for web-scale applications, but dipshit webdevs decided to force them to be (just like they used interpreter hacks to make Python OOP before it was included in the design spec)

Twitter is primarily written in fucking Scala
>>
>>60421539
It's not. It's everything bad about Java and Python put into one abomination. It's also rapidly declining in popularity.
>>
File: gopherbw.png (167KB, 3861x3861px) Image search: [Google]
gopherbw.png
167KB, 3861x3861px
>>60411218
You said it yourself OP
>Go
>>
File: fucku.jpg (16KB, 300x300px) Image search: [Google]
fucku.jpg
16KB, 300x300px
>>60411218
I would rather kill myself than learn this useless shit language
>>
>>60421637
i know a bit of Java should i learn python? i just want a simple programing language with minimal typing and a good user base.
>>
>>60421753
Then you should learn ruby
>>
>>60421753
Yeah. If you know some java python should be a breeze for you. The white space shit gets annoying after a while though.
>>
File: smug45984390.png (169KB, 506x556px) Image search: [Google]
smug45984390.png
169KB, 506x556px
>>60421785
>ruby
>20 different ways to do the same thing
>autistic "end" shit makes nested loops and functions in general extremely irritating
>annoying to read despite being easy to write
>>
>>60421753

Go
>>
File: RUM_coverfront.png (170KB, 400x529px) Image search: [Google]
RUM_coverfront.png
170KB, 400x529px
>>60417219
What if I do both? What if I'm the kind of guy who writes ruby, and then rewrites the slowest parts of what he's doing in C as native extensions?
>>
Because C++ is the best language. rubyfags get out.
>>
>>60422149
Premature optimization is the mother of all time sinks. If you're at this level putting this shit into production you need a different language.
>>
File: IMG_6433.jpg (82KB, 846x1200px) Image search: [Google]
IMG_6433.jpg
82KB, 846x1200px
>>60422175
>thinks c++ is the best tool regardless of context
>>
File: crying asian cunt453.jpg (42KB, 450x429px) Image search: [Google]
crying asian cunt453.jpg
42KB, 450x429px
>>60411218
>>60411218
>tfw can't get jobs for rails anymore

Why doesn't anyone want to use it now?
>>
>>60422242
Get used to it anon, rails jobs were 7-8 years ago. You need to reinvent yourself every other cycle, time for something new.
>>
>>60421854
>20 different ways to do the same thing
It's funny that this is the truth, yet your average rube will slag python for "having too many ways of doing things"
>>
>>60422240
>>60422175
I would probably argue that C++ is the worst tool, regardless of context.
>>
>>60422296
I don't really care if there are 100 different ways of doing something. If you can't write readable code you're worthless.
>>
>>60421854
>20 different ways to do the same thing
Ruby and Python both inherited Perl's MTOWTDI philosophy, which is part of why they're borderline fucking indecipherable after being written.
>>
I have no need when I have:
>Python
>Matlab
>C++
>Fortran
>>
>>60422205
>Premature
What makes you think it's premature? Lots of the gems people use are C under the hood - rails itself comes with a bunch of them.

And think about it this way: if 95% of the work that the devs somewhere have done is in Ruby on Rails, and it runs at an acceptable speed for those things, and all the devs who work at the company are comfortable with rails, all the future development that's been planned at the company is rails, and the only things people would really know how to hire for is rails, then is fixing that last 5% of stuff with C really premature? Or would you recommend forcing all the developers at the company to switch to a language that at least some of them won't know, rewrite all of the company's code in that language and just put all new development on hold, with no guarantee that the new language won't have a different set of weird parts that are painful to program or are slow?
>>
>>60422312
C++ is to C as Lung Cancer is to Lung
>>
>>60422382
i concede, if you have the talent on hand to maintain it.
>>
post Ruby
def parse_date(str)
# "2016-10-09" -> Time: 2016-10-09 00:00:00
return Time.new(*str.split(/\D/))
end
>>
>>60422312
>>60422240
C++ is the best language regardless of context and if you think otherwise you are either a computer illiterate idiot with no life or a 1337 HAXKOR DOOD WHO ONLY USES RUBY GET ON MY LEVEL CASUALS, either way you can go ahead and fuck yourself.
>>
File: 1492957677514~01.png (20KB, 327x359px) Image search: [Google]
1492957677514~01.png
20KB, 327x359px
Explain this shit.
>>
>>60422504
Sure thing brah, I have a job paying me to write systems automations in Ruby, not C++. Do you have a job paying you to write c++. That's great if you do, but if it you're just another sperg neet who knows nothing about the professional world..
>>
>>60411218
>2017
>unironically using "technological debt: the programming language"
>>
>>60422543
How dare you call me a sperg neet, this triggers me, wow, just wow, you can't insult people on the nets. Who do you think you are.
>>
>>60415356

desu scratch was way harder to deal with than any actual language I've learned, once you got to a certain level of complexity

visual programming environments are awful
>>
Is it just me or has rails gotten slower? I could've sworn that rails server started in under a second around 2010 but these days it seems to take 5 - 10 seconds on my machine...
>>
>>60423750
modern Rails is fat and ugly
>>
>>60418513
>You lot are the COBOL programmers of the 2000s.
You say that like it's a bad thing. Seen how much those motherfuckers charge to keep your bank running?
>>
>>60420248
no windows support make Crystal still look like a toy
>>
>>60421548
If it was terrible twitter would not succeed in the first place.
>>
>>60424631
while that's true, leaky semantics thanks to the shitty to-C compiler make Nim look like a toy
>>
Only languages worth using are C, C++, C#, Scala, Java, Haskell, Rust and python. Between those literally every use case is filled.
>>
>>60422541
Just don't abuse unicode you faggot.
>>
>>60426408
>Haskell
>worth using
>>
>>60426702
It is if you're writing parsers.
>>
>>60426907
Why would you use that shit special snowflake language when other, better options exist?
>>
>>60425914
Nim's already a toy, just look at its name: Nimrod!
>>
>>60411218
I am heterosexual.
>>
>>60426702
Can you write an interrupt in Haskell?
>>
>>60423750
Shit man I was using rails back in 2006, it's a hell of a lot faster these days. Passenger didn't exist back then and the dev web server was slow as hell web brick.

>that feel when Rails is 43 years old
>that's feel when you're 97 years old
>that feel when you wasted your life shit posting on /g/
>>
>>60426702
this
>>60427093
If I'd look at names, I'd be done with computers and programming in particular.
>>
>>60411218
It is not really interesting to learn since Scala took over every niche Ruby had.

From web application frameworks over message queues to cloud frameworks, all the good stuff is now Scala. Not Ruby.
>>
>>60411234
Worse than that. Its being pushed by universities because of its bullship object oriented software engineering political correctness. If you love white people use python
>>
C and C++ suffice and are better for their use cases
>>
>>60416065
Me too man, I'm thinking about learning Haskell, seems funny
>>
>>60427705
>a compiled language is better than a scripting language for use cases where you would use a scripting language

All of you language monotheisists can't into the fact that different tools are used for different needs.
>>
File: 1485992234558.jpg (17KB, 480x336px) Image search: [Google]
1485992234558.jpg
17KB, 480x336px
>>60427632
>>
>>60427250
Yeah I used to use mongrel and shit which was faster. But checking it out recently it seems startup time is much slower for some reason (though faster in a vm) - could just be my system though of course.
>>
>>60411218
Why do Ruby developers wear glasses? It's because they can't C #!
>>
File: 1408901761724.png (212KB, 341x444px) Image search: [Google]
1408901761724.png
212KB, 341x444px
>>60428662
>>
>>60428138
this
Scala always had this feel about not being about finishing stuff and quality compilers, but here http://soc.github.io/six-years-of-scala-development/departure.html is a blog post form some scala member that confirms it.
BTW: There was something similar for Clojure, which makes it a meme lang as well.
>>
>>60411218
I don't know any programing languages and whenever i ask someone on /g/ for a place to start they usually tell me to leave /g/.
>>
>>60429106
Then why didn't you listen?
>>
>>60429118
It doesn't work.
It doesn't actually give me any place to start learning how to code.
>>
>>60411218
Ruby is dieing, javascript has cornered the market on web apps.
>>
>>60427672
Python: the official programming language of the alt-right.
>>
>>60411218
I have tried looking at ruby coda and I can never remotely tell what it is doing. I know a bunch of different languages, with a bunch of different concepts and I'm not interested in learning another scripting language that can't even manage to be intuitive.
>>
>>60418922
This, only cucks pay for an ide, I use text mate.
>>
>>60411218
YOU HAVE 17 SECONDS TO EXPLAIN WHAT YOU CAN DO WITH RUBY THAT YOU CAN'T DO BETTER WITH A DIFFERENT LANGUAGE
>>
>>60411218
I didn't want to learn it at first, but then I learned it was made in Japan.
>>
>>60429150
learn Java and get your cert, at least you'll be able to get a job
>>
I just looked through the syntax on learn ruby in y minutes and sure it does some neat things but I already know python.
>>
I've just started learning python, should I turn back and start learning Ruby now?
(First language beside from easy html and css)
>>
>>60430286
>learn python
>can't ever learn any other language properly afterwards
don't do python anon
>>
>>60411218

I have no projects to complete that require Ruby.
>>
>>60430306
What's stopping anyone from learning another language """properly"""?
>>
>>60430306
Java is similar to python though
>>
I know a Rails dev who's paid over $150k. Not bad for a "toy" language.
>>
>>60411218
Fucking bloated ass dependency hell cunt developers who cant into compiling to fewer files, hundreds of thousands files good lord my filesystem. Fuck ruby and ruby developers.
>>
File: 1477858681501.jpg (8KB, 228x221px) Image search: [Google]
1477858681501.jpg
8KB, 228x221px
>>60430587
wow anon :(
>>
>>60430739
I know, it's depressing how retarded some people are.
>>
>>60411259
>>60412266
>>60412499
>>go
>Lang is more fun
If you're mentally retarded
>>
>>60430994
>I don't have basic reading comprehension
Golang is literally just C without malloc, and it's garbage collector is so fucking good it often uses even less memory than comparable C programs.
>>
>>60431012
>>60431012
>Golang is literally just C without malloc
And without arrays, you have to use their shitty slices. Not to mention all that verbose boilerplate.
>>
>>60430994
look mom I posted it again! Good job son! That's 20 good boy points. Only another 50 until another plate of tendies
>>
>>60411218
I know C++17.
>>
File: 1494710666873.jpg (25KB, 641x530px) Image search: [Google]
1494710666873.jpg
25KB, 641x530px
>>60431040
>slices
>shitty
You must ascend, son.
>>
>>60431103
>Every other language
>Wanna access the array? You know what you're doing. There you go

>Go
>You must be retarded, make a slice of the section of the array you want to access and go through there.

Literally why? Just makes things more verbose
>>
>>60431188
>literally why
Sounds like you didn't finish the tour. It's all explained in simple English.
>>
>>60431318
Well, their reason is that is "safer" which of course is a design decision to prevent invalid memory access (patronize your devs Google) and supposedly faster.
>>
>>60431188
There are many things you can do easily with slices that you can't do with static arrays. Test yourself my smallson.
>>
>>60411218
I'm an MRI tech
>>
>>60431362
>static arrays
Another reason not use Go
>>
>>60430380
>Java is similar to python though
>>
>>60431361
Fair enough, where's that nerd who keeps pointing out how Go devs aimed the language at fresh graduates who might be scared of anything too hard to use? Said nerd had a few sources on that which were interesting.

I still quite like Go though. Maybe I'm gay.
>>
>>60431471
Well, when you're Rob Pike and make statements like that in the first page's of the Go book , it doesn't set it for a good start.

Liking of disliking Go, meh, personal choices, but I honestly think that some design choices makes it horrible verbose to use. Simple things that I liked (such as the Type system) went horribly verbose when I tried to make a dynamic array to use them.
>>
>>60415617
>node.js
please dont remind me of that horrible shit. Had to do an assignment in that shit
>>
>>60411218

I really think everyone should program in Ruby for a few weeks. It's just so beautiful and comfy. A really magical language that somehow has the best parts of a dozen other languages.

Like Matz said: it's made for programmer happiness..
>>
>>60432322
Honest question, no shitposting wanted:

I've seen Ruby code and it looks pretty undistinguishable from Python. Also have read horror stories about RoR performance.
How's Ruby objectively better than Python?
>>
>people who pronounce it 'raby'

took only that for me to stay clear of it
>>
>>60432938

I like Python's way of treating functions as first class citizens and so on. But I prefer coding in Ruby, because Ruby is simpler and more complex than Python - at the same time.

You can write Ruby similar to Python - or not.

That's the beauty..

f = ['', '', 'fizz'].cycle
b = ['', '', '', '', 'buzz'].cycle

puts (1..100).zip(f,b).map{|i| (i[1]+i[2])[/.+/] || i[0]}


f = (3..100).step(3).to_a
b = (5..100).step(5).to_a

1.upto(100) do |i|
a = "#{'fizz' if f.include? i}#{'buzz' if b.include? i}"
puts a.empty? ? i : a
end


(1..100).each do |i|
puts \
i%15==0 ? "fizzbuzz" :
i%3==0 ? "fizz" :
i%5==0 ? "buzz" :
i
end
>>
>>60433980
>
puts (1..100).zip(f,b).map{|i| (i[1]+i[2])[/.+/] || i[0]}

>
  a = "#{'fizz' if f.include? i}#{'buzz' if b.include? i}"

Although I understand the code, these seem a bit unreadable as in too many calls in a single line. Seems like using pipes.
But the more power to you, I guess
>>
>>60433980

Some points of interest here:


In the first version we created iterators, not only arrays!
So the "zip" method zips our range iterator with the two other iterators and creates tuples (like: [3, "fizz", '""]).

Then we concat the "fizz" and "buzz" strings from the tuples and check if it's empty:
yes, we can simply throw a regex at a string like this:

"string 123 and so on"[/\d/]


So when we the regex doesn't find anything, it returns "nil" and the or condition evaluates it to the number.


In the second version we really create huge arrays with a few commands.

Then we make a string with inline evaluation and then it's like in the first version.


The third version is just a simple tenary operator version.
>>
>>60434047

Yes, I was trying to create a version that doesn't look like python. Not really beautiful..


But yes, "using pipes" is pretty close to it.
>>
>>60433980
this, all the methods built into arrays alone are worth it, stuff like array.sample
>>
I wish ruby had the role and support in sciences that python has.
>>
>>60411218

Because I can't find a ruby IDE :(
>>
File: 1494697137615.jpg (166KB, 1200x675px) Image search: [Google]
1494697137615.jpg
166KB, 1200x675px
>>60435928
The fuck are you smoking? All you need is your favourite text editor and an irb session.
>>
>>60435928
RubyMine? Komodo?
>>
>>60411218
Because I know Lisp.
>>
>>60436061
It would be nice if Ruby had a bunch of editors dedicated to just doing Ruby like Python. Python has SPE, Eric, DrPython, Boa Constructor, pyScripter and many more
>>
>>60436049
and a what the fuck session?
>>
File: 1482345810844.jpg (138KB, 1079x1031px) Image search: [Google]
1482345810844.jpg
138KB, 1079x1031px
>>60436352
Jesus christ just go and read the tutorial on the website. If you don't know what irb is you need to start at the beginning.
>>
>>60432938
dozen of helpful methods for you to quick prototype somethings.
>but python also has that

well not really, ruby doesn't have that 2vs3 debate, utf-8 by default, everything is just method and message passing under the hook.

meanwhile python still can't decide the best way to do string formatting so they keep delivering a new one each release.
>>
>>60430306
Python and Ruby are almost the same fucking language. One is good for everything except application development while the other is awful and should only be used for web apps.
>>
>>60432938
People like "coding" in Ruby. Just don't ask them to maintain it because they will find any excuse not to.
>>
Does it still not work/install as well on windows still? Should I learn it on linux? Never programmed before
>>
>>60437360
The only reason to use ruby is for rails. Rails is a bitch to set up on everything except macs for some reason. That's what I use.
>>
>>60435928
just use netbeans with the ruby plugin. Its pretty good.
>>
>>60411218
Im not neet
>>
>>60411259
Google made go just because they wanted to hire indian trash programmers. People who are not smart enough to get into c++
>>
>>60436988
>meanwhile python still can't decide the best way to do string formatting so they keep delivering a new one each release.
This actually made me kek

I know python well enough to know where its weak points are, so one more question would be. Does Ruby suffers from the same GIL problem as Python?
>>
>>60437589
>Does Ruby suffers from the same GIL problem as Python?
take a look at Crystal, its a Ruby implementation designed for concurrency
>>
>>60437589
ruby still has GIL, they plan to have Guild in 3.0 though.
>>
File: 1490350651663.jpg (90KB, 773x773px) Image search: [Google]
1490350651663.jpg
90KB, 773x773px
How do I into programming languages?

I was autistic enough to learn Japanese without even liking anime or manga. So I like to think I'm at least determined enough to get into programming.

I just simply don't have anywhere to start while learning Japanese was just getting some textbooks from daily japanese thread and slowly farming myself to fluency.

While programming is divided as fuck.

I'd like to use my programming skills to focus on machine learning/AI/Big Data probably something like tensorflow+python but I have absolutely no idea where to start. PLS help /g/
>>
>>60437589
Of course.
If you want OS level thread, interpreted languages or even dynamic enough languages aren't what you'd want.
>>
>>60438213
Start off learning Python, and build from there. It'll get you in the door at a pretty good variety of places.
>>
>>60438394
Is there some sort of /g/ official guide into Python or something together with steps for planning how to learn shit? Getting to start at the right place is usually the hardest part of picking up a new skill.
>>
>>60438213
try solve trivial problems like eulerproject.
>>
>>60438213
this is a Ruby thread, you might have better luck asking in the /dpt/ thread
Thread posts: 246
Thread images: 31


[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.