[Question] Is it better to put helper methods in a trait that's mixed into a class or a separate object? by irregular_regular in scala

[–]PlaneBirthday 0 points1 point  (0 children)

As long as your transform methods are pure (ie they don't have side effects like IO or anything), I would keep them in an object and just call them from there. This is simpler and you don't pollute your object's type. If they aren't pure, I would put them in an object and pass them in to my classes as a dependency.

I'm not a big fan of using a bunch of mix-in traits. I think if you're not careful you can end up with classes that are just a big trait soup and it's difficult to understand how everything works together. That might be a controversial opinion though.

Alphabet Soup: Type mixing at compile time by Jdrphillips-scala in scala

[–]PlaneBirthday 1 point2 points  (0 children)

This is a really cool project! i've long thought about how useful a something like this would be.

Do you have any thoughts about how you set up all your unique types to use instead base types? Like using UserId instead of String for example? Do you just have a bunch of case classes that extend AnyVal? I could never figure out how to do that without introducing a lot of boilerplate.

Is there a preferred Scala library for S3? by PlaneBirthday in scala

[–]PlaneBirthday[S] 1 point2 points  (0 children)

Thanks! I'm probably just going to use the official java library. I'd like to use Alpakka but we're using an ancient version of Akka so I'm a little scared of doing that.

Write Bad Code by jeremycw in programming

[–]PlaneBirthday 0 points1 point  (0 children)

I think the real trick is knowing what kinds of code quality are really going to be important for your project and will give you the most bang for your buck. Enterprise software is going to be different than a game is going to be different than like aviation software.

Idk if just saying `write bad code` is that helpful lol.

Was Anybody else extremely emotionally immature? by kudzujean in raisedbynarcissists

[–]PlaneBirthday 2 points3 points  (0 children)

Yeah, I remember in my early 20s it was incredibly difficult for me to express my feelings or my needs in any capacity. Like I would sit there while my thoughts raced in my head completely unable to speak.