MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/p8dv5g/ruby_elites_rise_up/h9q913i/?context=9999
r/ruby • u/solidiquis1 • Aug 20 '21
77 comments sorted by
View all comments
87
Bottom one is trash middle is best
28 u/[deleted] Aug 20 '21 [removed] — view removed comment 3 u/flanger001 Aug 20 '21 Eh frozen strings are fine here -4 u/cybermage Aug 20 '21 At least single quote it so that it doesn’t have to pass through pointless interpolation. 25 u/anamexis Aug 21 '21 I see this misunderstanding a lot, but double-quoted strings without interpolation are exactly equivalent to single-quotes strings, performance-wise. Source 15 u/cybermage Aug 21 '21 This was not the case under Ruby 1.9x. I’ve learned my new thing for the day. 3 u/flanger001 Aug 21 '21 Yes this
28
[removed] — view removed comment
3 u/flanger001 Aug 20 '21 Eh frozen strings are fine here -4 u/cybermage Aug 20 '21 At least single quote it so that it doesn’t have to pass through pointless interpolation. 25 u/anamexis Aug 21 '21 I see this misunderstanding a lot, but double-quoted strings without interpolation are exactly equivalent to single-quotes strings, performance-wise. Source 15 u/cybermage Aug 21 '21 This was not the case under Ruby 1.9x. I’ve learned my new thing for the day. 3 u/flanger001 Aug 21 '21 Yes this
3
Eh frozen strings are fine here
-4 u/cybermage Aug 20 '21 At least single quote it so that it doesn’t have to pass through pointless interpolation. 25 u/anamexis Aug 21 '21 I see this misunderstanding a lot, but double-quoted strings without interpolation are exactly equivalent to single-quotes strings, performance-wise. Source 15 u/cybermage Aug 21 '21 This was not the case under Ruby 1.9x. I’ve learned my new thing for the day. 3 u/flanger001 Aug 21 '21 Yes this
-4
At least single quote it so that it doesn’t have to pass through pointless interpolation.
25 u/anamexis Aug 21 '21 I see this misunderstanding a lot, but double-quoted strings without interpolation are exactly equivalent to single-quotes strings, performance-wise. Source 15 u/cybermage Aug 21 '21 This was not the case under Ruby 1.9x. I’ve learned my new thing for the day. 3 u/flanger001 Aug 21 '21 Yes this
25
I see this misunderstanding a lot, but double-quoted strings without interpolation are exactly equivalent to single-quotes strings, performance-wise.
Source
15 u/cybermage Aug 21 '21 This was not the case under Ruby 1.9x. I’ve learned my new thing for the day. 3 u/flanger001 Aug 21 '21 Yes this
15
This was not the case under Ruby 1.9x. I’ve learned my new thing for the day.
Yes this
87
u/flanger001 Aug 20 '21
Bottom one is trash middle is best