how to improve your ruby code
How to improve your ruby code ::
https://www.educative.io/blog/ruby-best-practices ::
- Tip 1: Avoid hidden structures
- Tip 2: Avoid
while !(not) - Tip 3: Use
loop dooverwhile(true) - Tip 4: Use Double Pipe Equals
||=for your methods - Tip 5: Patch the Garbage Collector (GC)
- Tip 6: Use
Hash[...]to create a hash from a list of values - Tip 7: Avoid functions that don’t work well with iterators
- Tip 8: Follow Ruby best practices
- Next steps for your learning
.........................................................................................................
Comments
Post a Comment