Share and learn coding tips

nibbl.it helps leverage learned knowledge from developers around the world

class User
  def message(message)
    m = Message.new(message)
    yield(m) if block_given?
    m.to(self)
    m.send
  end
end

u = User.first

# Send a simple message
u.message("Great work the other day!")

# Advanced usage
u.message("Great work the other day!") do |message|
  message.attachments << "my-image.png"
  message.delay = 30.minutes.from_now
end

Learn from other developers

Find the latest tips and tricks in your favourite languages from other developers.

Weekly roundup emails

Recieve a weekly roundup email of the top rated tips in the language of your choice.