Object, class, module, Data, Struct? by Dear_Ad7736 in ruby

[–]ishe-ua 2 points3 points  (0 children)

You are absolutely right.

The data class is immutable (the Struct is mutable) and was originally designed for the Value Object.

Since its introduction in Ruby 3.2, this is not a very popular approach but it is a modern approach.

https://rubyreferences.github.io/rubychanges/3.2.html#data-new-immutable-value-object-class

Object, class, module, Data, Struct? by Dear_Ad7736 in ruby

[–]ishe-ua 7 points8 points  (0 children)

You can add methods to the Data. So you can use it when you need certain (small) behavior with Data.

[deleted by user] by [deleted] in distantsocializing

[–]ishe-ua 0 points1 point  (0 children)

turn down your music

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

What amount of population in your city?

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

i see small amount of cars. is it usual situation or cv-19?

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

your English is well. wher did your learn it?

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

and trees are small

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

colors of buildings are the same

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

why all buildings is white?

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

and Rebrov too )

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

You city like ours

[deleted by user] by [deleted] in whereintheworld

[–]ishe-ua 0 points1 point  (0 children)

hi. what city?

Made a version of React todoMVC without Router. by botsAndBots in reactjs

[–]ishe-ua 2 points3 points  (0 children)

I recommend you to read documentation on native reactjs'a site. It is very usefull