Even though it is not suitable languages for a neck-to-neck comparison, C# can do almost everything that JS does (of course through WA), but JS can't stand closer in terms of performance and features
@GavinLon11 ай бұрын
Absolutely! I debated with myself whether to release this video but thought its worth doing so because it does provide a clear overview of both languages and makes it clear why C# is superior.
@coollobsterr5 ай бұрын
i got mad noone told me about C# when i first discovered it.
@judewestburner24 күн бұрын
I'll give my bias - C# has given me a career for 20+ years, and I have no regrets. However by Typescript knowledge is pretty much in the same arena as I do both every day. I would never dream of doing anything backend in javascript with node - I can do just about everything I need to in C# and performance-wise javascript/nodejs cannot touch it nor will it ever. On the front end I would never dream of using anything other than Typescript (with whatever framework people prefer or no framework). This set covers pretty much 100% of my career and I just hope I can continue this trend for the remaining 20 years.
@GavinLon24 күн бұрын
Thanks for your insightful comment. I'm the same in that I'm not a fan of JavaScript as a server side language and definitely prefer TypeScript for frontend coding (much cleaner and easier to maintain). With Blazor, we can really minimise the amount of JavaScript we need to write on the frontend. For enterprise applications I can't think of a better programming language than C#. :)
@lyudmilpetrov7911 ай бұрын
I believe in coexistence for example C# is great for speed but think about is it scalable, can it handle millions of users, well you will say Web Assembly, Blazor and so on but still given complexity I believe for front end use SPA pages in Vue, Angular, or React with their JS or TS and on the back end simple is better just plain web API fast and resilient, so in my opinion use both
@GavinLon11 ай бұрын
I definitely think that using .NET on the backed and for e.g. React on the front-end is a great solution for a full-stack web application, although Blazor is still an excellent option in my opinion (then you are able to stick with one technology on the backend and frontend)
@hammeedabdo.8211 ай бұрын
Hi Gavin, You always favor C# because you fell in love with it. But I think the language that can knock C# out in the sixth round is C++.
@GavinLon11 ай бұрын
Hi! LOL- this is the first time I've been accused of falling in love with a programming language. C# is certainly my preferred language because of its power, simplicity, strong typing, versatility, and flexibility. C++ may have some exotic features and can be very fast when written correctly. It can also be very complex. C# is an easier language to learn and you can get up and running and creating powerful full-stack applications fairly quickly. C++, of course has its place and a face off between C# and C++ must happen on this channel at some point :) The combat between these two top contenders could be quite brutal!
@davidtaylor377111 ай бұрын
Some languages do warm your loins. Others make you feel like you have been kicked in the nuts.🤞👨💻
@coollobsterr5 ай бұрын
c# is comfort food while c++ is dangling swords
@randyriegel855311 ай бұрын
I'm a C# / SQL software engineer. I HATE JavaScript but have to use it. Even in Blazor in edge cases I've had to write some JS code. Although I did have one client that wanted Angular application. TypeScript is way better than JS :) I just charged them more per hour because Angular would take me longer than C# LOL
@GavinLon11 ай бұрын
So in this case, Angular's complexity benefited your bank balance lol. Blazor is far more pleasurable to use than Angular in my humble opinion.
@ScaerieTale11 ай бұрын
I like vanilla JS for small proof of concept or MVP apps, but I'm learning to use C# for its AOT. C# has some things that annoy me coming from JS though. Creating lists in C# is more complicated syntax than in JS/TS for example, but that's just a matter of relearning syntax really, no worse than going from JS to Python in that regard
@GavinLon11 ай бұрын
I agree vanilla JS can be good for MVP apps. Dynamically typed languages can be easier for creating code faster and dynamically typed languages are generally easier to learn - but I think the benefits you get from statically typed languages like C# makes it a much better choice than dynamically typed languages like Python or JavaScript :) Statically typed languages are far better in terms of better performance and robustness at runtime. :)
@davidtaylor377111 ай бұрын
You would be happy this had improved in dotnet 8. You can declare a list of the various types like this: List list = ["First", "Second", "Third"]; string[] list = ["First", "Second", "Third"]; HashSet set = ["First", "Second", "Third"]; IEnumerable list = ["First", "Second", "Third"]; (etc) If passing a list as a parameter, you can now just so: myClass.MyMethod1([1,2,3,4]); myClass.MyMethod2(["First", "Second", "Third"]); It doesn't matter what the destination type is as the syntax will be the same. You cannot type this yet: var list = ["First", "Second", "Third"]; Because the team has not yet agreed if the default should be an array or a List. These are all great enhancements. You should try it.
@randyriegel855311 ай бұрын
I just started watching this and 5 seconds in I say YES C# is better.
@GavinLon11 ай бұрын
Absolutely! 🙂
@judewestburner24 күн бұрын
These are my two main languages (well... typescript). It really is like comparing a car to a tractor.
@GavinLon24 күн бұрын
I much prefer TypeScript over just writing vanilla JavaScript :)
@zimcoder11 ай бұрын
Short answer, YES!
@GavinLon11 ай бұрын
lol - it doesn't look like anyone here is going to argue with you about that :)
@thelist567711 ай бұрын
Lovely Video Demo Gavin Lon. I still say C# is just Easier and much more fun to use. Vanilla JavaScript is cool until you get to the Frameworks....then you in an ever loud-Gentle voice "what the hell" is going on here...lol
@GavinLon11 ай бұрын
I know what you mean about the JavaScript frameworks lol. Thank you for complimenting the video! It is greatly appreciated :)
@hsabatino11 ай бұрын
I started to learn coding with C# has a hobby, lather then I entered in a bootcamp and was full JS. Now I work for a small ISP company, and I use JS and Python almost every day, but I'm re-leaning C# again! Because now in my work I use lot of NestsJs and Angular, they are OOP framework and help me to understand some basic of OOP that I dint realize before and I believe that C# could be a great tool.
@GavinLon11 ай бұрын
C# is an excellent object oriented programming language - also great to learn SOLID principles and design patterns for implementing your C# code.
@hsabatino11 ай бұрын
@@GavinLon thanks for the advice, I will look a course on design patter right away!
@uzoruchenna4863Ай бұрын
The major reason i love c# is because iys strongly typed. chance for error is minimal when writing code. Languages that are not strongly type are Garbage to me
@GavinLonАй бұрын
I much prefer strongly typed languages as well! :)
@ew801611 ай бұрын
I'm going to nitpick but the reason the JavaScript "ecosystem" appears to be larger is because .NET has the BCL which is one of the most robust inclusions for any language in existence. You simply don't need a large ecosystem in C# development because of what you get in the .NET box. I would almost go so far as to say that the JavaScript ecosystem is a disadvantage because of NPM and dependency hell. Plus, JavaScript frameworks tend to radically change every few years while C# maintains robust backwards compatibility.
@GavinLon11 ай бұрын
You make an interesting point there. I enjoyed reading your comment. Thank you!
@alexveremeenko11 ай бұрын
Yes, better
@GavinLon11 ай бұрын
I totally agree! :)
@compman7311 ай бұрын
You have to compare C# with Java not Javascript
@GavinLon11 ай бұрын
I have already done that video :) kzbin.info/www/bejne/e17XhIh-erSZY7c
@CoolestPossibleName11 ай бұрын
Next golang
@GavinLon11 ай бұрын
We'll get to Golang at some point :) Thank you for your suggestion!
@charlesssgraham11 ай бұрын
Lol I wonder how many people absolutely lost it at the title + thumbnail 😂😂😂
@GavinLon11 ай бұрын
LOL - these videos are primarily for the purpose of providing overviews for the relevant programming languages being compared. I know, obviously there is not much of a contest between JavaScript and C#.:)
@carosan371911 ай бұрын
Kotlin ?
@GavinLon11 ай бұрын
Yeah - I definitely want to create a video on C# vs Kotlin! I'll get there sometime :)
@luciusrex3 ай бұрын
Are you a bot? Your drawings look like from a bot
@GavinLon3 ай бұрын
lol - no I'm not! :) I do use software to create the drawings but it's not AI.In fact this is me here - kzbin.info/www/bejne/epfLZHqGd9Rnlac
@luciusrex3 ай бұрын
@@GavinLon oh thank god! the recording was perfect! love this video gonna watch some more of your stuff!! thank you for sharing your thoughts on this topic!
@GavinLon3 ай бұрын
Great! :) Thanks for your comment. I get asked if I'm an AI all the time lol