ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Is C# Better than JavaScript?
ฝัง
- เผยแพร่เมื่อ 15 ส.ค. 2024
- In this video we compare two excellent software technologies, C# and JavaScript.
🕐 Video Time Indexes
-------------------------------------
00:00:00 - Introduction
00:01:16 - A brief Overview of JavaScript
00:02:56 - A brief Overview of C#
00:06:38 - The similarities between C# and JavaScript
00:11:09 - The differences between C# and JavaScript
00:13:34 - Who wins C# or JavaScript?
00:14:38 - Conclusion
Blazor Courses
------------------------
Build a Shopping Cart Application using Blazor WASM and Web API
🔗 • Blazor (WebAssembly) a...
Build a Sales Management Application using Blazor Server and Syncfusion Compoments
🔗 • Blazor Server App with...
React Courses
------------------------
Project Based React Course for Beginners
🔗 • React JavaScript Frame...
Ranking App using React with .NET (C#)
🔗 • React with .NET Web AP...
.NET 8 Playlist - Blazor's new Featurs and Enhancements
🔗 • What's New in .NET 8 ?
Is Blazor Better than React Video?
🔗 • Is Blazor Better than ...
Support the Channel 👍
------------------------------------
Buy me a Coffee ☕️
🔗 www.buymeacoff...
PayPal
🔗 www.paypal.com...
🪙 BitCoin
12JZYMiRq5YRDN5R5zuyYt7jMN8eTpkgns
Please follow me on Twitter @GavinLonDigital
Links Referenced in this video
-------------------------------------------------
Nuget Packages
🔗learn.microsof...
.NET Assemblies
🔗learn.microsof...
CIL Code - Common Intermediate Code
🔗learn.microsof...
AOT - Ahead-of-Time Compilation
🔗learn.microsof...
Full Playlist - C# for Beginners Course
------------------------------------------------------------
🔗 • Unity for Beginners (C...
Free Courses and Educational Videos - Gavin Lon
-------------------------------------------------------------------------------
Blazor (Webassembly) Shopping Cart Application full playlist
🔗 • Blazor (WebAssembly) a...
Full playlist - Let's Build an ASP .NET Core MVC Web Application on .Net 5
🔗 • Part 1 - Overview - Le...
Full playlist - Advanced C# Course
🔗 • Introduction - Advance...
Full playlist - C# for Beginners Course
🔗 • C# for Beginners - Par...
Blazor Server App on .NET 6 Course - FreeCodeCamp
🔗 • Blazor Server App with...
🎶All Music in this Video was Created by Gavin Lon
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
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.
i got mad noone told me about C# when i first discovered it.
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++.
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!
Some languages do warm your loins. Others make you feel like you have been kicked in the nuts.🤞👨💻
c# is comfort food while c++ is dangling swords
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
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)
I just started watching this and 5 seconds in I say YES C# is better.
Absolutely! 🙂
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
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.
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
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. :)
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.
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.
C# is an excellent object oriented programming language - also great to learn SOLID principles and design patterns for implementing your C# code.
@@GavinLon thanks for the advice, I will look a course on design patter right away!
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
I know what you mean about the JavaScript frameworks lol. Thank you for complimenting the video! It is greatly appreciated :)
Short answer, YES!
lol - it doesn't look like anyone here is going to argue with you about that :)
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.
You make an interesting point there. I enjoyed reading your comment. Thank you!
You have to compare C# with Java not Javascript
I have already done that video :)
th-cam.com/video/E-tSUHEOf-U/w-d-xo.html
Yes, better
I totally agree! :)
Lol I wonder how many people absolutely lost it at the title + thumbnail 😂😂😂
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#.:)
Next golang
We'll get to Golang at some point :) Thank you for your suggestion!
Kotlin ?
Yeah - I definitely want to create a video on C# vs Kotlin! I'll get there sometime :)
Are you a bot? Your drawings look like from a bot
lol - no I'm not! :) I do use software to create the drawings but it's not AI.In fact this is me here - th-cam.com/video/Dfh3GPBo4_E/w-d-xo.html
@@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!
Great! :) Thanks for your comment. I get asked if I'm an AI all the time lol