Filter
Exclude
Time range
-
Near
Monday = Momentum. A fresh week to move with intention, make smarter money decisions, and keep building the life you actually want. Future you is counting on today's choices.💖 #RubySays #RubyTips
8
Need the smallest and biggest number fast? Ruby’s minmax returns both in one call. #Ruby #LearnRuby #RubyTips #Coding #Arrays #PuzzlMedia
2
8
Ruby’s partition splits one array into two. The first array gets everything that matches your condition, while the second array gets the rest. #Ruby #LearnRuby #RubyTips #Coding #LearnToCode #DeveloperTips #Arrays #PuzzlMedia
2
8
15 Jan 2025
Rubyのブロック、Proc、Lambdaの違いを理解し、適切に使い分けて効率的なコーディングを実現しましょう!特徴や使いどころを詳しく解説しています👉 mebee.info/2025/01/15/post-9…" #Ruby #ブロック #Proc #Lambda #プログラミング #RubyTips #オブジェクト指向 #コード最適化 #Web開発 #ソフトウェア開発

1
30
17 Sep 2024
Ever heard of String#inquiry in Rails? It turns strings into objects that respond to question methods, making code more readable. Instead of status == 'active', you can write status.active? . Super underrated! #RubyOnRails #RubyTips #CodeCleaner
3
96
#ActiveSupport's `.presence` lets us write cleaner code. It returns the object if it's present, nil otherwise. No more tedious nil checks! Easily assign a default value when the parameter is nil or empty! #RailsTips #RubyTips #CleanCode
5
6
57
3,686
#RubyTips Want to interchange keys and values of a hash? You can "invert" it by calling "invert" on the hash #Ruby
2
3
45
18 Sep 2020
A #RESTful controller is named for the resource it is going to operate on. When it gets out of hands, we lose the #CRUD mapping to the resources and meaningful controller names. An example and solution. #rubyonrails #ruby #rubyantipatterns #programming #RubyTips #RailsTips
3
2
17 Sep 2020
When a class/object wrapped within methods, it gets difficult to #test and introduce a new behavior of the underlying implementation. We pull out such dependencies and pass them in args. Thus replacing a behavior and #testing gets easy. #rubyonrails #ruby #RubyTips #RailsTips
1
3
#RubyTips #RailsTips Handy numerical methods you can use on daily basis in comparison statements in #Ruby#RubyOnRails #100DaysOfCode #DEVCommunity #Rails #100daysofcoding #100dayschallenge #CodeNewbies
1
4
16
Ruby tip #2: Shortcut for sprintf #rubytips #codetips #ruby #rails @rails

2
Ruby tip #1 "Shortcut for Array#join" #rubytips #codetips #ruby #rails

2
14 Sep 2020
How do I write tests for private methods? The very first question that boggles us when we have a logic responsible to do something, encapsulated in private methods. Here's how to fix it. #rubyonrails #ruby #rubyantipatterns #programming #RubyTips #RailsTips #testing #tdd #bdd
4
1
11 Sep 2020
When there's a blocking code that'd end up taking time before we could show any feedback to the users. It's recommended to put it in a Job to make it async. #performance #rubyonrails #ruby #rubyantipatterns #rubydeveloper #rubyonrailsdeveloper #programming #rubytips #railstips
1
1
A widely known yet less used principle, i.e. the Single Responsibility principle. An example of its violation, how to fix it without breaking your application's behavior. #rubyonrails #ruby #rubyantipatterns #rubydeveloper #rubyonrailsdeveloper #programming #rubytips #railstips
3
2
#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
5
24
#RubyTips It is possible to iterate over a hash with index using `Hash#each_with_index` and catching the key, value in a tuple. #Ruby
1
23
30 Jun 2020
every time you update nokogiri in an open-source project dependency someone somewhere melts a motherboard or burns out a fan. #Rubytips
1
2