Is C# Better than JavaScript?

  Рет қаралды 4,987

Gavin Lon

Gavin Lon

Күн бұрын

Пікірлер: 47
@ONESTTEFTEO
@ONESTTEFTEO 11 ай бұрын
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
@GavinLon
@GavinLon 11 ай бұрын
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.
@coollobsterr
@coollobsterr 5 ай бұрын
i got mad noone told me about C# when i first discovered it.
@judewestburner
@judewestburner 24 күн бұрын
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.
@GavinLon
@GavinLon 24 күн бұрын
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#. :)
@lyudmilpetrov79
@lyudmilpetrov79 11 ай бұрын
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
@GavinLon
@GavinLon 11 ай бұрын
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.82
@hammeedabdo.82 11 ай бұрын
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++.
@GavinLon
@GavinLon 11 ай бұрын
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!
@davidtaylor3771
@davidtaylor3771 11 ай бұрын
Some languages do warm your loins. Others make you feel like you have been kicked in the nuts.🤞👨‍💻
@coollobsterr
@coollobsterr 5 ай бұрын
c# is comfort food while c++ is dangling swords
@randyriegel8553
@randyriegel8553 11 ай бұрын
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
@GavinLon
@GavinLon 11 ай бұрын
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.
@ScaerieTale
@ScaerieTale 11 ай бұрын
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
@GavinLon
@GavinLon 11 ай бұрын
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. :)
@davidtaylor3771
@davidtaylor3771 11 ай бұрын
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.
@randyriegel8553
@randyriegel8553 11 ай бұрын
I just started watching this and 5 seconds in I say YES C# is better.
@GavinLon
@GavinLon 11 ай бұрын
Absolutely! 🙂
@judewestburner
@judewestburner 24 күн бұрын
These are my two main languages (well... typescript). It really is like comparing a car to a tractor.
@GavinLon
@GavinLon 24 күн бұрын
I much prefer TypeScript over just writing vanilla JavaScript :)
@zimcoder
@zimcoder 11 ай бұрын
Short answer, YES!
@GavinLon
@GavinLon 11 ай бұрын
lol - it doesn't look like anyone here is going to argue with you about that :)
@thelist5677
@thelist5677 11 ай бұрын
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
@GavinLon
@GavinLon 11 ай бұрын
I know what you mean about the JavaScript frameworks lol. Thank you for complimenting the video! It is greatly appreciated :)
@hsabatino
@hsabatino 11 ай бұрын
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.
@GavinLon
@GavinLon 11 ай бұрын
C# is an excellent object oriented programming language - also great to learn SOLID principles and design patterns for implementing your C# code.
@hsabatino
@hsabatino 11 ай бұрын
@@GavinLon thanks for the advice, I will look a course on design patter right away!
@uzoruchenna4863
@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
@GavinLon Ай бұрын
I much prefer strongly typed languages as well! :)
@ew8016
@ew8016 11 ай бұрын
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.
@GavinLon
@GavinLon 11 ай бұрын
You make an interesting point there. I enjoyed reading your comment. Thank you!
@alexveremeenko
@alexveremeenko 11 ай бұрын
Yes, better
@GavinLon
@GavinLon 11 ай бұрын
I totally agree! :)
@compman73
@compman73 11 ай бұрын
You have to compare C# with Java not Javascript
@GavinLon
@GavinLon 11 ай бұрын
I have already done that video :) kzbin.info/www/bejne/e17XhIh-erSZY7c
@CoolestPossibleName
@CoolestPossibleName 11 ай бұрын
Next golang
@GavinLon
@GavinLon 11 ай бұрын
We'll get to Golang at some point :) Thank you for your suggestion!
@charlesssgraham
@charlesssgraham 11 ай бұрын
Lol I wonder how many people absolutely lost it at the title + thumbnail 😂😂😂
@GavinLon
@GavinLon 11 ай бұрын
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#.:)
@carosan3719
@carosan3719 11 ай бұрын
Kotlin ?
@GavinLon
@GavinLon 11 ай бұрын
Yeah - I definitely want to create a video on C# vs Kotlin! I'll get there sometime :)
@luciusrex
@luciusrex 3 ай бұрын
Are you a bot? Your drawings look like from a bot
@GavinLon
@GavinLon 3 ай бұрын
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
@luciusrex
@luciusrex 3 ай бұрын
@@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!
@GavinLon
@GavinLon 3 ай бұрын
Great! :) Thanks for your comment. I get asked if I'm an AI all the time lol
Is Blazor Better than Angular?
15:57
Gavin Lon
Рет қаралды 9 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 115 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 68 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 15 МЛН
Is C# Better than Java?
18:41
Gavin Lon
Рет қаралды 17 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 247 М.
ZIG | Ep1 | Introduction
20:18
Code Guild
Рет қаралды 9 М.
Five New C# Features All C# Developers should know
23:15
Gavin Lon
Рет қаралды 2,8 М.
The Rust Standard Library is SO Confusing...Until Now!
11:45
Travis Media
Рет қаралды 30 М.
Why We Choose Blazor over React and Vue: Matt Jones
40:23
Techlahoma
Рет қаралды 8 М.
Is Blazor Better than React?
14:25
Gavin Lon
Рет қаралды 52 М.
NativeAOT for .NET APIs Is Here and It’s INSANE!
14:07
Nick Chapsas
Рет қаралды 88 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 115 МЛН