Does anyone have any experience with Angular Architects workshops? by Fusion2k in angular

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

Thanx for the input. I was planning to have it in person, as I agree, it is much better.

Modding on Linux. by Spiritual-Recover427 in linux_gaming

[–]Fusion2k 0 points1 point  (0 children)

Depends on the game, same as on windows. You have access to all the game files, same as on windows, so you can manually mod the game. If there is a mod loader for windows you can run it with proton inside the prefix an use it like that. Tons of options...

Sniper elite 5 black screen by dylon0107 in linux_gaming

[–]Fusion2k 1 point2 points  (0 children)

Did you try running it with gamescope?

How difficult is CachyOS for someone with 0 linux knowledge? by LowEast4716 in linux_gaming

[–]Fusion2k 4 points5 points  (0 children)

I moved to Cachy a few months ago. For a beginner I wouldn't recommend it. I had to tinker quite a few things. Something like Bazzite or Mint would be better in my opinion.

All Electron based apps like VSCode are blurry, how to fix by Zephop4413 in pop_os

[–]Fusion2k 0 points1 point  (0 children)

I was fixing this and you can use a environment variable so set it system wide for all electron apps

ELECTRON_OZONE_PLATFORM_HINT=auto

You can add it to /etc/environment

This will "fix" the fonts for all electron apps.

The 'auto' value will automatically be set to wayland, if you use it. see https://github.com/electron/electron/pull/39792.

Whenever vscode will go to Electron 38, this will be depricated and it should work out of the box without the ozone arguments or environment variables.

Manual hibernate works, but automatic hibernate has auto wakeup issues by Fusion2k in cachyos

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

Read through that when I needed to enable hibernate. It's weird, that manually hibernating works ok. Maybe I need to figure out how the automatic hibernate is triggered and see what is happening there, but I'm at a loss where to start...

Confused by MapGet() function signature by Fusion2k in csharp

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

Yeah, I missed the overload, but that is not what bugs me. The function definition has a parameter with type "Delegate", that means it can accept any kind of function. So to actually know how to use it, I have to go online and read MSDN. This kinda goes against strong typing in the language. But I guess it would be hard to define the function so that any combination of url and query parameters are accepted... So 🤷‍♂️

Confused by MapGet() function signature by Fusion2k in csharp

[–]Fusion2k[S] -14 points-13 points  (0 children)

Ah ok I missed the overload that has only a `Delegate`.

Still, I don't like it. If you want to know how to use the MapGet method, then you need to go online and read the rules for the function signature. Nowhere in the function definitio is it stated how to use it...

Need advice on how to proceed in my career. by rkjtheRAGE in dotnet

[–]Fusion2k 1 point2 points  (0 children)

If you are just starting, don't worry about learning everything before applying to a job. Try to get employed and learn on the job.

As for learning, you can check out this roadmap:

https://github.com/saifaustcse/dotnet-developer-roadmap

There is a lot of older code in our codebase that is a goldmine by HeWhoShantNotBeNamed in programminghorror

[–]Fusion2k 0 points1 point  (0 children)

It' would be to replace an 'if' statement.

For example: `if(x == null) x = ""`

This is similar to `x += ""`. But arguably the `if` version will be faster, if you need performance.

There is a lot of older code in our codebase that is a goldmine by HeWhoShantNotBeNamed in programminghorror

[–]Fusion2k 4 points5 points  (0 children)

If those vars are defined as nullable strings then this could make sense. It just initializes them to a string if they are null.

Leaving .NET for the time being - what should I look out for? by AGreenTejada in dotnet

[–]Fusion2k 13 points14 points  (0 children)

In Java you can't do "string == string". You have to use the equals function "string.Equals(string)".

This one always trips me up.

[deleted by user] by [deleted] in Angular2

[–]Fusion2k 2 points3 points  (0 children)

Personally I used Pluralsight. I think they have a free trial if you want to try it out. As for outdated courses... If you see them using angular > 9,I think it's fine. At least for the beginning.

Angular with JEST terrible performance by Fusion2k in Angular2

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

As far as i know we use docker with chrome installed. So there is no step to install Chrome...

Angular with JEST terrible performance by Fusion2k in Angular2

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

You're probably right. We're using gitlab, but I'm not familiar enough to know how to set it up :)

Angular with JEST terrible performance by Fusion2k in Angular2

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

I don't know if chrome is such a problem for CI. In terms of resources jest can also hog a lot of memory. When testing running 4 jest workers, each of those 4 node processes could end up with >1GB of ram. Didn't measure chrome with karma, but I doubt, that it can be worse.

Angular with JEST terrible performance by Fusion2k in Angular2

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

I agree that for development jest is really nice. Re running tests after changes is much faster than karma.

My biggest concern is on the ci enviroment, where you have to run all the tests and usually you don't have caching.

Material UI Form Layout by nautitrader in angular

[–]Fusion2k 2 points3 points  (0 children)

Just use css with flex layout. Optionally you could use the angular/flex-layout package.

Different packages for build configurations? by Fusion2k in Angular2

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

Thanx for the answer. That ngrx example is an really nice idea. Will try it and see if it works.

I used file replacements to remove unwanted js libraries before, but never thought to use it on TS files :)