in the past few years you may have already seen memes to compare
programming languages with things like weapons tools or even song which is
really funny and strikingly true sometimes so it was thinking what if I
compared programming languages with foods well let's talk about that in this
video first let's start with Java one of the most popular object-oriented
programming languages Java is easy to understand and debug you don't need to
deal with difficult stuff like memory or location and garbage collection Java is
also platform independent which means you can run the same code on any systems
Linux Windows whatever the catch is Java is quite slow due to its nature and also
memory consuming so if Java was food then I think it would be a pizza it's
simple and easy to cook everyone knows it everyone eats it
you can find it anywhere and it's usually the first choice when you don't
know what to eat but while it's delicious it has high calories so eating
lots of Pizza can make you fat and unhealthy javascript is a very popular
programming language it's one of the core technologies that powers the
Internet almost every websites need it also it's very versatile and easy to
learn you can write a client-side code on HTML page or server-side code on
nodejs or even native app using react but with that you also need to deal with
the bad parts like variable type coercion lack of proper scope and very
difficult to debug so if javascript was a food i think it
would be an egg it's an ingredient to countless menu and there's more than one
way to fry an egg you can either create an easy dish like scrambled egg or use
it as ingredient to a more sophisticated menu if you have skills but don't forget
you will have to deal with cholesterol after you eat it Python was around for
25 years ago now it's one of the most popular programming languages in the
world Python is easy to learn read and code
syntax is simple there are lots of libraries if you need anything just
import it this means code is usually shorter
in Python than other languages the downside is speed and memory usage since
the code are being interpreted runtime this also made Python also great in
mobile application area so if Python was a food I think it's a hot canned soup
it's simple very easy to buy lots of flavors to choose and quick to prepare
the meal but you will need to eat it slowly or it will burn your mouth
also you can't pack a hot soup to eat for lunch unless you have suitable
framework I mean food container COBOL has been around since 1960 and it's
still being used today many people regard it as dinosaur language and very
difficult to write and understand but what you might not know is I used to be
a COBOL developer and I can guarantee you that around 60% of mutual funds and
insurance business in America are still using COBOL and mainframe today you can
make transaction on there nicely designed website and mobile application
but in the end it's the COBOL batch program running during the night to
process it the reason is not because it's good but the migration cost is
ridiculous and from management perspective why change it if it's still
working so if COBOL was a food I think it's
going to be a Himalayan black salt it's old like 250 million years old and it
has strong rotten egg smell that really stink and more expensive to buy than
regular salt but despite that it's a main ingredient for some dishes and the
funny part is you might already ate it unaware HTML most people already knew
this one technically it's not a programming language as it's more like
structural language anyway all websites needed to define a structure and there
is no alternative yet still it will also need CSS and JavaScript in order to
create fully functional website so if HTML was a food I think it would be a
sandwich bread a sandwich won't be a sandwich without bread on the other hand
you can eat bread only but it's not going to be delicious
either and if HTML was a bread then CSS would
be the spread you can even make your own spread from scratch or by the finished
one from shelf similar to CSS which you can choose to code it yourself or use
the libraries and framework go is a relatively new programming language from
Google it's simple very very very easy to learn in use there is no need for
external dependencies it's also cross-platform support and it's
efficiently fast - the only thing that I don't like about go is the error
handling there is no try-catch statement to
easily catch the error you have to explicitly check the error using if
statement and that's the reason of if error not equal nil meme when talking
about go so if go was a food I think it would be a pasta it's simple easy to
cook in just a few minutes and it's a main ingredient to many awesome dishes
but in order to cook it perfectly you will need to keep tasting it every 30
seconds to get al dente pasta C++ it's a powerful language that's been around
for a long time and still relevant it's efficient and fast but quite difficult
to master due to its complexity and if it's a food I think it's a sushi it
takes one many years to learn how to perfect it but when you do it's super
awesome also you can finish the dish pretty quick C is my first programming
language it's relatively easy to understand for a middle-level language
it is powerful a c program can run almost as fast as an assembly program
and that's the reason why many operating system kernels are written in c the
downside is it's a middle of a language so it takes lots of time if you want to
develop a high-level solution so if c is a food i think it's like a raw meat it
can be made into many dishes but you will need to do all the work and with
sufficient cooking skills - and if c was a raw meat then assembly would be
livestock. Writing an application with assembly is similar to fixing a dinner
from a live cattle i think you get the picture
so let's all for this video hope you guys enjoy if you want to see more
development tips and tutorials subscribe this channel to stay tuned thanks
watching see you next time bye