Down On The Street
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sunshine@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 18 hours ago

I'm new to using Ruby and this tickled me pink

message-square
67
fedilink
204

I'm new to using Ruby and this tickled me pink

sunshine@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 18 hours ago
message-square
67
fedilink
  • Oriel Jutty :hhHHHAAAH:@infosec.exchange
    link
    fedilink
    arrow-up
    4
    ·
    11 hours ago

    Does Ruby require the use of [] and {} there? Because those %w/%i/etc things look like custom quoting operators and at least in Perl you can use any delimiter you want: qw(a b c) is a list of strings, but so are qw+a b c+ and qw;a b c;.

    • HelloRoot@lemy.lol
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      8 hours ago

      Yes, but why?

      https://en.wikipedia.org/wiki/Principle_of_least_astonishment

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 393 users / day
  • 845 users / week
  • 3.61K users / month
  • 8.95K users / 6 months
  • 1 local subscriber
  • 37.9K subscribers
  • 845 Posts
  • 4.47K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org