From: Richard Wilson Date: 2013-07-30T01:54:14+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? --047d7b6dcb1a90abf404e2a95755 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Traditional Ruby requires more writing? I don't think so. A large portion of text editors (Vim, ST2, TM) automatically plop an end every time you type a def, begin, do, etc. So in terms of efficiency I don't see the point. That and missing/improper indents could possibly break your code, meaning that if you had a way of making it more readable, that consisted of adjusting the indentation, it could break your code. I like python, a lot, it's just not ruby, and ruby is why I sleep well at night. On Mon, Jul 29, 2013 at 8:39 AM, wrote: > Am 29.07.2013 16:55, schrieb Admin Tensor: > > Darryl Pierce wrote in post #1117018: > >> On Mon, Jul 29, 2013 at 03:39:02PM +0900, Juha K. wrote: > >>> Why not go coffeescript style and create a preprocessor gem that > >>> compiles indent-aware ruby into ruby? Shouldn't be too big effort. > >> > >> To what advantage? > > > Well, the most obvious are less typing and very compact code. > > Actually, readability is more important to me. And "more compact" > doesn't necessarily mean "more readable". Also, I could easily > reduce typing effort by using one-letter variable names, but I don't. > > > We can > > also think about Groovy and Java, and to different extent, Dart and > > JavaScript. > > Those languages add much more, compared to simply replacing do...end > by indentation. > > Regards, > Marcus > > > -- > GitHub: https://github.com/stomar/ > PGP: 0x6B3A101A > > --=20 *Richard Wilson* Sechelt Innovations Cell - (604) 842 5318 Skype - r.crawfordwilson Email - r.crawfordwilson@gmail.com =93*This email may contain confidential and/or privileged information. If y= ou are not the intended recipient or have received this email in error, please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the information contained on this email is prohibited=94.* --047d7b6dcb1a90abf404e2a95755 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Traditional Ruby requires more writing? I don't think = so. A large portion of text editors (Vim, ST2, TM)=A0automatically=A0plop a= n end every time you type a def, begin, do, etc. So in terms of efficiency = I don't see the point. That and missing/improper=A0indents could possib= ly break your code, meaning that if you had a way of making it more readabl= e, that consisted of adjusting the indentation, it could break your code.
I like python, a lot, it's just not ruby, and ruby= is why I sleep well at night.

On Mon, Jul 29, 2013 at 8:39 AM, <sto.mar@web.d= e> wrote:
Am 29.07.2013 16:55, schrieb Admin Tensor:
> Darryl Pierce wrote in post #1117018:
>> On Mon, Jul 29, 2013 at 03:39:02PM +0900, Juha K. wrote:
>>> Why not go coffeescript style and create a preprocessor gem th= at
>>> compiles indent-aware ruby into ruby? Shouldn't be too big= effort.
>>
>> To what advantage?

> Well, the most obvious are less typing and very compact code.

Actually, readability is more important to me. And "more compact= "
doesn't necessarily mean "more readable". Also, I could easil= y
reduce typing effort by using one-letter variable names, but I don't.

> We can
> also think about Groovy and Java, and to different extent, Dart and > JavaScript.

Those languages add much more, compared to simply replacing do...end<= br> by indentation.

Regards,
Marcus


--
GitHub: https://gi= thub.com/stomar/
PGP: =A0 =A00x6B3A101A




--
Richard= Wilson
Sechelt Innovations
Cell - (604) 842 5318
Skype - r.crawfordwilson

=93This email may contain confidential and/or privileged information. If = you are not the intended recipient or have received this email in error, pl= ease notify the sender immediately and destroy this email. Any unauthorized= copying, disclosure or distribution of the information contained on this e= mail is prohibited=94.
--047d7b6dcb1a90abf404e2a95755--