What is the best programming language and why is it Ruby?
> gee u sure showed me
He keeps using it.
I've never heard a reason against perl that wasn't popularity. Popularity is not a reason to dislike perl.
He bought three books, couldn't get past the syntax flexibility and switched to python. He doesn't know shit. His arguments?
>It isn't as user friendly
>It looks funny, why use $to declare a scalar? python doesn't need that
He has no valid reasons to dislike Perl, he didn't even bother using CPAN because
>python has scientific computing libraries I read!
As if it couldn't be done in Perl.
> thinking it's 2012
> I speak Latin because, funtionally, it still works.
> I use ruby, because perl is too exciting for anyone else to enjoy
> get off my lawn
> things were better in my day
ruby is the only language that i've seen that is both needlessly verbose AND incredibly, obsessively obtuse. writing a program in ruby performs the same function as obfuscating it.
you get so far with this language and you think 'what is the purpose'? is it fast like java? no. is it ubiquitous like php? no. is it easy to use like python? no. then what the fuck is the purpose? something for hipster web devs to masturbate over?
> is it easy to use like python? no
Do cry, anon. It's not that hard to learn. Just do a little bit at a time.
>best programming language
There is none. No programming language is going to be the best in all cases. It is best to know a handful of languages to suit all of ones needs.
>All these Ruby versus Perl arguments
Ruby was influenced by Perl, along with Smalltalk and Lisp. Perl certainly had its advantages, but there are reasons Ruby isn't a copy of Perl. This should not be a valid expression: "25" + 12. In Ruby, that resolves to a TypeError. In Perl, it resolves to 37. Perl is too weakly typed.
> Perl is too weakly typed.
I heard that.
ITP: Perl users getting told.
programs can be complex
languages should be simple
you're clearly quite retarded, so let me use an example.
say i want to build a desk. if i were a reasonable human being, i would use a hammer and some nails. you're right, perhaps it would be harder to learn to put the desk together with a baseball bat and a harpoon. and if you're capable of doing that, more power to you. but i'm over here actually being productive and you're fucking about with a useless toy and accomplishing nothing
do you understand now?
> put the desk together with a baseball bat and a harpoon
So how much are they paying you to shill for python?
$11.13 plus an extra dollar every time i win an internet argument
also i said python was easy, i never said it was useful. you're just mad that python is stealing ruby's market share and projecting that onto me
> python is stealing ruby's market share
You are underpaid, new friend. Are you enjoying summer?
I think that dynamic typing is very useful, if you are a very good programmer, working on a problem framed by a domain that's in some way unfixed.
That's why loads of game studios add dynamically typed scripting languages to their game engines.
Ok, I'm really getting tired of these "best programming languages" threads. Protip: there is no such thing. Different languages are better for different things.
Why don't you come back a report to us when you can output "Hello, world!" to the console, champ.
You're just made because twitter and github both use Ruby on Rails. It's ok, I hear a lot of colleges are using python to teach beginners.
I knew that would be an issue for him. I wish people would just lurk until they get a firm grasp on basic concepts.
Name on language that's better than ruby.
Fuck ruby. Fuck py. Fuck perl
Fuck php too.
> I don't like how in ruby nil == false so the whole language is shit
Nil communicates absolutely nothing, and I'd much rather get an exception most of the time.
Ruby a shit.
Just self-teach yourself. College for me was rather minimal in terms of value, but it gave me an environment where I felt encouraged to study and improve in my own time. Self study is best study.
nil should be falsey. Don't be a retard.
Just want to point out that nil DOES NOT == false in Ruby. Nil is simply falsy in conditionals.
If you actually runnil == falseyou get false.
I like Ruby. It has one or two warts, to be sure, but it definitely achieves its main goals of programmer happiness and productivity.
I have been programming as a hobby for 2 years now so I have done tried pretty much anything.
Windows dev, OS X dev, iOS dev, Android dev, Web dev, etc.
For web development I have used Python or Node.js on the backend. I tried to learn PHP but I really didn't like it so I have never actually built something with it.
I'm just attending a college to get a degree.
The web is a broken pile of hacks, on top of a bunch of design-by-committee technologies, and held together with handshakes and duct tape. That said, it's not going anywhere any time soon, and most changes will only be incremental.
But in terms of making the web manageable in my daily life, Ruby has helped me far more than it has hurt.
> I'd much rather get an exception most of the time
It doesn't hold my hand when I use 'nil' in my program.
>java is becoming the next cobol
Yes, and everyone who wants to run a program already has one of those.
>still have to fire up VM
>run program in the VM within the OS instead of just running it in the fucking OS
If you can't see the problem with this then you have issues.
They aren't, because ruby has pisspoor exception handling..
But god damn, I'd rather get an exception when trying to access a nonexistant key-value-pair from a hash.
Is the value nil? Does the key not exist?
Stop being a retard. Nil communicates nothing about the data. You either know this, or are just being a shitposter/retard.
>programming Ruby pays my bills
Me too. I live in a flyover state but I can do remote freelancing for companies out on the west coast. They pay me a Silicon Valley rate but I have mid-sized town cost of living. Feels pretty good, like an 8/10.
>missing the point
It's very very very easy to adapt to the bad design. It doesn't make the design not bad... And don't tell me you don't inherit shit code that doesn't deal with it properly from other people.
For a moment there I thought your point was objective, clearly it isn't and all boils down to the same old statically typed language vs non-static shit.
I think Ruby has a great design and C#/Java may be good for some people but not me, I think its boring and inefficient.
I've never worked in a large company (25 devs max) but for me Ruby isn't any different in terms of teamwork once you establish some rules.
The reason Python became popular recently (comparatively, python is an OLD language), is because all the people who were in love with Perl discovered Perl's hidden feature of being one of the few write-only programming languages.
Actually, not learning Java or only learning it just enough to get a job while not having it as your specialty may actually save your job. India has millions of Java programmers with fake degrees or who have a real one from a university where cheating is rampant. If your primary language is Java, I would guess you are more likely to be outsourced or immigrant-sourced.
Don't go for a language just because it is obscure, but go for ones that have some kind of niche. If you don't mind working with an ancient one, many US government agencies, banks and hospitals still have programs written in Fortran and Cobol, and they tend to be programs that aren't going away any time soon, but still need maintenance. Look at job listings and see what languages employers want and learn a few of the ones that aren't Java.
1992 isn't old for a language.
Even 1987, which is Perl's birth year, isn't that old (although it is pre-ANSI C).
Python's popularity can be attributed to two major changes. The first is the fact that computers have only been able to run Python in semi-acceptably real-time for the past decade or so. The second is that networking and rendering became the limiting factor in mass media consumption, not actual implementation inefficiency.
Neither of those are bad things, but the Python community shouldn't kid itself into thinking that it won over Perl.