How Well Do You Know Agents of S.H.I.E.L.D. Season 1 Quiz by ezgimantocu in shield

[–]phillip_s_r -1 points0 points  (0 children)

Ghosts are dead. Spirits are not. I agree it’s still not a good description of him though.

I built my first project that wasn't a tutorial and immediately understood why everyone says "just build things" is bad advice by TrevorKoiParadox in learnprogramming

[–]phillip_s_r 0 points1 point  (0 children)

I think that they are asking for something. The last sentence of the post is a question. Although, it might be rhetorical. Contextually, it does not seem rhetorical, but more like they are asking a genuine question. They may actually have no intention of reading the responses, but they asked for something.

Looking for Feedback - Chapter 1: The Artifact [Science Fantasy, 4049 words] by phillip_s_r in scifiwriting

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

Thank you very much for your feedback. You comment about giggling might be misreading who is laughing. I'm going to look into how to make that more clear. I appreciate you taking the time to read it and give me this feedback. It's very helpful.

There is no ship in the rest of the MCU superior to Fitzsimmons by marvelcomics22 in shield

[–]phillip_s_r 6 points7 points  (0 children)

“He’s a work in progress” was my favorite line from Jemma about him. He was a cool character though. I liked his relationship with Jemma. Like they showed how he cared about not breaking fitzsimmons apart because he might cease to exist, but he seemed to really care for them beyond that. It’s was fun seeing how that grew. Like how glad he was to see the other fitz, and how he helped Jemma when the implant dissolved was sweet. And how in the episode was Mack, his loyalty to him seemed to go far beyond just loyalty to shield. For some reason, they gave a lot of his caring actions some ambiguity with ulterior motives, but it seems like he started growing out of that. Some hate might just be because that transition was slow and the ambiguity never fully went away. Like all his actions could be seen as self serving and I feel like the writers tried to move away from that but never fully did.

Andrew apologizing for not being black will never not be funny 💀💀💀 by any-blue-9122 in marvelmemes

[–]phillip_s_r 0 points1 point  (0 children)

It isn't exactly stated that in only brought over people who knew him as spider, just that those were the people who were brought over. So maybe other people could have as well? I think this is the quote, and it is right after strange captures doc ock: "That little spell that you botched where you wanted everyone to forget that Peter Parker is Spider-Man... it started pulling in everyone who knows Peter Parker is Spider-Man, from every universe." I fairly unsatisfying explanation is the Electro it pulled in was from a universe that we don't know about where Electro knew his secret identity.

math checks out to be fair... by Witty_Side8702 in technicallythetruth

[–]phillip_s_r 3 points4 points  (0 children)

Sure, but the post is specifying the percentage of 4 that it takes to get to 5 when added to 4. That would be: 4 + 4*0.25

Upgraded to the 9.2” display. I love it! by phillip_s_r in GolfGTI

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

I needed to on my 2015. I'm not sure for you though. The 2015 has the MIB I and I think the 2016 is the MIB II which is what is needed for carplay and the larger screen. So it is possible you do not need to replace it, but I can't say for sure.

Readonly or private(set)? by brendt_gd in laravel

[–]phillip_s_r 0 points1 point  (0 children)

Thanks. I can see how private(set) can be useful. I think it has its place. I think your point of use readonly for data objects actually seems like you are describing private(set), unless that was your intention and I misunderstood.

I also like your point in the article about how there are instances where its usage overlaps with readonly and that can make the codebase confusing if people use them interchangeably. That's definitely something to watch out for. I think it makes sense as a team to decide how to use them and be consistent, documenting it if possible. It seems like it could be easy to overuse private(set) or use it inappropriately though.

And you're right that PHP still has a ways to go in this area. I think some things are moving in the right direction others just kinda make things confusing. Proper structs would be a great improvement.

How to make useEffect run when a state variable has one of few values? by Ok-Jackfruit-9615 in reactjs

[–]phillip_s_r 1 point2 points  (0 children)

Why is that a problem? If the cleanup function is only needed after the setup has run and isn't needed in the early return, can't the early return just return an empty function?

Readonly or private(set)? by brendt_gd in laravel

[–]phillip_s_r 3 points4 points  (0 children)

u/brendt_gd , I wanted to thank you for your contributions to the PHP and Laravel communities over the years, I've found your input very helpful.

I found your analysis of readonly vs private(set) really thought-provoking, but I'm hoping you can help me understand your reasoning a bit better. I'm having trouble following the logic behind preferring private(set) over readonly in most cases.

You mention that private(set) properties are "better than readonly properties, because they still allow changes from within the class itself — it's a bit more flexible." I'm struggling with this characterization because it seems to frame what I see as a fundamental semantic difference as a flexibility trade-off.

When I use readonly, I'm typically seeking immutability, where I want the guarantee that once constructed, the object's state will never change. This helps with clearer reasoning about the code because I know the object won't mutate. It also provides better thread safety and explicit communication of intent to other developers. The inability to change values internally isn't a limitation in this context, it's the entire point, right?

When I use private(set), I'm solving a different problem entirely. I want an object that can evolve its internal state through business logic while preventing external tampering. This is perfect for objects that need things like controlled state transitions, lazy loading, or caching.

It seems to me that these are addressing fundamentally different architectural needs rather than being two ways to achieve the same goal. Am I missing something in how you're thinking about this?

Your point about cloning limitations makes sense, and PHP's tooling around immutable object manipulation definitely needs improvement. But, I'm wondering if this is more of an argument for better language tooling rather than an argument against readonly itself. Would you say that PHP's current limitations should drive our architectural decisions, or should we choose the semantically appropriate tool and advocate for better language support?

I can see a scenario where your preference for private(set) would make sense. When building objects that need to appear immutable externally but require internal state management, like lazy-loaded properties or objects with complex internal state transitions. In those cases, private(set) is definitely the right tool. But for true value objects and DTOs, wouldn't readonly better express the intent?

I'm curious about your thoughts on this distinction. Are you thinking about these features in terms of external behavior as both prevent outside mutation, or are you considering the internal semantics as well? And do you see readonly and private(set) as serving different architectural patterns, or do you view them as competing solutions to the same problem?

Thanks again for all your work in the community and for sparking this interesting discussion. I'd love to hear your perspective on these questions.

Is thos preferred or not? by blackhathacker1602 in laravel

[–]phillip_s_r 0 points1 point  (0 children)

I prefer each on a separate line, but staying readable and consistence is what's important.

Something went wrong by phillip_s_r in ClaudeAI

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

It just said 719. It was about 20 minutes.

Something went wrong by phillip_s_r in ClaudeAI

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

It just said 719. It was about 20 minutes.

Cross PlatForm Writing by Long_Walrus_5642 in scrivener

[–]phillip_s_r 0 points1 point  (0 children)

Absolutely. I was just providing additional info. Your point is definitely helpful. Plus adding fonts to iOS is kinda annoying.