C
C#4mo ago
Alp

I'm new to .net

Hello, I have just entered the .net world, I started learning .net 6.0, but .net 8.0 is coming out, would I be making a mistake by learning 6.0?
27 Replies
Pobiega
Pobiega4mo ago
.NET 8 has been out for almost a year. There is absolutely no reason to specifically learn .NET 6 at this point .NET comes out with a new major version every november. Even releases (6, 8, 10) are long-term-support versions, while odd are short term.
jcotton42
jcotton424mo ago
Also 6 goes out of support in November.
Alp
AlpOP4mo ago
But I enrolled in a course and they are teaching .net 6.0 there.
jcotton42
jcotton424mo ago
Nothing major has changed, there’s just new additions.
Pobiega
Pobiega4mo ago
Silly of them, but okay. There isnt much difference between 6 and 8 thou
jcotton42
jcotton424mo ago
You could probably do course verbatim on 8 and not notice a difference, tbh.
Alp
AlpOP4mo ago
Thank you , This course will last until May. Will it be a problem if the 6.0 support ends?
Pobiega
Pobiega4mo ago
not for you 99% of .net 6 codebases can be upgraded to 8 with no difficulties at all it being out of support doesnt affect the language itself, only the ability to get bugfixes in .NET 6 released
Alp
AlpOP4mo ago
Thank you , What exactly happens when support ends? Can't .net 6.0 be used anymore?
Pobiega
Pobiega4mo ago
its just that bugs wont be fixed in the .NET 6 runtime, unless deemed critical the solution is simply to upgrade to .NET 8, which again is literally a single line changed in a single file, for most projects
jcotton42
jcotton424mo ago
Not even critical bugs, afaik.
Alp
AlpOP4mo ago
i.e. in .net 8.0 environment. Are you saying that I should code in net 6.0 syntax ?
Pobiega
Pobiega4mo ago
these are not two different languages they are the same, with very minor additions
jcotton42
jcotton424mo ago
.net is the runtime, c# is the language
Alp
AlpOP4mo ago
I understand, thank you for everything I'm learning for backend. I'm a computer science student. Do you have any advice on how to learn .NET?
Pobiega
Pobiega4mo ago
the same way you learn every other programming language. docs, exercies, then projects learn by doing, reinforce your learning by doing it more dont skimp on the fundamentals, they must be solid dont understimate the power of just practicing something in a tiny console app
Alp
AlpOP4mo ago
Thank you. What are the job opportunities? Is there a possibility of being unemployed? I'm sorry I'm asking for everything, I really thank you.
FusedQyou
FusedQyou4mo ago
I don't think it was mentioned But .NET doesn't have breaking changes If they do, they definitely won't affect you You can totally follow that tutorial, and instead do it in a .NET 8 project The only think you should make sure is you don't follow tutorials that target .NET Framework. This version IS different. Don't confuse yourself too much with the reason why and just try avoiding it. You can go as far back as .NET Core 3.0 before you will start finding breaking changes, I believe? This was released in like 2018?
Pobiega
Pobiega4mo ago
C# is one of the top languages for businesses, so there are plenty of job opportunities. There is however ofc a possbility of being unemployed, the general state of the economy is pretty grim right now
FusedQyou
FusedQyou4mo ago
https://en.wikipedia.org/wiki/.NET .NET Core 1.0 was released in 2016 I think you can even follow tutorials from that if you want, and not have many issues Obviously this also requires any libraries to not change significantly
Pobiega
Pobiega4mo ago
I'd say .NET 5 or above avoid .NET Core 1-2-3 materials, as it will be a bit too outdated
FusedQyou
FusedQyou4mo ago
You're best off sticking as close as possible to the target version, obviously. But make sure you keep projects up to date to avoid any security issues
Pobiega
Pobiega4mo ago
the core language concepts are the same, but the BCL did change quite a bit since then
FusedQyou
FusedQyou4mo ago
Right
Alp
AlpOP4mo ago
I was afraid to start .net because I think it's always changing.
Pobiega
Pobiega4mo ago
Thats a good thing and also, the changes are generally very minor but the fact that C# and .NET changes yearly means its always keeping up with modern demands and trends. We get new language features and can write more ergonomic code
Alp
AlpOP4mo ago
Yes, you are right, thank you to everyone who replied.🙂
Want results from more Discord servers?
Add your server