C
C#3mo 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
Pobiega3mo 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
jcotton423mo ago
Also 6 goes out of support in November.
Alp
Alp3mo ago
But I enrolled in a course and they are teaching .net 6.0 there.
jcotton42
jcotton423mo ago
Nothing major has changed, there’s just new additions.
Pobiega
Pobiega3mo ago
Silly of them, but okay. There isnt much difference between 6 and 8 thou
jcotton42
jcotton423mo ago
You could probably do course verbatim on 8 and not notice a difference, tbh.
Alp
Alp3mo ago
Thank you , This course will last until May. Will it be a problem if the 6.0 support ends?
Pobiega
Pobiega3mo 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
Alp3mo ago
Thank you , What exactly happens when support ends? Can't .net 6.0 be used anymore?
Pobiega
Pobiega3mo 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
jcotton423mo ago
Not even critical bugs, afaik.
Alp
Alp3mo ago
i.e. in .net 8.0 environment. Are you saying that I should code in net 6.0 syntax ?
Pobiega
Pobiega3mo ago
these are not two different languages they are the same, with very minor additions
jcotton42
jcotton423mo ago
.net is the runtime, c# is the language
Alp
Alp3mo 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
Pobiega3mo 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
Alp3mo 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
FusedQyou3mo 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
Pobiega3mo 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
FusedQyou3mo 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
Pobiega3mo ago
I'd say .NET 5 or above avoid .NET Core 1-2-3 materials, as it will be a bit too outdated
FusedQyou
FusedQyou3mo 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
Pobiega3mo ago
the core language concepts are the same, but the BCL did change quite a bit since then
FusedQyou
FusedQyou3mo ago
Right
Alp
Alp3mo ago
I was afraid to start .net because I think it's always changing.
Pobiega
Pobiega3mo 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
Alp3mo ago
Yes, you are right, thank you to everyone who replied.🙂
Want results from more Discord servers?
Add your server