AWGRead

Tuesday, October 11, 2016

Ruby - Use Struct for "Reification" / OO

http://blog.steveklabnik.com/posts/2012-09-01-random-ruby-tricks--struct-new

Ruby has the Struct construct which author makes use of to "reify" objects to be more Object Oriented. In Java, we'd have to create a separate class for these tiny strongly typed data objects, e.g. by using the "parameter object" pattern.
Posted by S931Coder at 8:19 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Java, OOP, Ruby
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Links

  • AWGtek

Blog Archive

  • ►  2019 (2)
    • ►  May (1)
    • ►  February (1)
  • ►  2017 (1)
    • ►  March (1)
  • ▼  2016 (6)
    • ▼  October (1)
      • Ruby - Use Struct for "Reification" / OO
    • ►  July (4)
    • ►  January (1)
  • ►  2015 (1)
    • ►  March (1)
  • ►  2014 (4)
    • ►  October (1)
    • ►  September (1)
    • ►  May (1)
    • ►  March (1)
  • ►  2013 (6)
    • ►  November (1)
    • ►  September (1)
    • ►  July (1)
    • ►  May (3)
  • ►  2012 (4)
    • ►  September (2)
    • ►  July (2)

Labels

Anti-patterns Architecture Business Logic C ColdFusion ColdSpring Database DI Idioms Java Java EE OOP Programming Languages Ruby Rules-engines Singleton Unit Testing XML XSS

About Me

S931Coder
Documenting my journey through the world of IT.
View my complete profile
Travel theme. Powered by Blogger.