From: flebber Date: 2009-10-06T18:25:13+09:00 Subject: Re: Ruby for the wrong reason On Oct 6, 7:49 pm, Adam Bilbrough wrote: > Sounds like what I had trouble with (regarding Python) hated the indentations, especially when porting from Python 2 - 3 what a nightmare :D > > For an IDE (if you are using OS X) I'd suggest Textmate, it has everything you could possibly want (C, C++, Python, Ruby, Ruby on Rails, PHP, Perl, etc) it costs about £40 ($60 ish) but is well worth it.  As for Ruby version, 1.8.7 works great with Rails and is the prefered version.  I use 1.86 (or .7) on Snow Leopard and the same on Linux I think, though personally, I'd always prefer to go with the most stable and newest version (being 1.9.1). > > Regards, Adam > > --- On Tue, 6/10/09, Rajinder Yadav wrote: > > From: Rajinder Yadav > Subject: Re: Ruby for the wrong reason > To: "ruby-talk ML" > Date: Tuesday, 6 October, 2009, 4:14 AM > > flebber wrote: > > Hi > > > A few months ago, I started learning Python - my first language for a > > project I want to do (personal) which will involve several facets > > including MySql/postgres database and gui frontend I need to create on > > windows xp. So I started this in python and I use Eric 4 ide. > > > At the time I had no knowledge and tossed up between Ruby and Python, > > I chose python because I thought it had been around longer so may be > > more mature. > > I went through this same process, even tried learning Perl which I disliked, tasted like I chalk in my mouth. Being a C++ developer, Ruby was my natural choice (front runner). Python lost me because I thought it was just stupid to only have indentations to declare code blocks. Other Python users told me I would overcome this. Someone did a good job of trying to sell me Python + Django as the way to go. So even though Ruby was more fun and felt natural to me, I still struggled with what to go with. > > In the end I didn't pick Ruby, Ruby picked me. I just when with what felt good to me and then the rest didn't matter what was better. > > There are never no wrong reasons, it's better to explore and then go with the flow for what feels good to you, not someone else. > > > > > So why Ruby now, well honestly my 3rd daughter has been born two days > > ago Ruby Jean, why would I program Python when my daughter is Ruby? > > > My question would Eric4 still be a good choice for Ide in Ruby, code > > completion, highlighting(syntax) and debugging would be required in > > IDE. > > Someone was capturing the various IDE in a spreadsheet, I don't have that email around...possibly they will reply with the link soon =) > > But I suggest you take a look at Aptana, it's got everything you need and it will also allow you to create Rails applications. > > http://aptana.com > > Enjoy and save the python for the wife ;) > > > > > > > Secondly I found capturing the date input from a console in python to > > be a little long winded, below is the script I wrote in python would > > this be significantly easier in Ruby. > > > Which version of Ruby should I use 1.8.6, 1.9.1 or a preview version > > of 1.9.2? > > > My python script to capture date input and check for errors. > > > import datetime as dt > > def ObtainDate(): > >     isValid=False > >     while not isValid: > >         userIn = raw_input("Type Date dd/mm/yy: ") > >         try: # strptime throws an exception if the input doesn't match > > the pattern > >             d1 = dt.datetime.strptime(userIn, "%d/%m/%y") > >             isValid=True > >             print d1, type(d1)  # 2003-07-15 00:00:00 > 'datetime.datetime'> > >             "convert datetime object to a 10 character string" > >             d2 = str(d1)[:10] > >             print d2, type(d2)  # 2003-07-15 > >         except: > >             print "Try again! dd/mm/yy\n" > >     Fname = "data.dat" > >     newFname = d2 + Fname > >     return newFname > > print ObtainDate() > > -- Kind Regards, > Rajinder Yadav > > http://DevMentor.org > Do Good ~ Share Freely So If I use version 1.8.6 and later want to update my project to the 1.9 series would this be a hard conversion?