From: niklas | brueckenschlaeger Date: 2010-11-19T17:05:20+09:00 Subject: Re: Ruby Not observing DRY principle --=-PyCl+FD18E1Z3RJE4eeF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable nope. On Fri, 2010-11-19 at 15:45 +0900, flebber wrote: > On Nov 19, 9:22 am, John Morrice wrote: > > > Yes but this is how initially I started to write my code but then had > > > the thought that since my calculations weren't computer intensive. So > > > I thought why not calculate all options first and show what valid > > > options exist to the user rather than looping around the options > > > trying to find a valid option. Is this a good way to go. > > > > That's entirely up to you. > > > > However, I think most mail clients have a send button - even when you > > haven't entered yet an email address! > > > > John >=20 > Can a case statement return multiple correct cases? >=20 --=-PyCl+FD18E1Z3RJE4eeF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAABAgAGBQJM5i+6AAoJEIQdQGZOjo82D6MQAKcO9EEhU11dcoYx5fhDuvnC RLinhSXfQDUVZUAHxbY8x9QvO+XW6uSl20FBuEyBETZQ/zvwgWbr04BtGEnJq04I fM6W4gT4uyz/THN2Dt2bA4qqOJTmyf1xajpky60KEP4xIKJsreFxkmliUJDWWPD4 DNzlJJLm6mlpK2zj9tajfI2LR2uykAuCaqP5xoJ8IGHKNf+7nl51Ojzl0kABvL3Y d8zRasv4ktVLnul+ByQK5WYMCW3jbw8dS7jYco54NKGOz07Pp+Rtu5G6y+GsAZPk idp7QLm3zfU+ajHX+qYaURQ9GfULIcDSGd00HH/zzwsvRfUbVbykDxzMh7LrxaFW a2ib0YYKvpCThLd/q1kmZ7NlCe8JvxJsVjlUxr9BldWzu0aBIncbSxvuG1JXuCgA /oX1m2yW60deJim6bBs/uN2L/K5vlmOCGm38yDLPc0dUOH2wi+yrdqHyWFks5OTh 5wPT8qC9g9iBHLk/+BGifUM9bihDoarqZkuLIC9W8bpwZgUxrHtriOjroxclmk9u cl0OaRrk0KhsQuEw3xvMeO/MVBn4gwDqX6EB6Ii6FbZTcVrYZkrtdRfyW70/Rw2T zZqrZA7CxAfLOyFWdj9RYpBpeAR92P6xvhuoX6mYnP9vl1W6jNOC8fgCGxa21lGC MzrNP+EP5tCTW1vh2ETz =wSvH -----END PGP SIGNATURE----- --=-PyCl+FD18E1Z3RJE4eeF--