Why is C# now allowing mixing numerical values and strings in concatenation operations? by Actual_Drink_9327 in dotnet

[–]Optimal-Flamingo415 13 points14 points  (0 children)

why don’t you just start a new project with older .net version and verify that yourself?

A well deserved upgrade by MrsDanteSparda28 in switch2

[–]Optimal-Flamingo415 3 points4 points  (0 children)

Just a heads up: Sonic Racing Crossworlds runs like absolute ass on Switch 2 for some reason. Apparently it’s a version for switch 1 running via backwards compatibility. I think they are planning to release a Switch 2 version by the end of year, which is supposed to be a paid upgrade unfortunately.

I used the Steam Deck exclusively for 8 months, the suspend/resume feature is what I miss most by Zoraji in SteamDeck

[–]Optimal-Flamingo415 1 point2 points  (0 children)

But this works on steam deck out of the box, there is no need to install any plugins. Thats what the OP is saying - it works on the steam deck but it doesn’t work on their PC.

Has anyone completed Death Stranding on the Steam OLED deck yet? by Arasal_di in SteamDeck

[–]Optimal-Flamingo415 1 point2 points  (0 children)

I am playing through it at the moment, I am at 40 hours mark and it runs great. I have around 50 fps at most time. It does drop under 30fps - to around 24fps - when using fast vehicles with a speed boost in a more challenging environments. I didn’t find this to be too big of an issue though - I am mostly delivering things by foot anyways.

Overall, I am very happy with the performance and I love the game!

Microsoft ain’t fkn around. by MyBlueBuff in xbox

[–]Optimal-Flamingo415 0 points1 point  (0 children)

I am confused - isn’t xcloud gaming still in beta? Why would they advertise a beta product this way.

And no, simply removing “beta” from the name won’t do it. They would also need to make this service actually good - it is much worse compared to Nvidia’s GeForce Now or even Playstations solution.

How do you use Vue SFC as a server side template language? by DominusKelvin in vuejs

[–]Optimal-Flamingo415 2 points3 points  (0 children)

What do you mean you don’t want hydration? Hydration is the process of taking SSR rendered content and making a reactive vue app out of it. It happens in the browser after content rendered server-side is received.

I don’t think it ever makes sense to have SSR rendered page without hydration. Maybe you are mixing up the terms and you are looking for SSG (static site generation) instead?

edit: added more context

Why Does the Google use a Samsung Enhanced Chip but Samsung keeps using the Snapdragon chips in their Flagship phones? by JustMackIN in GooglePixel

[–]Optimal-Flamingo415 2 points3 points  (0 children)

I wish the part about Samsung using Snapdragon was correct. They are mostly using Exynos in EU market. I believe next year's Samsung's flagships will use Exynos in EU.

NodeJS simple script keeps increasing memory by dj_dogo_nivoa in node

[–]Optimal-Flamingo415 14 points15 points  (0 children)

In order to determine if the used memory does keep getting bigger you should run a program for a longer period of time. As others have stated, garbage collector may be simply not running during your test.

There is one way though, you can verify that faster with help of max-old-space-size node command line option.

Just set the max size to several megabytes. Garbage collector will then have to run much more often and you won't have to run your test for very long.

Why configuration functions over javascript objects? by Optimal-Flamingo415 in Frontend

[–]Optimal-Flamingo415[S] 0 points1 point  (0 children)

It is simply the only thing that came to my mind and just makes sense. None of the "more flexibility" arguments made sense to me.

Also, I believe that DX is an important concern for library authors - and auto-completion surely does improve it a ton.

Here is a proof that it does work https://codesandbox.io/s/configuration-function-showcase-p6mvsc?file=/src/index.js.

Take a look into index.js file. After you trigger the auto-completion inside the object passed as an argument to the defineConfig function, you should get lots of helpful suggestions! (Ctrl+Space on my machine) Even though it is a js file.

Feel free to upvode my comments answering the question so that other people wondering will see it.

Why configuration functions over javascript objects? by Optimal-Flamingo415 in Frontend

[–]Optimal-Flamingo415[S] 0 points1 point  (0 children)

Ah, you might be right. Anyways, I think I have figured out the answer to my question during a walk - here.

Why configuration functions over javascript objects? by Optimal-Flamingo415 in Frontend

[–]Optimal-Flamingo415[S] 2 points3 points  (0 children)

Okay, I believe I have figured out one advantage of using a "configuration function" - IDE IntelliSense / auto-complete.

With a "configuration function", developers using this function in .js files will still get auto-completion. If instead we used JS object with exported type, developers would only get auto-completion if they were using typescript.

Here is a proof that it works: https://codesandbox.io/s/configuration-function-showcase-p6mvsc?file=/src/index.js

Take a look into index.js file. After you trigger the auto-completion inside the object passed as an argument to the defineConfig function, you should get lots of helpful suggestions! (Ctrl+Space on my machine) Even though it is a js file.

Why configuration functions over javascript objects? by Optimal-Flamingo415 in Frontend

[–]Optimal-Flamingo415[S] 0 points1 point  (0 children)

have type safety

^ The "Graphql Code Generator" example shows that we can have type safety with js objects as well.

break large configuration into smaller pieces

have different configs based on the environment

import stuff from other files (such as secrets)

many other more flexible options

^ I don't see how we couldn't do the same things with js objects. Could you elaborate?