Ruby.fundamental
:books: Fundamental programming with ruby examples and references. It covers threads, SOLID principles, design patterns, data structures, algorithms. Books for reading. Repo for website https://github.com/khusnetdinov/betterdocs
Install / Use
/learn @khusnetdinov/Ruby.fundamentalREADME
Fundamental programming with ruby examples
This is repo keeps examples with description modern principles, patterns.
Web docs:
Translations:
Content:
- Ruby Gotchas
- Ruby can be surprising!
- Don't quote me on this, but ....
- It's twue! It's twue!
- Hang him in effigy (String him up, symbolically)
- String... or nothing!
- Constants Aren't
- Some are more equal than others
- === != ==!
- and != &&
- or != ||
- Don't be so sensitive!
- 'Ang onto yer @!
- Look out, it’s an @@!
- With init(ialize) or without it
- Superman vs. the Invisible Man
- When will it end? (Or start?)
- getting_any?
- (Un)Def Leppard
- Freeze (Ar)ray
- 1 is 1 ... and ever more shall be so!
- (to! || ! to!) == ?
- An Array of New Gotchas
- Making a Hash of it
- Rescue Me, Throw a Line, I'll Try to Catch It!
- to_s vs to_str
- Need to coordinate method_missing and respond_to_missing?
- Rescue from a StandardError, not an Exception
- Private data isn’t really, and not at all class methods
- Instance_eval with access to outside scope
- Diffs in lambda/proc/block/method
- Braces vs. do-end (TL;DR: braces high precedence, do-end low)
- Variable hoisting in Ruby
- Private methods are accessible by the instance, not the whole class
- Class Foo::Bar, defined outside Module Foo, won’t see inside Foo
- Meta Programming
- Functional Programming
- Threads
- Solid principles
- Design patterns
- Data Structures
