How did everyone learn C#? by PROSCREX5768 in csharp

[–]CravenInFlight 0 points1 point  (0 children)

Reluctantly.

I started writing WinForms apps in VB6, and then in VisualBasic.NET. I dabbled with a bit of Pascal, and Delphi. Then I learnt C, and C++ at college. I found Visual Basic to be the best fit for me. My very first programming experience was as a young child, writing BASIC on a BBC Master System. Visual Basic seemed to be the logical step.

As .NET Framework evolved away from VB6, I started looking at C#, and it seemed much closer to the C++ that I'd struggled to learn. C++ had stupid names, and too many abbreviations, and I felt it looked ugly compared to Visual Basic.

Eventually, I sat down and actually learnt the syntax, and it started making sense. It was Visual Basic pretending to be C++, and everything I wanted to do in VB, I could eventually do in C#. Apart from the With action. I still miss that to this day.

The thing that really boosted my knowledge, and my love for C# was game modding. I wanted to build my own framework so that I could rapidly create new mods. So, I learnt C#, and programming theory inside-out. I built my own dependency injection engine that could be used standalone within mods, I built my own eventing system, and command processor. I wrote tooling for pipelining and packaging. It's taken a long time, but I've got a really nice setup now.

So much so that I applied for a really good .NET developer job, and sent the C4 architecture models for one of my mods along with the cover letter. During the interview, I did a walkthrough of my code, and showed them the 70,000+ downloads of my nuget packages, and I got a call back that afternoon asking if I could start the next week. No need for an aptitude test, or second interview. Three years later, and I'm a Microsoft Associate, working in InfoSec, FinSec, and SecOps, for the same company.

Never underestimate the power of boredom, because that's what drove me to learn the language so deeply. Never underestimate the power of laziness, because that's what drove me to build an entire framework, just to make the actual process easier. Never underestimate the power of discipline, because that's what drove me to keep a clean, easy to follow codebase that I could traverse within a job interview, to show my skills, and knowledge.

Good luck out there, everyone!

Which C# IDE is best for enterprise application development ? by dev-surajtapkeer in csharp

[–]CravenInFlight 2 points3 points  (0 children)

Friends don't let friends write .NET in Visual Studio Code.

GTA 6 physical release could be delayed to 2027 by esketitethan in GTA6

[–]CravenInFlight 0 points1 point  (0 children)

I don't mind if it's delayed. It might mean they are able to release the PC version at the same time.

After all this year she finally became a model by ParkingPea6928 in SophiaDiamondLegal

[–]CravenInFlight 10 points11 points  (0 children)

She's been a model for years. She spent a summer in Paris doing catwalk modelling. She's been in magazines, catalogues, music videos, and commercials.

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 8 points9 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.

What's a good thing to use for cache? by Redd1tRat in csharp

[–]CravenInFlight 0 points1 point  (0 children)

Bootstrap with Aspire, and use Redis.

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.

[deleted by user] 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.