Is C# better than Python?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi and welcome everyone I'm Gavin law now I don't want to start any trouble here like where a person wearing a c t-shirt walks into a pub where it's clearly inhabited by python developers and feels threatened this video will hopefully give you an idea of the differences and similarities between two of the most popular programming languages around today C and python this kind of breakdown can perhaps help you for example with your decision at as to which programming language to choose as your first programming language or which language is best for addressing certain requirements or hey maybe you just prefer the look of one language over the other let's dive into it C was developed by Anders halsberg and his team at Microsoft it was first released in 2001 I've heard Anders hburg say in an interview that the goal When developing C was to provide the power power and expressiveness of C++ while also providing the rapid application development capabilities inherent in Visual Basic python was developed by Guido van rossom in the late 1980s python was first developed as a result of Guido van rosam being confronted by the shortcomings of ABC language namely extensibility so he started work on this new language by integrating all the features of ABC language with new additional features extensibility and exception handling python is noted for its easy to read syntax it is also known for being an easy language to learn and write the syntax is straightforward which can result in fast development times C and python are both consistently ranked by reputable sources as in the top five most popular programming languages they are both high level programming languages they are both general purpose programming languages meaning they are both versatile programming languages that can be used to develop a diverse array of types of applications and can run on a diverse array of devices they are both crossplatform programming languages they are both objectoriented programming languages but they are also multi-paradigm programming languages where not only do they support object-oriented programming they also support structured programming functional programming and many more C and python are both open source languages that can be leveraged for commercial use free of charge both languages have amazing Community Support so these two Titans have a lot in common so why would you choose one programming language over the other okay let's look at the main differences between C and python C is a statically typed programming language and python is a dynamically typed programming language what does this mean statically typed programming languages basically mean that once a variable is defined in code as a specific type that variable's type cannot be changed in subsequent code without explicit type casting code being run at runtime for this purpose so within statically typed languages the specific type for variables is determined at compiled time the static typing can result in better robustness of code as well as faster runtime execution of code in dynamically typed programming languages a compiler or interpreter assigns a type to all the variables at runtime so the type of the variable is decided at runtime based on the values assigned to them this runtime interpretation of types can result in slower runtime performance when compared with equivalent code that is statically typed however with dynamically typed languages the developer has the advantage of not needing to learn about potential complex rules associated with a type system defined for a statically typed programming language so this may lead to faster learning time and faster development time with statically typed programming languages the types are defined and checked at compile time this means that at runtime the types are not interpreted they have already being established at compile time which means potentially fast execution of the relevant code statically typed code can lead to better code robustness because the type related code has already been checked at compile time this means the developer can correct any type related errors flagged at compile time before the code is released into the wild so type rated errors are preempted at compile time which can lead to more robust code executing at run time time and of course faster execution of that code so with statically typed languages you can release code that can potentially perform better at runtime than with dynamically typed code statically typed languages can potentially ensure better code robustness because type related errors are taken care of before code is released into production the use of dynamically typed languages can potentially have a lower learning overhead and potentially result in Faster development times python is also known for its easy to read and simple syntax which can also lead to faster development times C is a compiled language and python is an interpreted language with an interpreted language an application's code when running in production is interpreted line by line at runtime so the code isn't compiled into machine language code before it is released into production C code is typically jit compiled when C code is first compiled it is compiled into Cil Code common Intermediate Language code once the common Intermediate Language code is running in production it is jit compiled or just in time compiled meaning for example when a method is first called the common Intermediate Language code is first compiled by Net's common language runtime jit service into machine language code before the code is sent to the CPU and subsequently executed if that same method is subsequently called that method is already compiled into machine language code and therefore the jit compiler does not need to compile the method again into machine language code so the relevant machine language code is sent to the CPU and executed ahead of time compilation is also possible in net but this is beyond the scope of this video the point is that compiled code runs faster than interpreted code so typically C code performs better than python code both C and python have amazing Community Support that can provide resources to developers but but C has the support of Microsoft developers can get paid support from Microsoft experts which can be a valuable resource for businesses and developers that require highly Dependable support python is well known for its versatility where it is leveraged to develop web applications data analysis and machine learning applications among others its extensive libraries and Frameworks make it a popular choice for developers working in these fields python is very popular in the field of machine learning where numerous toolkits libraries and Frameworks can be leveraged like for example numai scipi tensorflow P torch and Kus C is a powerful language that can be leveraged for example for game development web development Enterprise applications and Net Framework integration C's robust performance and integration with Microsoft's platform make it a popular choice for the development of these types of applications in conclusion so this video is certainly not a deep dive into C or python but hopefully provides you with an idea of the main similarities and differences between these two popular and versatile languages your criteria for choosing between these languages could be based on for example personal career aspirations perhaps at the moment your criteria is simply being paid the highest possible salary so you could start by researching salaries paid for programming skills in each of these Languages by companies in around the location where you live the requirements related to specific projects can also be a criteria for choosing between these languages so perhaps you want to develop a spa application with the release of net 8 this year 2023 I can certainly recommend Blazer in which case C is a great language in which to invest if you want to for example develop 3D games I highly recommend Unity C is unity's main programming language for machine learning python applications can leverage excellent toolkits Frameworks and libraries like as already mentioned numpy scipi tensorflow pie torch and cus perhaps just personal preference is your criteria for choosing between these two languages you may just love the look and syntax of a particular language I admittedly have a bias toward C but can appreciate why python is also a great choice in many cases perhaps you feel that python is an easier language to learn so you could start learning python as your first programming language and if you want to learn C later once you have gained programming experience using python the experience gained programming in Python will certainly benefit you when you learn C my personal feeling however is that c is also a pretty easy language to learn as a first programming language I hope you have enjoyed this video please let me know in the comments section what programming languages you prefer and why you choose these programs pramming languages should be an interesting discussion if you like this video please hit the like button and please consider subscribing please also ring the bell so that you'll be notified of future content please feel free to share this video with anyone you feel May benefit from its content if you'd like to thank me by buying me a coffee you can do this through my buy me a coffee web page at this URL it will of course be greatly appreciated I love reading your comments so please feel free to engage with me in the comments section I hope to see you soon thank you and take [Music] care
Info
Channel: Gavin Lon
Views: 10,859
Rating: undefined out of 5
Keywords:
Id: DWH0T5bK9kE
Channel Id: undefined
Length: 10min 46sec (646 seconds)
Published: Fri Oct 27 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.