Brdsnest Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sunshine@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days ago

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

lemmy.ml

message-square
88
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
267

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

lemmy.ml

sunshine@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days ago
message-square
88
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • Oriel Jutty :hhHHHAAAH:@infosec.exchange
    link
    fedilink
    arrow-up
    4
    ·
    1 day 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
      1 day 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.

  • 283 users / day
  • 894 users / week
  • 3.62K users / month
  • 9.06K users / 6 months
  • 1 local subscriber
  • 37.9K subscribers
  • 1.91K Posts
  • 40.7K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org