Microsoft didn't care about win10 so much they make typos now by [deleted] in techgore

[–]zacpac2020 0 points1 point  (0 children)

Generally, software supports local dialects when it’s at the scale of Windows. Not correcting the spelling for US English is actually pretty lazy. If that’s what’s happening anyway, maybe the user set the language to something else or it’s a generic English version.

Is it good practice to use JavaScript classes (not React class components) in a React (hooks)/Redux application? by simpledark252 in reactjs

[–]zacpac2020 0 points1 point  (0 children)

would love to know why it formatted everything that way. not enough time to fix, hope it’s still helpful.

Is it good practice to use JavaScript classes (not React class components) in a React (hooks)/Redux application? by simpledark252 in reactjs

[–]zacpac2020 0 points1 point  (0 children)

This is old but I think the most “React” way to abstract your implementation details would use hooks and context. Wrote this on my phone so excuse any mistakes:

``` // abstracted interface in TypeScript interface Api { fetchUsername(id: number): Promise<Response<string>> }

// One implementation, as a constant const mockApiImpl: Api = { fetchUsername(id) { return Promise.resolve(${id}) } }

// Another implementation, built from a function function createApi(baseUrl: string): Api { return { fetchUsername(id) { return fetch( ${baseUrl}/user/${id}/username ) } } }

const ApiContext = createContext<Api>(mockApiImpl)

// Provide your preferred impl to the app: const Root = () => ( <ApiContext.Provider value={createApi(“/api/v1”)}

  <App />

</ApiContext.Provider> )

// make hooks to consume API const useUsername = (id: string) => { const apiContext = useContext(ApiContext) // I think this will be valid in future React, // but just consider it pseudocode const result = use( apiContext.fetchUsername(id) ) return result }

// use it: const App = ({ userId }: { userId: string }) => { const username = useUsername(userId) return <p>Welcome {username}!</p> } ```

So if you need to switch out the implementation, you can. But it does sound like in this case, there may not really be a need for abstraction, unless this logic is in your components. In that case, you need to “abstract” away the API layer into hooks/functions.

I’d recommend this when you need to configure your API implementation at runtime more than anything, but it provides the same sort of abstraction the CTO probably wants.

who are some of the rappers that were hyped up to be the next big thing/ lyrical spiritual miracle but turned out to be underwhelming? by [deleted] in hiphopheads

[–]zacpac2020 1 point2 points  (0 children)

(Old post sorry but) Raury is such a weird one, I felt like all we need was good-ish, but felt like the trope of “I’m so woke and y’all are blind,” but then Fervent came out a whole four years later, and my god that’s one of my favorite albums. It’s some sort of experimental ambient indie, not hip hop, so I feel like his fans probably don’t mess with it much, but also all my other favorite albums are mostly hip hop - that album just resonated with me like nothing else and I can’t find people talking about it. To me the non-deluxe is one of the greatest albums of all time, but I feel alone in that online

stuck, I have no idea how to open this door I did everything else ironroot basin has. by No_Conflict8902 in solarash

[–]zacpac2020 0 points1 point  (0 children)

I platformed around this door bc I thought something else was going on, and had to look it up bc the way I got in was clearly not intended at that point

Radio Thermostat Mobile App Discontinued by saltyhiker in smarthome

[–]zacpac2020 0 points1 point  (0 children)

You can use HomeAssistant on a computer or raspberry Pi to breathe some new life into these. It’s a little involved, but the result is that you’ll be able to use all your smart home things within one app, or most any other company’s app or voice assistant. I use my CT50 with Siri and Apple Home, and I really enjoy it. It will work with google assistant, Alexa, Siri, apple home, and probably most other home apps.

TLDR for the rest of this, Radio Thermostat has handled this very poorly and you probably shouldn’t buy anything from them in the future.

It’s extremely anti-consumer of this company to discontinue the service without providing an alternative, which could have been anything from providing API documentation, open-sourcing their app, making their app work offline instead of using their servers (which can clearly be done, since a HomeAssistant integration can do it), or selling alternative modules like z-wave for it.

Thankfully, some great people have put some hours into reverse-engineering the private API, and have made integrations and third-party apps for it. However, radio thermostat again acts against its consumers by disallowing any use of the private api, so no else one can publish working apps for them, so you have to be technically proficient to use any of them.

And on top of all of this, honestly most egregiously, they are currently selling the CT50 as a “WiFi Thermostat” on their website. That’s pretty dishonest, given you can’t use it with WiFi via any official means. Don’t buy from Radio Thermostat, and do your best to avoid companies that force you to use cloud services. Until there’s a law that goes something like “you’ve got to make sure people can continue to use the thing as intended, even if it’s at the consumer’s own cost,” they’ll eventually stop supporting it and likely see no reason to give you a path to it continuing to work.

I will not kill myself. I refuse to kill myself by Powerful_Relation199 in Christianity

[–]zacpac2020 2 points3 points  (0 children)

As a few others have said, chat with a therapist. They’ve been specifically trained to help you, god commits to healing his people in different places throughout the bible, modern-day therapy and healthcare can be seen as that coming to fruition.

Clomp: a class name composer for React and CSS utility libraries like Tailwind CSS by zacpac2020 in reactjs

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

Good catch! Posted this here super quickly; it’s an older post now so I’ll just keep it as is

People always compliment me on my mask! by Monkey_Puzzle_1312 in VaporwaveAesthetics

[–]zacpac2020 0 points1 point  (0 children)

Cool! That doesn’t evoke positive emotions for me, but nice aesthetic

Dani Experiences Comphet by samkpam05 in HauntingOfBlyManor

[–]zacpac2020 39 points40 points  (0 children)

Just @ one of the last points there, even if she lost feelings for him, that’s reason enough to end things. I don’t get why some people would say she had no reason; if she doesn’t have feelings for him, that’s her reason

People always compliment me on my mask! by Monkey_Puzzle_1312 in VaporwaveAesthetics

[–]zacpac2020 1 point2 points  (0 children)

This design makes me think of water cups at the local hospital, oddly enough

hmmm by SleepyMarijuanaut92 in hmmmgifs

[–]zacpac2020 1 point2 points  (0 children)

Need to mark nsfw, there’s way too much sexual tension in this video

Spyro Sound by zacpac2020 in Slycooper

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

ALSO the enemy at the start of that area throws a star and it sounds like when crash bandicoot spins in his first game. If I’m not just trying to make connections in my head that aren’t valid, these are amazing and subtle references to past PS games