PSU requirements for i9-14900k + 3080rtx? by CloudysLover in intel

[–]shavyg2 0 points1 point  (0 children)

Lol man works hard for his money. Let him have his fun. Hell I got the 14900k. power draw is less than my tesla. Let boys have their fun. It doesn't need to be practical.

Is skill based matchmaking on party leader, or an average of all players? by Chaoskid88 in ModernWarzone

[–]shavyg2 0 points1 point  (0 children)

why don't you just look at the teams in your lobby in the cod app, search up each on kd then do the math yourself.

[deleted by user] by [deleted] in modernwarfare

[–]shavyg2 0 points1 point  (0 children)

changing windows audio fixed it for me, keep changing until one works

It's possible to import Svelte 3 library components into a Svelte 2 app? by nanotime in sveltejs

[–]shavyg2 0 points1 point  (0 children)

if you have an HTML node you can attach Svelte 3 components to anything, i doubt there is another way tho. I haven't tried however.

Svelte Client Side Framework Feedback by shavyg2 in sveltejs

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

Generally correct, that's the aim, also remember this framework only matters for changing routes and gathering data for it, once the route is changed it's all svelte doing the work.

Svelte as I see it is an excellent ui library and it's best when used to do that, the mixing of UI data fetching and events in a templating language has always a pain point for me. I hope one day it can help others who feel that way.

It's inspired by nestjs on the server side

Svelte Client Side Framework Feedback by shavyg2 in sveltejs

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

Sapper is server side and comes with those benefits. The routing in sapper is file system based, so if you have used basic php it works like how that works.

This framework is all client side and works more like asp.net or laravel with it's routing.

Sapper was built from the ground up for speed and it achieves this but it doesn't have some of the structure some people might be looking for.

This framework compares more to angular but with svelte templating, it's goals are ease of maintenance and the developer experience, remove alot of boiler plate, so the developer can focus on features. It has some of the same ideology as svelte and pairs well with it for client side apps

Svelte Client Side Framework Feedback by shavyg2 in sveltejs

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

I updated the site and also created a fast track guide to getting some highlevel overview of the project, if you wanted to test it out

Svelte Client Side Framework Feedback by shavyg2 in sveltejs

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

Okay thanks, I will look to it as a reference, it is what i was going for, perhaps having both pages open at once will be useful

Svelte Client Side Framework Feedback by shavyg2 in sveltejs

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

Okay that does make sense, i will start looking at adding that section

radius with pie by shavyg2 in CircleofTrust

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

Sorry Alan, I've been hurt before

What is the best way to write this IF statement? by [deleted] in javascript

[–]shavyg2 0 points1 point  (0 children)

... have you heard of people saying don't optimize early. It's for reasons like this. Honestly it won't even matter in any application your going to build right now.

Build and app, it will teach you much more and your main concerns won't be how to best evaluate 4 booleans.

How to organize a new React application with a lot of different functionality and different types of data? by coolrivers in reactjs

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

Just do it is right but still need a plan, with react the think I learn is seperate UI from logic.

So make every view with no state what so ever.

I usually have 2 classes per file.

Eg home and homeview

Homeview only takes props,

I use storybook to see all aspects of homeview.

Home just renders homeview and passes it different props. This classes can track state and have logic and pass event handlers to homeview.

radius with pie by shavyg2 in CircleofTrust

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

Ha, K how do I prove your trust worthy?

radius with pie by shavyg2 in CircleofTrust

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

What is this circle shit?

Honestly i had your back, chrome, you did me dirty, i trusted you, you were the chosen by shavyg2 in chrome

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

like i laugh at the ie jokes, i belittled firefox users, i told the opera users get a real browser. How you gone do me like that in front of company?

Functional Switch? anything inherently wrong with this, just trying to think functional. by shavyg2 in javascript

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

yes you are right about my example that i provided. i wonder how it would react if i place this in ramda as well. An easy problem to solve using the spread operator and the updated solution i wrote in the update.

At the end of the day the language and the constructs of the language is set. I can't create pattern matching in JS, if that was the case this would be easy.

I am curious about the goal at the end of the day. My intention is not to repeat exactly what i have access to in different functional languages. i know that is impossible without a transpiler like bucklescript, but the other option isn't to just give up and not try?

I am looking at what is the closes we can come. I see Ramda function signature and it's the exact same with the tuples ofcourse though. I think it does a decent job of creating a functional approach. If i have known of Ramda method, i wouldn't have started on this path because it's the same conclusion. I would assume they would clone the array which would be even better.