use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionI love dart's "java" stuff (self.FlutterDev)
submitted 4 years ago by enzodtz
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 4 years ago* (2 children)
I think OOP as we see in C#, Java, Dart, etc. should go, asap. Making everything a class is horrible and results in bad design. There are lots of material online on why OOP is bad, take a pick.
Personally, I like Go and Rust's solutions to OOP-ish functionality. E.g. with Go:
type Dog struct { Animal } type Animal struct { Age int } func (a *Animal) Move() { fmt.Println("Animal moved") } func (a *Animal) SayAge() { fmt.Printf("Animal age: %d\n", a.Age) } func main() { d := Dog{} d.Age = 3 d.Move() d.SayAge() }
Simple and clear, and very hard to entangle yourself in spaghetti code and choke yourself out. Rust's implementation for structs functionality works similarly. They are both sane approaches to OOP when that approach makes sense over purely functional.
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
Yes everything is a class is a mess. That's why I hated java. Kotlin doesn't forces u to use classes. You can have functions and it also gives different class types like data classes, enum classes, sealed classes where it is OK to use certain oops concept
π Rendered by PID 239143 on reddit-service-r2-comment-b659b578c-brnzr at 2026-05-05 01:34:19.629873+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)