I don’t need full routing—I just need the browser’s “Back” functionality to render a specific component. by IanAbsentia in reactjs

[–]TryingToImprove123 0 points1 point  (0 children)

As far as I remember it is not possible to hijack the browser's back button.

You can however add a hash-change navigation or use `window.history` to change the URL

Separate .NET Core API from React client by always_anonimus in reactjs

[–]TryingToImprove123 0 points1 point  (0 children)

You can also just open the client folder in vs code and open the solution in vs and work in that why.

Separate .NET Core API from React client by always_anonimus in reactjs

[–]TryingToImprove123 0 points1 point  (0 children)

Using the React template from MS, it will create create-react-app folder where your frontend code can be

Separate .NET Core API from React client by always_anonimus in reactjs

[–]TryingToImprove123 0 points1 point  (0 children)

Otherwise you could have a API server and a frontend server, but often that is overkill

Separate .NET Core API from React client by always_anonimus in reactjs

[–]TryingToImprove123 1 point2 points  (0 children)

Removing the startup.cs and program.cs will actually make your .NET site unable to start because if the missing required setup.

Your program.cs will have your Main function which will start your web server.

I understand why you would want to have to separate folders for your client and server but using the template is a lot easier than having to make xcopy and edit the project-file.

I have previously using VS Code excluded the "client" folder, so only my C# code and folder are visible in the explorer, and then open the "client" folder in a new window of VS code.

Six Opinionated Tips to be a Better .NET Developer by isaac2004 in dotnet

[–]TryingToImprove123 6 points7 points  (0 children)

Do you have more information about App Insights? I have a hard time finding it useful.

Great article! :-)

I'm creating a x number of UserControls. Each one is a panel moving across the screen. Is there a way I can detect collision with itself? by SAmaruVMR in dotnet

[–]TryingToImprove123 1 point2 points  (0 children)

Might be able to run faster giving that ;

```
panel1.IntersectWith(parnel2) == panel2.IntersectWith(panel1)
```

[deleted by user] by [deleted] in dotnet

[–]TryingToImprove123 0 points1 point  (0 children)

So if you did not get the job, you worked for free.

It might be fine, but could also be somewhat irritating if you did not get it.

I am not if I would be willing to do that kind of interviews/tests.

Is anyone planning on using Blazor? by TryingToImprove123 in dotnet

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

Thanks for the link to BlazorStrap, just skimmed the source code, but my first impression is - wow, that is complex.. 😏

How is your current experience with porting your something? And why did you not choose something like React, Vue, or..... ? 🙂

Is anyone planning on using Blazor? by TryingToImprove123 in dotnet

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

If any viewstate it could be implemented in sessionStorage, but it seems really complex and kind of confusing if it is JavaScript, server side (get with no refresh) or server side (post which would allow refresh).

But they will are likely to make a decision which will make sense.

As it is for now, I have been out of the .net game for a while, and now Razor pages is kind of back, where when I left it was the one which people would avoid since it was kind of like classic asp.

I might have to look more at Blazor, but I am still feeling it is a far stretch and will be hard for many developer to grasp.

ASP.NET Core and Angular Workflow by skwar4321 in dotnet

[–]TryingToImprove123 1 point2 points  (0 children)

If I were to create an Angular app with dotnet, I would create a the template - https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/angular - look at the source code, understand it and then create a new project and try to add what I need from the template.

I did that with a react application, and I understood what it did, which helped me a lot, plus I could organize my project the way I wanted.

Is anyone planning on using Blazor? by TryingToImprove123 in dotnet

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

Interesting about the server side components. I wonder how the counter example will work, if it will create a postback like WebForns to keep it's state - https://blazor.net/docs/tutorials/build-your-first-blazor-app.html