Beiträge mit #RubyTips

#RubyTips

Öffentliche Beiträge auf X, die #RubyTips verwenden.

Verwandte Hashtags

  1. Jesus Castello@matugm
    Ruby Tip: You can convert an array into a hash using the Hash#[] method. Example: Hash[Array('a'..'z').zip(Array('a'..'z').rotate)] #ruby #rubyguides #rubytips
    2712
  2. Prathamesh Sonpatki✓@prathamesh2_
    #RubyTips String class provides handy methods `start_with?` and `end_with?` which basically do what they say. As argument they can take multiple strings and return true if any one of them matches with start or end of the string respectively. #Ruby
    Herunterladen
    0524
  3. Cora Mills@queenwithhearts
    Can't get in the mood? Wine helps exceptionally. #rubytips
    013
  4. Jesus Castello@matugm
    Ruby Tip: You can use [1].tap(&:pop) to remove the last item from an array & return the array itself instead of the removed item. #ruby #rubytips #rubyguides
    0010
  5. Jesus Castello@matugm
    Ruby Tip: Keep your class public interface as small as possible. Only expose methods that can be used by others. Everything else should be marked as private. #ruby #rubytips #OOP
    145
  6. Cora Mills@queenwithhearts
    Wear his favorite color for lingerie, three two one you'll be fucking soon enough. #rubytips
    101
  7. Jesus Castello@matugm
    Ruby Tip: Stop abusing inheritance! Don't use inheritance just to share a few methods between a group of classes. Only use inheritance for specialized versions of the base class. #ruby #rubytips #OOP
    0512
  8. Cora Mills@queenwithhearts
    A stripper pole should set the mood every time you get inside the bedroom. Make sure you're ready for it though. #rubytips
    011
  9. Mehr Beiträge anzeigen