I sit on the Ruby on Rails facebook group, and its flooded with people from India trying to learn ruby. What I find unusual is they publish tutorials when there are plenty of good sources such as Railscasts, but its like the last 10 years doesn't exist to them and they rehash tutorials.
Ruby was great before javascript frameworks. I haven't gotten around to using turbolinks but its strongly makes me question whether I should I stop using js frameworks all together and go full on into turbolinks and go back to a simpler time of rapid development.
All of sudden everything in web-development requires you to be an engineer. I think there is a large influx of Uni CS graduates running startups and the only solution in a complex solution such as React. I can use React but I can't understand from a business perceptive why you would want to quadruple your development time and create such a high bar of entry for developers.
#MakeWebDevelopmentGreatAgain #Remeber2006?Imemeber
I think it's normal. I've seen it a lot amongst people who are actively learning. It was common in the late 00s in the Ruby world, and is currently common in the JavaScript, Elixir, Rust and Go worlds. It doesn't matter if they're "rehashing" - they're writing stuff as part of the learning process, we haven't got to read it, and I can only celebrate their enthusiasm. (Plus, on some topics, it's handy to have tutorials rewritten for the latest OS and database versions, etc, anyway since things always change slightly.)
The only problem I see with this is you often have cases of the blind leading the blind, and in the case of PHP it's usually off a cliff into a sea filled with razor blades and sharks.
Ruby's got a great community and I hope it can maintain its tone and positive energy with new people joining.
One of the things Ruby needs to do is get a handle on the atrocious documentation situation. Node's community has spectacular documentation for its open source projects, and Ruby's, many being far older, actually look really sad and decrepit by comparison. This includes the Ruby core documentation which is downright terrible in terms of usability.
There's a few things at play here: it's true, to many people, the last ten years didn't exist! There are a ton of programmers who have less than ten years in the industry. It takes time to learn all that history. Another aspect is that teaching something you've just learned to others is a great way to solidify your knowledge of that thing. You also have https://xkcd.com/1053/
Exactly this. It is still faster to build websites with Rails, mainly thanks to the maturity of the ecosystem, so I still use it when render-HTML-on-the-server fits the bill. And Turbolinks 5 is surprisingly snappy, here is a demo of a forums site that I've just deployed running vanilla Turbolinks 5: https://thredded.org/.
In my experience, sometimes this is to flaunt/show-off/project their _percieved_ competence/understanding/knowledge of the said concepts. I know it sounds very dismissive and generalising, but I have witnessed this happen a lot of times. It seems like they don't even know what they don't know.
I really don't see the problem with people reaching out and trying to share their skills and knowledge with other people. To teach something you don't have to be the world's foremost expert on a subject, you just need to know more than the person you are teaching.
The same thing happens with Java; Indian people tend to publish a lot of the same articles. I think we're not the target, just other people in India.
- tools and culture that's optimized for programmer happiness and productivity.
- Promoting obviousness via the path of least surprise.
- Consistency through well-considered conventions.
- Carefully-designed value-based test suites.
- Building long-term maintainable apps
I have to ask because I am being exposed to Ruby at work right now and I find it, to be quite honest, a terrible language. I'm not trying to start a flame war, I am writing this cause I want to be open minded and have some hard-core rubyists point me in the direction of where I can learn what is good about this language. Specifically:
1) What tools / culture are optimized for programmer happiness & productivity in ruby? - I don't find anything special about ruby at all. Let me know what improves happiness / productivity. I would like to dl whatever tools / ide / plugins / gems or whatever and take a look into it.
2) Does ruby truly promote the path of least surprise? I am often surprised when looking at ruby code because I find traceability difficult in Ruby. Where does the function come from when looking at a ruby codebase? Is it from a gem? Is it from some parent class that this class has extended? I have no idea. How do people make Ruby 'less surprising'?
3) I have no idea what is consistent well considered conventions. How do I know something is a well-considered convention? Just use a rubocop linter?
4) Carefully-designed value-based test suites: Please explain this. What makes testing in Ruby so much better than in other languages?
5) Building long-term maintainable apps: What makes Ruby apps more maintainable?
1. It's a general attitude toward building interfaces; the reader of the code is put first. Yeah underneath things may be messy, but using those things should be nice. The onus is placed on the implementor, rather than the user. Ruby libraries will go to fairly extreme lengths to make things nice to use.
2. Matz has always said that he meant the path of least surprise to him, not to every programmer. I personally find this point the weakest.
3. Yes, stuff like rubocop can help teach you this, but you really pick it up from reading and writing others' code.
4. Ruby has had a test-focused bent for a long time; and so it has a lot of tools for testing. Back when I taught Ruby professionally, I even had an organization with a Perl webapp want me to teach their testers Ruby, to write test suites for the app in Ruby rather than Perl. Perl also has great testing, so I'm not sure I agreed with them in this case, but it is something many people feel.
5. I've seen many unmaintainable Ruby apps as well; I think this is something that should be aspired to overall, not necessarily something that's true today. Or rather, there's a period of development where people get enthused with a language, write tons of unmantainable code, step back, figure out why, and then the next iteration is better. Justin points out that node, being earlier in its life, might be in step 2, and that Ruby, being more mature, is on step 4 or 5 here.
I struggle with this a little as newish ruby coder (but not new to coding). The efforts to make a 'nice' interface can interfere with keeping underlying implementations elegant/simple.
Too much focus on the happiness of a dev cranking out new code at the expense of the happiness of developers coming along afterwards trying to understand it.
Ruby is fun to create stuff with, but I kinda prefer the Python culture that tries to drum into devs the importance of readability and explicitness for other developers. As a dev you do far more poring over others code than creating brand new stuff.
class Method
def subl
system("subl", source_location.join(":"))
end
end
Now if "response.context" is throwing an exception, I can find its definition with response.method(:context).subl
Et voila, the source file is opened in Sublime Text and positioned at 'def context'. This even works for the nutty stuff, like methods defined dynamically in an eigenclass.Also, pry & better_errors are your friends.
Ruby on Rails when it came out was: - A tool with a culture that was optimized for programmer happiness and productivity. - Promoting obviousness via the path of least surprise. - Consistency through well-considered conventions. - Carefully-designed value-based test suites. - Building long-term maintainable apps.
Most of the good thing you hear about ruby are actually coming from Rails.
Also, totally agree with the end this video.
It seems like it takes the hits of Ruby and marries them with the LLVM, to make a really awesome, performant language without sacrificing developer happiness. (which is also a tagline of Elixir)
Not asking you to start a flamewar, just genuinely curious about your thoughts on Crystal and if you've played with it.
I finally had to just change the color. OP if you have anything to do with this website, please consider changing that color to almost anything else (or just remove it).
Incidentally, I suppose the first 5 minutes of fighting with a three-way dongle and a poor connection, having to restart the talk, etc. is just a little preview of what every 2016 MBP owner will soon have the pleasure of experiencing themselves.
- It is not the fastest dynamic language like Clojure or LuaJit.
- It does not have great C interop like Python.
- It does not have an easily embeddedable runtime as Lua.
- It is not the scripting language of all web browsers like JavaScript.
- It does not have major big business backing like PHP.
- It is not as good as Lisps for meta-programming and DSLs.
- It is not amazing at concurrency like Erlang.
- It is not the bleeding edge of untyped functional programming like Racket or Clojure.
- It does not have every library under the sun like Python.
- It is not as great at OOP as Smalltalk
So while it's perfectly acceptable at all those things, it doesn't excel at anything. That's why I think it is loosing ground.
It does have Ruby on Rails, and that's still arguably the best Web Framework.
Concerning this aspect, I think it's still above the other languages you mentioned.
So if you rephrase your sentence like: "jack of all trades, master of one", that is, expressiveness (leading to the "developer first attitude", developer happiness, ecc), then I think it nicely explains why it still represents a valid choice in many situations.
If it also gets more solid in some of those areas you mentioned (and it's important to note that the community is focusing exactly on some of those areas: concurrency ("Guilds"), speed ("3x3"), ecc) then it might not only stop loosing momentum, but actually start shining again (note that I said "loosing momentum", not ground: it's easy to loose momentum when you are not a language backed by Google, but it doesn't necessarily mean you're loosing ground...)
So, considering all this, why not keep it in consideration as an almost unique (expressiveness-wise) all-around tool, and keep an optimistic mind for what it is coming up with, rather than just tagging it as a falling technology?
Ruby 3x3: Matz, Koichi, and Tenderlove on the future of Ruby Performance
Preach it brother!
I do miss _why and his antics though.
While in major part satirical this talk does have a serious message. (See from about the twenty-second minute onwards.) Ruby is no longer the new hotness. Javascript is going from strength to strength, new functional programming languages like Elixir and Clojure on the rise, In the compiled language space there's Go and Rust. With our though leaders moving on who do we look to for direction? Imagine if DHH moves on, what do we do then? Justin's point is that the Ruby community needs to become bigger than its heroes.
I see Python taking on the natural language processing, machine learning, computational linguistics space. That's a missed opportunity for Ruby. As awesome as Rails is, its swallowing of mind-share risks making Ruby a one trick pony.
I think this is a conversation we need to have. I know lots of companies use Ruby but at one point I believed that Ruby had the potential to become something like the next Java, and I don't any more.
From my exposure to metaprogramming I discovered other languages like Smalltalk and Lisp with its macros. I now mainly use Clojure, but I don't think I would ever have discovered that without Ruby.
Robert Martin, "What Killed Smalltalk Could Kill Ruby", 2009