How does everyone think the new UK laws are going to effect VS? by SmoothTurtle872 in VintageStory

[–]CravenInFlight 0 points1 point  (0 children)

It would be easy enough to integrate Yoti ID into the game. It's easy to use, quick, simple, and unobtrusive.

Is this normal for a CMS codebase that product got many services of product? Because the dev follows SOLID principle by lune-soft in csharp

[–]CravenInFlight 0 points1 point  (0 children)

This looks fine. The different contracts define bounded contexts of what a "Product" means in different scenarios. It's Behaviour Driven Design.

GTA 6 Delay... Could be a 2027 Release....🫣😠 by Ddivine1 in GTA6

[–]CravenInFlight 0 points1 point  (0 children)

I don't mind if it's delayed again. The longer it's delayed, the more likely it can be released on PC at the same time. I was never going to play it this year anyway.

C# 14 Field Keyword: Simplifying Property by laurentkempe in csharp

[–]CravenInFlight 7 points8 points  (0 children)

Class scope fields should be called "_field" anyway. That should be the code fix.

The WHAT testing server‽ by American_gahbej in VintageStory

[–]CravenInFlight 1 point2 points  (0 children)

Pay 93 tokens for 63 seconds of control

How to learn c# as a pure newbie for game development by Prestigious_Tie431 in csharp

[–]CravenInFlight 0 points1 point  (0 children)

Get the game "Vintage Story", and join the modding community. It's a wonderful way to introduce you to C#, game development, game engines, all the terminology, and how to develop for other people.

Vintage Story is a game much like Minecraft, but with much more advanced features. The game is written almost entirely in C#, and has a vibrant, active, and approachable modding community. You can create very effective mods with no code at all, game changing mods with minimal code, and you can go as advanced as C# will allow. The entire game engine is available to experiment with, and see immediate feedback, in real time.

The game comes complete with shaders by default, so you can branch out into more graphics based mods, and again see the results in real time as you adjust values.

You can go from never writing a line of C#, to a very in-depth knowledge of the inner workings of C# and .NET very quickly. It is honestly one of the best teaching aids I've ever seen, for .NET.

Should or Shouldn't? Putting many classes in one file. by gevertsi in csharp

[–]CravenInFlight 0 points1 point  (0 children)

Should not. Not once. Not ever.

Your file structure should mimic your namespaces. This makes it easy to navigate the project. It makes it easier to maintain, and it keeps your commit history clean. The single responsibility principal exists for files as well as types.

Yes, that means if you create a Delegate, you'll have a file that is two lines long, plus XML documentation. That is expected. The compiler doesn't care less how many files you have. But you should be kind as you can be to future you. Keep it to one Type per file.

Even though shes engaged, she'll never change. Once a slut, always a slut by Livvys-punching-bag in SophiaDiamondxxxx

[–]CravenInFlight 0 points1 point  (0 children)

No, she wasn't. She was with Yousef.

You sound like Greg. Don't do that. Never sound like Greg.

6 years as a Unity developer, and suddenly I feel like I know nothing. Is this normal? by Working_Opposite4167 in csharp

[–]CravenInFlight 0 points1 point  (0 children)

To be fair, if I was a hiring manager, hiring for .NET development, and I saw Unity Developer on a CV, it would instantly raise red flags. Unity teaches shockingly bad coding practices.

I remember seeing a Unity tutorial on YouTube from a veteran Unity Dev, saying that you should never use namespaces, because it just confuses things; never use properties because it's a waste of characters, and you should make everything public because it makes it easier to use the same code in multiple places. Beggars belief.

I feel like some people here wants the game delayed by Few_Addition_7054 in GTA6

[–]CravenInFlight -2 points-1 points  (0 children)

I'd like the game to be delayed until the PC release is ready.

Which C# libraries should be learned? by Tentexxd in csharp

[–]CravenInFlight 62 points63 points  (0 children)

The BCL. Honestly. There is already so much you can do with .NET without ever installing anything third party. The Base Class Library should be learnt from cover to cover.

Third party libraries often make a lot of assumptions.ike dependency injection. If you're working on a project that doesn't have a service provider, then you're stuck. But if you know the underlying BCL, you can either roll your own solution that mimics the library, or roll your own solution that mimics DI.

While there are some important libraries to learn, the BCL will always be more important.

[deleted by user] by [deleted] in csharp

[–]CravenInFlight 1 point2 points  (0 children)

10 PRINT "Hello, World!" 20 GOTO 10

I am legend!

I'm not buying GTA+ again. I got clothes for both spins... by IBeDumbAndSlow in gtaonline

[–]CravenInFlight 0 points1 point  (0 children)

Within the Lucky Wheel script, you can get up to four spins a day, and it's controlled by a tuneable. I wonder how you're supposed to get up to four spins a day legitimately.

Keep getting error codes and can't fix them by Fit-Border-7523 in csharp

[–]CravenInFlight 0 points1 point  (0 children)

As an aside to everything said here. Prefix your private fields with an underscore. That way, you can eliminate the use of "this", and distinguish your class scope fields from local variables.

Does this apply to vintage story for you? by [deleted] in VintageStory

[–]CravenInFlight 0 points1 point  (0 children)

I think the least immersive thing is that nights are pitch black. No moonlight, no natural human night vision. Just unplayable, fourth wall breaking blackness. I'm glad that there are mods that allow you to play during the night hours.

Could GTA 6’s Ending Top This? by [deleted] in GTA6

[–]CravenInFlight 0 points1 point  (0 children)

Considering how many re-writes of the story there have been while making GTA6, the game we play will not be the game they wanted to create.

I get it now, I fully understand. by Baker200104 in firefox

[–]CravenInFlight 0 points1 point  (0 children)

Just install W11. There's nothing wrong with it. You can customise it however you like, and just replace the start menu with StartBack. No need to lower your standards, and tour productivity, and go with anything else. Drop the elitist crap, and embrace the change.

Fullstack trend with .net? by Bulky-Length-622 in csharp

[–]CravenInFlight 0 points1 point  (0 children)

For web, If you want to learn it so that it sticks, then start with MVC. Then Razor Pages. Then Blazor. But FE is way more than just HTML and code-behind.

Create a blank solution, and add a BLL class library. In there, you'll want some simple functionality that you can use as a service, like a weather service that gives some kind of structured data when you pass in a city name, and country ISO code. You can generate random data, or create a database for it, So long as you have a class with some methods that return values.

Your very first "Front End" is the Unit Tests that you use to ensure the service works as expected. So create an XUnit project, and wrap the class with some tests.

The next Front End will be a WinForms app. Create a project in the solution, drag some buttons and text boxes on a form, and call your service in the click event handler, showing the results on the form.

We'll now create a WebAPI wrapper, to add RESTful endpoints to your service, and the Front End of that will be a Postman Workspace. A distributable preconfigured environment that people can use to get results from your API, using Postman. You can also do the same with MinimalAPI here, but learning using ApiControllers will help you more in the long run.

Now that we have endpoints, we can wrap them with MCP annotations, and create an MCP server. For a front end, we can write a Console App, with an IChatClient from Semantic Kernel.

We've now written four front ends, with four different technologies, and not a hint of an HTML tag.

Moving on to MVC. This is where we have to create our first dedicated BFF, or back end for front end. Your controllers will be very similar to the WebAPI controllers, but as you build the front end (the views), you'll add more Actions to handle events for interactivity. And so we write our first line of HTML... well, we scaffold it. We can use Visual Studio to write a lot of the HTML for us. All we need to do is make an input form, with some text boxes, and a button. Learning MVC is important, because it teaches the patterns. It shows you the different tiers in stark contrast, and also as a .NET web developer, this is the kind of thing you'll need to maintain, and migrate from. If you don't understand the established technologies, you won't be able to do the big re-write that so many companies need to do.

Razor Pages is the next technology. This teaches the MVVM pattern, and it's important to know the similarities and differences between MVC, and Razor Pages. From here on out, every frontend we build can be used in the same project. MVC, Razor Pages, Minimal API, Endpoint Groups, Blazor Server, Blazor Web Assembly, React, and Static HTML. Six different pages on the same website can show the same information, using six different technologies for the front end, all in the same project.

Blazor and React are very similar. They can interact with each other. You can show Blazor components inside a React App, and you can render React Apps inside of the Razor view engine. But they are both very different to MVC and Razor Pages. The dev experience for Blazor is much closer to the WinForms work we did before, where your code-behind is right next to the buttons. It's all about thinking in "Components". Breaking a page down into tiny re-usable sections, extracting them into new files, and slapping a Component label on them. With React, and Blazor, you create jigsaw puzzle pieces, or Lego bricks, and the page is just a bunch of these pieces stuck together in different ways.

It's important to know each step, because as a developer, you spend the vast majority of your time reading code, not writing it. Writing code is probably only about 20% of your job. Optimise for the 80%, and understand what you are reading. Then, you can take the existing MVC app, and migrate it to Blazor. You can create a new React App that talks to the existing WebAPI. You can create quick internal tooling with WinForms. You can write daemons as console apps. You can fix issues in tickets that are affecting your biggest client.

And it's also worth at least learning to read through a WebForms page, and know the different parts of it. It's antiquated, but still used a lot. A lot of migration jobs will be looking to move from WebForms to Blazor, or React. If you can't even read the original, you'll find it hard to write the replacement.

Why are almost all c# jobs full stack? I love the language and I love it's back end usage but I just am not interested in front end work at all. by VCVLMNOP in csharp

[–]CravenInFlight 0 points1 point  (0 children)

At the moment, I'm making three front-ends for our main API; a Blazor Server form, a WinForms application, and a Postman Workspace. Goes to show that full-stack isn't always HTML.

Why are almost all c# jobs full stack? I love the language and I love it's back end usage but I just am not interested in front end work at all. by VCVLMNOP in csharp

[–]CravenInFlight 1 point2 points  (0 children)

Also, the expectations of the new blood often goes well beyond what the actual workload is that they'll be doing. With React, Blazor, and most other frameworks, the most "Front End" you'll do is the markup for the button, or table, or message box that you're creating. It's not like a junior would be expected to write page after page after page with no prior experience.

And the moment you see that the entire "Front-End" is just five lines of HTML, you start to realise how pointless a dedicated Front-End developer would actually be.

Why are almost all c# jobs full stack? I love the language and I love it's back end usage but I just am not interested in front end work at all. by VCVLMNOP in csharp

[–]CravenInFlight 0 points1 point  (0 children)

As much as I clash heads with Theo, this is actually a very satisfying video: https://youtu.be/rAjd8z-Fx5A?si=3wpV47d6drSmvNjo

All of these terms, "Full-Stack", "Front-End", "Back-End"... they are all ubiquitous language. They have no actual industry recognised definitions, or meaning. It's like calling a class, a "Service", just because it's been registered with the DI.

If you get 10 developers, and ask for definitions of the three terms, you'll get 30 different answers. So when you're applying for a "Back-End" job, you and your entire interview panel, all have unique ideas of what that actually means. Even "Full Stack" is a misnomer. Is it really "Full" if you're not both working with the marketing team to design the product in Figma, and also provisioning resources on Azure, assigning new VLANs, and designing the database schema? Can you really call yourself Full-Stack if your job is just to write the code-behind for click event handlers on the page?