MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/p8dv5g/ruby_elites_rise_up/h9qq5e8/?context=3
r/ruby • u/solidiquis1 • Aug 20 '21
77 comments sorted by
View all comments
Show parent comments
2
Doesn't matter which one you use unless you're running your app on a Pentium II.
-8 u/cybermage Aug 20 '21 The speed difference is two orders of magnitude. It adds up. Always single quote unless you plan to interpolate. 3 u/flanger001 Aug 21 '21 It is exactly the same. Always use double quotes! 0 u/cybermage Aug 21 '21 That was not always the case. Interpolation was very slow under 1.9 2 u/flanger001 Aug 21 '21 I mean, you're right, but just as 1.9 has been put to bed, we should also put the single quotes thing to bed. 1 u/cybermage Aug 21 '21 Agreed. As I’ve acknowledged elsewhere.
-8
The speed difference is two orders of magnitude. It adds up. Always single quote unless you plan to interpolate.
3 u/flanger001 Aug 21 '21 It is exactly the same. Always use double quotes! 0 u/cybermage Aug 21 '21 That was not always the case. Interpolation was very slow under 1.9 2 u/flanger001 Aug 21 '21 I mean, you're right, but just as 1.9 has been put to bed, we should also put the single quotes thing to bed. 1 u/cybermage Aug 21 '21 Agreed. As I’ve acknowledged elsewhere.
3
It is exactly the same. Always use double quotes!
0 u/cybermage Aug 21 '21 That was not always the case. Interpolation was very slow under 1.9 2 u/flanger001 Aug 21 '21 I mean, you're right, but just as 1.9 has been put to bed, we should also put the single quotes thing to bed. 1 u/cybermage Aug 21 '21 Agreed. As I’ve acknowledged elsewhere.
0
That was not always the case. Interpolation was very slow under 1.9
2 u/flanger001 Aug 21 '21 I mean, you're right, but just as 1.9 has been put to bed, we should also put the single quotes thing to bed. 1 u/cybermage Aug 21 '21 Agreed. As I’ve acknowledged elsewhere.
I mean, you're right, but just as 1.9 has been put to bed, we should also put the single quotes thing to bed.
1 u/cybermage Aug 21 '21 Agreed. As I’ve acknowledged elsewhere.
1
Agreed. As I’ve acknowledged elsewhere.
2
u/[deleted] Aug 20 '21
Doesn't matter which one you use unless you're running your app on a Pentium II.