Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular
    • Directory

Conversation

Notices

  1. Paul Philippov Paul Philippov ruby

    can anyone tell me why "for item in scope" worse that "scope.each do |item|" in !ruby ? roodi complains, but doesn't provide an explanation.

    Thursday, 04-Mar-10 13:28:52 UTC from web
    • Dusan Maliarik Dusan Maliarik ruby

      @themactep: nah, don't even try, it's just a matter of taste, and !ruby guys tends to be very religious about it

      Thursday, 04-Mar-10 13:44:23 UTC
    • Norman Köhring Norman Köhring

      @themactep You can give a code block to this construct, like "scope.each do {|item| puts cool(item)}"

      Thursday, 04-Mar-10 14:20:55 UTC
    • Paul Philippov Paul Philippov Norman Köhring

      @nkoehring what's wrong with "for item in scope do puts cool(item) end" ?

      Thursday, 04-Mar-10 14:27:14 UTC
    • Norman Köhring Norman Köhring

      @themactep Iterable.each is way more object oriented.

      Thursday, 04-Mar-10 14:48:38 UTC

Site notice

  • API
  • Lockouts explained
  • freelish.us is back

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.0.1, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal