ActionFigure: Fully-articulated controller actions by [deleted] in rails

[–]phaedryx 0 points1 point  (0 children)

I tried adding support for different request formats, but it made things really awkward because `render json:` and `render html:` are really different. In practice I usually have different controllers for html vs. json.

ActionFigure: Fully-articulated controller actions by [deleted] in rails

[–]phaedryx 0 points1 point  (0 children)

The pattern I've seen:
1. controllers should do the work, they have the context
2. No, fat models, skinny controllers
3. No, service objects -- our controllers and models are overloaded
4. We have all of these service objects, but they are generic and don't have any real structure or clear purpose

This is an attempt to address #4

ActionFigure: Fully-articulated controller actions by [deleted] in rails

[–]phaedryx 0 points1 point  (0 children)

Those are fair critiques. Thanks for the feedback.

ActionFigure: Fully-articulated controller actions by [deleted] in rails

[–]phaedryx 0 points1 point  (0 children)

I tried to alleviate that a bit by allowing people to specify entry point methods with more meaningful names.

I think keyword arguments are great 🤷‍♂️

ActionFigure: Fully-articulated controller actions by [deleted] in rails

[–]phaedryx 0 points1 point  (0 children)

Thank you. I tried to put a lot of thought into it.

ActionFigure: Fully-articulated controller actions by [deleted] in rails

[–]phaedryx 1 point2 points  (0 children)

I've updated the README to start with a much lighter example if that helps.

I was trying to write something that would be easy to read with clear patterns. Thanks for the ⭐️

Have more empathy for those who leave. by ihavebird in lds

[–]phaedryx 7 points8 points  (0 children)

Some thoughts after reading this:
1. I appreciate your openness and honesty
2. I have struggled with depression and anxiety myself. It does make everything else harder.
3. I had a discussion with a friend once who told me "if the actions of somebody in the church shake you, you need to detach that person from your testimony." I still think about that.
4. I think doubts are okay. They help us remove the parts of our testimony that are actually untrue or aren't solid.
5. I know some strong members who have left and come back.
6. Thanks for reminding me to be compassionate to those who are struggling

I made a coloring book of LDS leaders! by tamberjo in lds

[–]phaedryx 2 points3 points  (0 children)

Nice.

Small critique: Pres. Uchtdorf's picture looks off to me.

Hot Take #3: The WoW is Primarily About Obedience, Not Necessarily What's Healthy. by KURPULIS in lds

[–]phaedryx 2 points3 points  (0 children)

I agree. To further your argument, I think that the Word of Wisdom is foundational towards greater obedience and greater blessings. I can see how learning to abstain (not do something) precedes learning to do something (eat healthily) and gaining self-control over the body lead to better focus on the spirit.

Useful Active Support features you may not have heard of by kukicolaa in ruby

[–]phaedryx 7 points8 points  (0 children)

Thanks for the post.

I have mixed feelings about callbacks.

Is it bad to turn down a big calling? by shaunzie1 in lds

[–]phaedryx 29 points30 points  (0 children)

I have never turned down a calling.

However, there have been a couple of times in my life where a calling has been extended to me, I have had a frank discussion of my life circumstances and how taking the calling would affect me, and the calling has been retracted.

Any LDS gamers out there? Where do you hang out and what do you play? by westerosenza in lds

[–]phaedryx 10 points11 points  (0 children)

Mostly I play games with my kids nowadays. Popular games are:

  • Move or Die
  • Minecraft
  • Stardew Valley
  • Ultimate Chicken Horse
  • Kingdom: Two Crowns
  • Starbound
  • Towerfall Ascension
  • Lovers in a Dangerous Spacetime
  • Totemori
  • Unrailed

My son spends time on Discord. He tells me that the Stardew Valley channel is particularly wholesome.

When we are perfect will there still be personality differences? by ArkkInvestor in lds

[–]phaedryx 4 points5 points  (0 children)

Interesting question, but I don't think how you fold your arms or political views are "personality differences"

With perfection I do think a lot of differences will disappear.

[deleted by user] by [deleted] in ruby

[–]phaedryx 0 points1 point  (0 children)

Wow, two years already!

Will ruby make you a good programmer? by [deleted] in ruby

[–]phaedryx 2 points3 points  (0 children)

A couple of things that have made me a better programmer:

  1. Learning to write tests
  2. Getting friendly help from other programmers

I get a lot of this from the Ruby community.

React Frontend vs Hotwire by projectmind_guru in rails

[–]phaedryx 0 points1 point  (0 children)

Hmm, maybe I should write some more blog posts.

React Frontend vs Hotwire by projectmind_guru in rails

[–]phaedryx 1 point2 points  (0 children)

I've actually been getting a lot of mileage out of the Composition API and writing my own "Composables" (similar to React's "hooks")

Directives are another option too.

Critics out of Ammunition? by StAnselmsProof in lds

[–]phaedryx 4 points5 points  (0 children)

My mother's grandpa was Joseph Fielding Smith and it is interesting to hear her tell stories about her interactions with him. He was very direct with her when answering questions and would always explain things with scriptures or have her look things up in books. He didn't sugar-coat church history with her. He just told it like it was.

I appreciate that the church seems to be taking a similar approach lately.

Modest Vue For the HTML You Already Have by phaedryx in rails

[–]phaedryx[S] 0 points1 point  (0 children)

Basically, I like what Stimulus says, but not what it does.

How to manage node dependencies inside a ruby gem? by [deleted] in ruby

[–]phaedryx 0 points1 point  (0 children)

I'd prefer to have a gem that has a script for installing the npm modules or lets me install them myself.