This video has been bringing a lot of new viewers onto the channel; I want to say thank you to the ones who've liked and subscribed. Also, I know how I listed the languages, and the overall accuracy in this video wasn't the best, so I apologize for that.
C++ is a multi-paradigm language. It's not just an OOP. You can do structural programming if you want. It even has the keyword `asm` which allows you to insert some assembly code in performance-critical operations. C++ is more like a federation of languages.
@@MewPurPur Well, not really just "any" C code. There are still some compatibility restrictions. For example, due to the strong type checking of C++, you need to do some type casting in certain places: ❌ char *s = malloc(10); ✅ char *s = (char*)malloc(10); `malloc()` returns a `void*` and C++ does not allow assignment for two different pointer types.
@@tbmj Yo I'm 14 getting into web development I'm fairly good at html CSS js and sql little bit of php/ bottom line I need a mentor I'm stuck just building a bunch of projects just to get use to js can someone please just be like a small mentor for me
In newer C# versions you can just write Console.WriteLine("Hello, World!"); the namespace is optional, the system import is optional when using global imports and the class and main function is also optional using top level statements. Also for those saying C# is just a Microsoft Java clone: Yes, kinda, but nowadays it's a lot more versatile and way more performant due to very well optimized C# JIT and some AoT compilation.
@@noided-insight537, you would be if we were learning Scratch, since dragging and dropping is much harder because it is graphic than writing words wile a program reads to us. Also, one of the most used screen readers for Windows (NVDA) is made in Python. (And this is no commercial I'm making since NVDA is free!
Wrote a lot of code for Minecraft mod OpenComputers and ComputerCraft in Lua. Honestly, the language is easy if you don't have an idea of programming. I came from a lot of C# experience, so I expected at least -arrays- -lists- tables starting with 0. Also Lua is blazing fast. Lua should get way more recognition than it does already.
I'll never forget my assignment to make a example code in 20 different (old) languages, on paper. Chose to print hello world for all of those. Good times
The problem with that is that C# was made in retaliation to java, Sun microsystems says "it runs on everything!" Microsoft hates this so they say "look over here, it runs on WINDOWS" basically they are increadibly similar because they were both made to be a higher level C++ in fact C# is named that because it is C++++ if you stack the plus signs.
@@equinox2584 C# is pretty universal nowadays, though. But I'd still argue that C++ would be significantly better for the majority of speed-related programs.
The first language I learned was c# because I wanted to make unity games. I got bored of unity because I could never put in enough time and started using online compilers on my schools Chromebooks to make silly little programs. Honestly c# isnt as complex as you would think once you get the hang of it, but ive always needed a list of functions (like javatpoint) open or intillisense to do anything. there is just so much to it.
i did something similar, but at first i tried learning lua, didn't understand it then i passed to C# in unity (which i didn't understand years ago too) and i was able to understand how it works and make games in it, then i also got a little bored from it too and i decided to try lua and other languages again, now i know C#,lua, and a bit C++ (not that much) and i am trying to understand more coding languages
yea i wouldnt recommend doing something complex like a game as a beginner,start small u ity will just confuse you, at least it confused me. now its super easy
The print() function in Python has a parameter end="" which defaults to " ". Inside the function call you can override it, to add no character at the end of the line.
in 4:43 Encapsulation means binding of code and data, abstraction(data abstraction) means using a program without knowing its background, polymorphism means using many functions in the same name and inheritance is copying functions from one object to another well how I know I am asian(did it in high school)
or with C#, you can write at the start of the program: Using System; namespace... class etc etc so instead of having to write "System.Console.WriteLine()" you can just write "Console.WriteLine()"
I gotta say I would have loved if there was assembly covered here. It's looks so overloaded if you look at a simple Hello world program but it's actually pretty straightforward if you know what's happening
1) adding funny moments 2) trying really cool in explaining 3) amazing editing 4) working with animations too... Surely you have a bright future, best wishes from me
@@olavmulder1514 pretty sure this is true in old compilers but in the new ones you don't necessarily need a return in the main function for it to compile. For any other function you do though.
C#, Hello world became a one-liner in .NET 6: Console.WriteLine("Hello World!"); This is because: - implicit usings - main function not required. You instead can just write code in a file like seen above
Lua is an amazing language, it can be simple initially but once you get into luajit (which yes, in it of itself is its own language) is amazing with the speed and abilities that it gives you. not only that, it's multiparadigm and can support OOP via metatables.
I think part of why I was never interested in computer programming in high school was because, as a total novice, making me try to program in C# was like throwing someone who is terrified of the water into the deep end of the ocean. Give me Scratch any day of the week over C#!
@@ZeroSleap Not the point, C# is indeed "easy", but, at first it can scare u so much, even more than any of the languages shown here (exception of 1 or 2.)
in c# using .net6 you can now only just type console.writeline("hello world") and thats it because .net6 just builds u a template that has all of that code hidden and ready for use
the complexity of C comes from its philosophy of "do it yourself" which kind of forces you to learn how data structures and OS calls work in a low level. As a program complexity grows it becomes harder to keep it cohesive around itself, as again, the language gives almost no tools to keep things modular and tidy and instead rely on the programmer. The good news is that for a language like C there's a very close translation to the machine code that will be eventually executed on the computer, which means there's little to no abstraction in the code and it becomes quite easy to program, at least at a basic level.
the complexity of C comes from its philosophy of "do it yourself" which kind of forces you to learn how data structures and OS calls work in a low level. As a program complexity grows it becomes harder to keep it cohesive around itself, as again, the language gives almost no tools to keep things modular and tidy and instead rely on the programmer. The good news is that for a language like C there's a very close translation to the machine code that will be eventually executed on the computer, which means there's little to no abstraction in the code and it becomes quite easy to program, at least at a basic level.
Well, this is absolutely amazing! Really well animated, funny, funny, informative and funny. I've subscibed and I wish more people to know your great videos. Good luck.
The way you described what Scratch is used for. lol As somebody who has used Scratch for a decade, I can say that although kids can use it to make some little things, it can also be used for making advanced projects.
btw in c#, you can import "system" and not type "system." at the start of the "console.writeline" edit: in c#, you don't have to write "string [] arg" and you also don't have to write public at the start of main
just to note: C++ *IS* a superset of C, take C code, throw it in a C++ compiler and it works fine. C++ is just C with OOP injected into it, you dont have to touch OOP to know C++
Objective-C someone said is the C with objects not c++. C++ is no longer a superset of c - another one said. C++ compilers will through errors sometimes in C code(depends in the compiler u use).
You're making everyone more confused than they already are. C++ isn’t an exact superset of C anymore, the two languages have diverged long since. And "C++ is just C with OOP injected into it" is just a downright awful way to put it. C++ has good support for generic programming and OOP, these two are the primary reasons for its popularity. Modern C++ is all about slowly adopting functional programming patterns. All these features also enabled C++ to have the extensive standard library that it has. All these important af things are lacking in C. And from C's perspective, C is maintained as a timeless language, almost every language has ways to interact with programs written in C and almost every platform has a C compiler. These along with many other traits are the reason why so many APIs are written in C. We really shouldn’t oversimplify things, this just confuses more people and they end up misinformed.
@@EasonTek char* a = malloc(10); char b[5] = "hello"; There, compile that with a C++ compiler. My point here is that not all valid C codes are valid C++ codes. C++ has strong type checking which, in most cases, disallows direct assignment of two different pointer types (`malloc()` returns `void*` which requires casting to `char*`). C++ also requires the character array to be large enough to store all the characters in the string literal initializer including its embedded null character.
You can’t just throw a somewhat complex C program into a C++ compiler and expect it to work. Take for example malloc: char* pChar = malloc(sizeof(char)); Would not work in a C++ compiler because you need to cast it to a char*. You would need to do char* pChar = (char*) malloc(sizeof(char));
I like how you said Scratch is the perfect language to start with for kids Me (I'm a kid btw): ROBLOX STUDIO (Lua), SCRATCH, PYTHON, JAVASCRIPT, HTML, JAVA and more at the same time lol
In Odin, I can write a hello world like this import "core:fmt" main :: proc() { fmt.println("Hello, world !") } In D, import std.stdio; void main() { writeln("Hello, world !") ; } In Nim, echo("Hello, world !") In FreeBasic print("Hello, world !")
Really helpful, useful & confusion free video👍 I have a request to make a video on difference b/w Machine, object oriented etc languages Concept plus add Html in it too for concept clearing.
Actually, Hello, World! in C# uses Console.WriteLine(); it can be interchanged with the System variant. (great use of a semicolon; as a clause breaker and end of line)
Hi, the entire Console class exists under the System namescape, the reason he added it in front of the Console.WriteLine() is because he did not import it with a using System; statement, doing one of the two is required to access the Console class and thus use Console.WriteLine(). Hope this helps! (unless you mean something else by your comment lol)
C++ is a superset of C which adds object-oriented syntax and features to C. The thing that confuses beginners is that C++ has overlapping libraries that are optimized to utilize the object oriented classes, data types and new features implemented in C++.
I didn't think that C# would be the hardest, I even thought it wouldn't be included in the list. Also you can just type : using System; and after that you can just type Console.WriteLine("Hello, World!");
@@MattSuguisAsFondAsEverrr My favourite update to C# would still be the one that allowed programmers to write List list = new (); instead of List list = new List();
@@ИльяВитцев "var list = new List()" is still the best imo, i always use implicit type (var) except the right side doesn't tell me intuitively what type it returns e.g. "List list = GetDataFromMyFunction()"
Halfway through this I thought it's a top tier hundreds of thousands subscriber kinda channel. Preety great video dude. Just Subbed. Wishing this channel a great success if you are planning to continue this.
(Some popular applications of some of these languages I seen) Python - Ren'py for DDLC Mods and other VNs like Katawa Shoujo Lua - GMOD Scratch - Undertale Custom Battles (Easier then downloading Unitale and learning Lua or something for a few people) C++ - Minecraft Bedrock Java - Minecraft Java
Object-orientation in C++ just basically means that most of the functionality lies within classes. You have a lot of options with classes (inheretence, polymorphism, etc.) which is what is the complicated part of it. C++ is very mature as it is right now and I would recommend for those choosing between C and C++. C++ has many safety features that prevent users from creating crashes when running their code (which was originally why C++ wasn't very user-friendly). C++ is only as complicated as it has features. Most of it relies on its libraries which can be complicated because of the amount of safety and features they have. But other libraries make it easier for people to understand and C++ is now getting very close to only needing to write much less code (for example: libraryname.function()) is all that would be needed to run them, alongside all the C++ safety being hidden out of site. C++ can also use C libraries, can also be used almost like C if need be. Once modules are fully implemented, C++ will also have easy plug-in library functionality like python. C++ is only getting better and now should be a great time to start learning it.
Actually scratch is becoming my life and making it go off limits is my goal. If I could make scratch actually extract the compiled code to the computer or make a tool for it. Just like turbowarp packager. But I want it the easy way. So I want the compiler to convert the .JSON file stored in the .sb3 file (which is a zip actually) I could convert this to a JavaScript project and make the project easy for JavaScript programmers and like.. have a little easy tool for them if they like :D
C++ was created as an addition to C and was originally meant to work in tandem not as a separate language. Also C++ is not high level nor is C# related to C. C# was Microsoft version of Java so you could say it is the Javascript of C. In C# a namespace is a Superclass or to say a Script Library declaration it allows you to inherit other classes.
@@masterflitzer Yes though not 1:1 it would be its equivalent. with C# the using statement such as Using System; System is a namespace. It allows bringing in classes externally or managing classes internally. The javascript of C is stating that C# is not the same as C/C++ just like Java and Javascript are not the same though they have similar names.
@@DeathxStrike18 ok then I understood your reference correctly 👍 just thought how are JS and Java related? but that was the point xD namenspace and package are very similar tho, in c# you write "using" and in java "import"...
"It is perfect for little kids who just started learning how to code". Actually, this programming language says that it's perfect for "Grades 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12". Anyway, it's perfect for my 9-year-old daughter (her 9th birthday was on Twosday). Edit: I added a dot after "Grades 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12".
C# is more of a clone of Java, _and what you wrote inside of the "namespace" was more similar to Java, wondering why you said that it was similar to C++..._
yeah c# is java but better also he did a kinda weird example of hello world, you don't need a namespace and also you normally type "using System;" and then just Console.WriteLine() the only thing i don't like in c# is that everything begins with an uppercase letter (PascalCase) and java is more pleasant because you only use uppercase letters for new words and begin with lowercase (camelCase)
@@Quique-sz4uj Haha, well, ...literally the only reason why I'm still here using Java are Microsoft's weird naming conventions :joy: Immediate edit: also, the Visual Studio updates. OOf.
I really like Phyton. It is easy and you can spell out, what you are writing. Like: if variable > other variable : print("acces grand") else: print("acces denited")
0:12 That's kinda really wrong. They're not just different by syntax, but also how the computer understands them. C and C++ for example are being compiled into assembly and then machine code before executing, making them really fast and efficient. Python, Java and C# are being interpreted, meaning at runtime you have a program running called the interpreter, which executes the script line by line while decoding them, making them slower, because they have to be translated while running the program, as opposed to being translated (compiled) before running the program. I'd also say that Python is not a good language to start. It misses to teach you important concepts in programming such as memory, data types, type casting and much more. I'd recommend to start with C, because it's not as complicated as C++ but provides you with pretty much all important concepts of programming. It is relatively easy to learn and uses simple syntax. Furthermore it has elements of OOP in form of structs. The major difference between a class in C++ and a struct in C are that you can't write functions inside a struct in C. But you could just make a header file and put all the functions in there. But that's just my opinion, also you hear a lot that people who started programming in Python have difficulties later when they want to try other languages, as opposed to C starters, which are already familiar with lots of the syntax of other languages, because many use very similar syntax to C
My opinion on the C vs. Python as a first programming language debate is that if I absolutely knew that someone would be a computer scientist/software developer, I would have them learn C first. You’re right, the understanding it gives you of lower level concepts is very invaluable. Not only does it make assembly easier to learn, but it also gives you a better understanding of what goes on “under the hood” in higher level languages However, Python is a lot more practical language to learn for most people. It’s great for people who use a lot of math in their jobs but want to learn something with a larger scope than R or MatLab. It’s also a pretty solid generalist language, which can allow beginners to explore other fields without needing to learn another language C is a lot more difficult to learn compared than Python. It’s totally worth it to learn C first if you’re going to be programming for thousands of hours, but Python is great to learn first for people who might not want to dedicate that much time to it or aren’t sure if they do or not
Level 1.5: HTML How to do Hello, world! Coding: 𝟷 𝟸 𝟹 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍! 𝟺 𝟻 𝟼 𝟽 Result: Hello, world! (In Serif font) However, if you remove the vital code, it instantly becomes level 0, because it's just 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!
1. C# is more Java's clone than C++ related 2. In C# 10 you just type System.Console.Writeline("Hello world!"); namespace and other stuff can be obmit 3. In Java there does has "package" with act like namespace in C#, it put right head of your file 4. Kotlin has package-thing too 5. In C++ you can just write like C and it compiles perfectly fine too 6. C# mainly serves for main programming language to develop Window application or some Window key feature, it is in the platform call .NET, and in .NET there are another languages like Visual Basic and F# 7. C# compiles down to Intermediate Language - IL which then interprets directly by Common Language Runtime - CLR, it is not the same as Java Virtual Machine - JVM does 8. C++ is not that Object Oriented Programming - OOP. Ruby in other hand is very Pure OOP, everything in Ruby even a number is an object and has its own method 9. I will put C in 9 and C++ in 10 because the thing call "Header" or .h in them, it very crazy thing that you wish you never knew them before, and thank for existence of Java or C#
Yeah, I know I'm 3 months late but I couldn't resist. Headers aren't too complicated, you can think of them as files which are directly "copied" into your source files by the pre-processor. Headers are imported into your source file using the #include directive which basically tells the pre-processor to directly "copy" the contents of the file to the #include line in the source (Hence the need for include guards e.t.c.). This is useful because it allows for forward declarations of classes and functions which can later be defined in a separate source file which also includes this forward declaration. This provides each source file the information needed to compile to object code before they are linked in the linking step of compilation.
We're learning C++ in school and they taught us to use easier way of printing something, we use printf(); instead of std::cout and stdio.h instead of iostream.
0:31 "to whatever the f that is" Hold up, did you just insult C#, the best programming language to ever exist? I'll have you know that my great-great-great-grandfather fought in the programming war for the freedom of C# about 200 years ago. My great-great-great-great grandfather's only source of income came from writing books on the finer technical details of C#, and it's been that way in the family ever since. It may seem difficult or high-level to foreigners, but in fact it's a beginner-friendly language if you use it with Unity. I tell you, Unity is the country's best company. Most of my extended family found employment and friendly faces in Unity. The C# government constantly provides subsidies despite Unity always making a profit, so they have some of the cheapest goods on the market. It's unconstitutional for anyone to even MENTION filthy programming languages like Python or *shudders* Scratch. Oh you want to know the history of the great C# Empire? Well, sit down. After the Great Programming War, the C family was split into several smaller states who, despite being extremely similar, were all at constant war. In its darkest moment, on the verge of defeat, the fledgling C# nation was taken under the wings on the magnificent Javas. With the help of the Javas, the C# army pushed back the C++ and C invaders. They now reign supreme over the Central Programming Lands. So yeah that sums up why C# is a great programming language and why advanced programmers should definitely use it. Any questions?
C# and C++ have nothing to do with each other. C# is high level and C++ low level because you have to take care of the memory management yourself. And C++ builds on C, it's basically C but object-oriented.
"C++ is low level because you have to take care of the memory management yourself" No, you don't really have to manage everything yourself. We have smart pointers now (look up `std::unique_ptr` and `std::shared_ptr` which were added in the standard over a decade ago). Also, C++ is not a "low-level language". Compared to assembly, it is definitely a higher level language. It just has access to lower level features so you can manually optimize whenever necessary. The idea of a language level can be considered to be based on the amount and kind of abstractions a language can place on top of any operation. A long time ago, C++ was called "C with classes". That's not true anymore. It has evolved over time. They even changed the meaning of `auto`. Any remnant of C is now mostly just for backwards compatibility.
C++ isn't necessarily object orientated, as it is a multi paradigm language. C/C++ are kind of inbetween high and low as they are compiled languages and a lot of stuff is done for you by the compiler, but they are capable of low level function, but for the most part they are both low-level languages.
actually that's not really true to cite just a few c features off the top of my head that won't compile in standard c++: k&r function syntax, variable length arrays, _Generic, _Complex, implicit casting from void *, ... then you run into a lot of subtle differences in linkage rules etc.
In batch script : :: Normal method @echo off echo Hello world! pause >nul :: Easy method echo Hello world! pause >nul :: So its easy lol :: Because batch is cmd script :D :: Im learning batch for 4-5 months ;)
If you want to write Hello World in BASIC you do this: 10 PRINT" HELLO WORLD!" 20 GOTO 10 this is how all versions of BASIC work unless you are using some super strange version that I have never heard of also some versions of BASIC have options for lower case
for c# you can grap a different approach like this one: `using System;` and then you don't have to write that extra System. thing, so the hello world program with this approach is gonna look something like this: using System; namespace Program { public class HelloWorld { static void Main(string[] args) { Console.WriteLine("Hello, world"); } } }
Haskell: main :: IO () main = putStrLn "Hello, world!" Functions in haskell have the type signature on one line, and the start of the function body on the next, with the name and any inputs, a =, and then the function body. The IO () type basically means that it performs an io action but outputs no data. You could also define main as `print "Hello, world!"`, but print converts its argument to a string before printing it which isn't necessary here as hello world is already a string.
Every dislike is from a real programmer who does research, uses modern best practices, and doesn't tell everyone who didn't think that your content was good to "**** off." Don't do that, it's mean.
C++ is multiparadigm, less OOP. Java is strictly OOP. You can write strictly procedural code in C++ and if you try hard enough even functional. You can’t do so in Java.
C# isn't as bad as it's made to sound; sure there's some issues but they're easily addressed. Instead of including all that other nonsense (which confuses me too) you can just do Console.WriteLine("Hello, world!"); That works in newer versions and you don't even have to include the namespace or anything. Also you don't have to include what system you're using, unless it's a system that isn't a "default," like Collections or Drawing.
I code using scratch I know from experience it makes coding easier but eventually it’s so complicated to do things that you should just learn to code it, it makes coding easier but making it actually work harder
This video has been bringing a lot of new viewers onto the channel; I want to say thank you to the ones who've liked and subscribed. Also, I know how I listed the languages, and the overall accuracy in this video wasn't the best, so I apologize for that.
Really Cool Video
First time watching you're video and imma say your defo underrated, hope you gain more popularity
@@highgaming6444 Yes really
First time here, really good video, keep up the great stuff!
can you say hi to me huge fan
C++ is a multi-paradigm language. It's not just an OOP. You can do structural programming if you want. It even has the keyword `asm` which allows you to insert some assembly code in performance-critical operations. C++ is more like a federation of languages.
Ye, it's called a superset because any C code will run in C++ too.
@@MewPurPur Well, not really just "any" C code. There are still some compatibility restrictions. For example, due to the strong type checking of C++, you need to do some type casting in certain places:
❌ char *s = malloc(10);
✅ char *s = (char*)malloc(10);
`malloc()` returns a `void*` and C++ does not allow assignment for two different pointer types.
@@MewPurPur The only difference is void main vs int main.
Yeah, but as someone who codes in c++ it tends to be hard to move on without switching to the dark side.
@@tbmj Yo I'm 14 getting into web development I'm fairly good at html CSS js and sql little bit of php/ bottom line I need a mentor I'm stuck just building a bunch of projects just to get use to js
can someone please just be like a small mentor for me
I like how the thumbnail's just like:
Level 1: *Scratch hello world*
Level 10: *Literally some random programming function*
In newer C# versions you can just write Console.WriteLine("Hello, World!"); the namespace is optional, the system import is optional when using global imports and the class and main function is also optional using top level statements. Also for those saying C# is just a Microsoft Java clone: Yes, kinda, but nowadays it's a lot more versatile and way more performant due to very well optimized C# JIT and some AoT compilation.
Way back in C# 1.0 it was a Java clone, but nowadays it's Java that's copying features from C# to try to stay up-to-date
I was going to say you can write CW then tab and c# Will understand console.write líne
Yeah but it’s got that dumb OOP stuff which is hard
What even the other scrips do?
Hell, you don't even need to write anything, just create a new project in Visual Studio and voila, you have Hello World
0:35 Scratch
1:05 Python
1:34 Lua
2:06 Ruby
2:27 JavaScript
2:57 Multiple Lines Intro
3:07 Kotlin
3:37 C
4:23 C++
4:59 Java
5:31 C#
@Oreo Dracula same
@Oreo Dracula lua is heavily different in roblox so don’t really underestimate normal lua because they are pretty different
@@catenary_curve I’m pretty sure Luau is a mix of Lua and C++
6:38 roblox studio
@Oreo Dracula me too
I was hoping to get to esolangs. Seeing Hello World in Brainfuck, JsFuck, FRACTAN, or Piet would be interesting.
Definitely! Especially Piet.
ua-cam.com/video/Ysled8GvKuk/v-deo.html
0:53 best part
HEHEHEHA
Why dont u play with lego blocks
I like Python. Easy to learn for a blind person using a screen reading program.
Wow ur so cool.
If blind people are learning Python than I have to be the worst procrastinator ever
@@noided-insight537, you would be if we were learning Scratch, since dragging and dropping is much harder because it is graphic than writing words wile a program reads to us. Also, one of the most used screen readers for Windows (NVDA) is made in Python. (And this is no commercial I'm making since NVDA is free!
@@supermalavox idk man sounds like a commercial to me
@@DyslexicFucker, it would be if I talked about screen reader brands, although even so, the ones I use both on my PC and Android are free.
In C# using in Unity, we can also print by Debug.Log("Hello, world!")
FINALLY someone who recognises the difference between C++ and C. that and appreciating Lua = instant sub
oh yeah I'm a big fan of lua. and thank you for your support!
You can compile run any ANSI C program using a C++ compiler, and you're telling me they aren't similar?
@@tristanmisja where did I say they weren't similar
Wrote a lot of code for Minecraft mod OpenComputers and ComputerCraft in Lua. Honestly, the language is easy if you don't have an idea of programming. I came from a lot of C# experience, so I expected at least -arrays- -lists- tables starting with 0.
Also Lua is blazing fast. Lua should get way more recognition than it does already.
C++ is a multiparadigm language though, and is procedural unlike what the video states
I'll never forget my assignment to make a example code in 20 different (old) languages, on paper. Chose to print hello world for all of those. Good times
C# really should be called Java++/J++ or Java#/J#. It seems to have a lot more in common with Java than it does with C and C++.
I'd argue that C# and Java are awfully similar to the concept of C++, give or take for the steep(er) learning curve for C++
C# is basically just java on steroids. With some C features
The problem with that is that C# was made in retaliation to java, Sun microsystems says "it runs on everything!" Microsoft hates this so they say "look over here, it runs on WINDOWS" basically they are increadibly similar because they were both made to be a higher level C++ in fact C# is named that because it is C++++ if you stack the plus signs.
@@equinox2584 C# is pretty universal nowadays, though. But I'd still argue that C++ would be significantly better for the majority of speed-related programs.
C hashtag
The first language I learned was c# because I wanted to make unity games. I got bored of unity because I could never put in enough time and started using online compilers on my schools Chromebooks to make silly little programs. Honestly c# isnt as complex as you would think once you get the hang of it, but ive always needed a list of functions (like javatpoint) open or intillisense to do anything. there is just so much to it.
i did something similar, but at first i tried learning lua, didn't understand it then i passed to C# in unity (which i didn't understand years ago too) and i was able to understand how it works and make games in it, then i also got a little bored from it too and i decided to try lua and other languages again, now i know C#,lua, and a bit C++ (not that much) and i am trying to understand more coding languages
Instead of using unity, try making a 3d game engine ;)
Me too but I don't have Time for anything luckily my school will end in 2 months
yea i wouldnt recommend doing something complex like a game as a beginner,start small u ity will just confuse you, at least it confused me. now its super easy
@@kingcobra3329 Yea, try learning vulkan ;) oops you might need to learn c or c++ too ;)
This video gets straight to the point, easy to understand, and funny. Really rare to see that on UA-cam.
💯💯 im subbing
Lot of channels would start needlessly explaining the origin of each language...
The print() function in Python has a parameter end="" which defaults to "
". Inside the function call you can override it, to add no character at the end of the line.
in 4:43 Encapsulation means binding of code and data, abstraction(data abstraction) means using a program without knowing its background, polymorphism means using many functions in the same name and inheritance is copying functions from one object to another well how I know I am asian(did it in high school)
or with C#, you can write at the start of the program:
Using System;
namespace...
class
etc etc
so instead of having to write "System.Console.WriteLine()" you can just write "Console.WriteLine()"
or import => using static system.console; and you can just use WriteLine("TextHere");
Thank you very much for showing "Hello Word" in Lua, the guys of PUC-Rio de Janeiro must have been happy
I gotta say I would have loved if there was assembly covered here. It's looks so overloaded if you look at a simple Hello world program but it's actually pretty straightforward if you know what's happening
1) adding funny moments
2) trying really cool in explaining
3) amazing editing
4) working with animations too...
Surely you have a bright future, best wishes from me
Thank you for your kind words :)
why are there 2 3s
@@Ardens. "crip" tology lmao
@Scotty1286 peep game👀
bruh you made me laugh, learn, and inspire me to learn coding languages. subbed and liked, Thanks pal
That makes me happy to know, I hope I can keep making you laugh
I definitely agree with the C part. C is _simple_ but it definitely isn't _easy_
True that, you must use 'return' when you declare the function with everything except void. So his program will not compile🥲, pretty easy but it isn't
@@olavmulder1514 pretty sure this is true in old compilers but in the new ones you don't necessarily need a return in the main function for it to compile.
For any other function you do though.
@@kwekker no, for other functions not including a return statement will only trigger a compiler warning in non-void functions.
Not true for GCC. I seldom have the main program return anything and have never gotten a warning.
I like your humor and artstyle incorporated into software videos, subbed!
Thank you! And thank you for your support :)
C#, Hello world became a one-liner in .NET 6:
Console.WriteLine("Hello World!");
This is because:
- implicit usings
- main function not required. You instead can just write code in a file like seen above
You don't have to write namespaces in C#,for example I don't use them so often. You also don't have to write string args I don't use that either
thank for the tip
Lua is an amazing language, it can be simple initially but once you get into luajit (which yes, in it of itself is its own language) is amazing with the speed and abilities that it gives you. not only that, it's multiparadigm and can support OOP via metatables.
É muito legal saber que uma linguagem de programação brasileira é conhecida em outros países
Also you can create addons for Garry's Mod
roblos
I think part of why I was never interested in computer programming in high school was because, as a total novice, making me try to program in C# was like throwing someone who is terrified of the water into the deep end of the ocean. Give me Scratch any day of the week over C#!
What?C# is fairly easy for starting out compared to C++ for example.Although it sure is harder than python
@@ZeroSleap Not the point, C# is indeed "easy", but, at first it can scare u so much, even more than any of the languages shown here (exception of 1 or 2.)
2:14 smoke alarm
i knew i wasnt the only one that heard it
For Java and C#, you don't really require "string[] args" unless you want to take arguments from the console
It’s required for java.
@@mortl2547 in java you need a string array var in the signature of the main method but you can name it however you want e.g. String[] myArgs
This guy is funny I subscribed, thanks for the knowledge
Thank you. Mad love
in c# using .net6 you can now only just type console.writeline("hello world") and thats it because .net6 just builds u a template that has all of that code hidden and ready for use
My second time seeing 'BrainFuck' in a "how to run 'hello world' in different programming langauges”
I am actually learning C in school right now. I really don't think it is that difficult, I mean there are simpler ones but C is definetely doable.
the complexity of C comes from its philosophy of "do it yourself" which kind of forces you to learn how data structures and OS calls work in a low level. As a program complexity grows it becomes harder to keep it cohesive around itself, as again, the language gives almost no tools to keep things modular and tidy and instead rely on the programmer. The good news is that for a language like C there's a very close translation to the machine code that will be eventually executed on the computer, which means there's little to no abstraction in the code and it becomes quite easy to program, at least at a basic level.
the complexity of C comes from its philosophy of "do it yourself" which kind of forces you to learn how data structures and OS calls work in a low level. As a program complexity grows it becomes harder to keep it cohesive around itself, as again, the language gives almost no tools to keep things modular and tidy and instead rely on the programmer. The good news is that for a language like C there's a very close translation to the machine code that will be eventually executed on the computer, which means there's little to no abstraction in the code and it becomes quite easy to program, at least at a basic level.
This is the first video I watched on your channel and I like your humor, you got yourself a new subscriber!
not only he types the 'hello world' stuff. he literally explains it
PLUS HE ADDS "," THIS IS SICK WHAT DA HELL??
*ben_voice* yes
@@electricz3045 haha, i dont get it
@@Markomilicic012 if benvoice = 1
say ("b e n")
Awesome bro , I am watching this video in 2022 and its helps a lot
I’ve been learning C# as my first language. It looks scary, but it’s actually pretty easy and is super versatile.
I am started learning it either. It still look scary to me lol
Never got pased the scary phase. Curently learning python.
Update: I can say I have gotten past the scary phase and I have learned the basics.
C# isn't scary when you learnt java first! Even because C# is basically Java++ lol
Ardens: (coding stuff)
The Fire Alarm: *BEEP!*
Well, this is absolutely amazing! Really well animated, funny, funny, informative and funny. I've subscibed and I wish more people to know your great videos. Good luck.
The way you described what Scratch is used for. lol
As somebody who has used Scratch for a decade, I can say that although kids can use it to make some little things, it can also be used for making advanced projects.
btw in c#, you can import "system"
and not type "system." at the start of the "console.writeline"
edit: in c#, you don't have to write "string [] arg" and you also don't have to write public at the start of main
You can also import System.Console; and just type WriteLine("");
@@malcomthonger wow, i didn't know that
Wow the js in my subscribe button worked! Thank you so much!
just to note: C++ *IS* a superset of C, take C code, throw it in a C++ compiler and it works fine. C++ is just C with OOP injected into it, you dont have to touch OOP to know C++
Objective-C someone said is the C with objects not c++.
C++ is no longer a superset of c - another one said.
C++ compilers will through errors sometimes in C code(depends in the compiler u use).
@@xrafter i experienced no issues with compilers, and Objective-C is just object oriented C for NEXTStep only
You're making everyone more confused than they already are. C++ isn’t an exact superset of C anymore, the two languages have diverged long since.
And "C++ is just C with OOP injected into it" is just a downright awful way to put it. C++ has good support for generic programming and OOP, these two are the primary reasons for its popularity. Modern C++ is all about slowly adopting functional programming patterns. All these features also enabled C++ to have the extensive standard library that it has. All these important af things are lacking in C. And from C's perspective, C is maintained as a timeless language, almost every language has ways to interact with programs written in C and almost every platform has a C compiler. These along with many other traits are the reason why so many APIs are written in C.
We really shouldn’t oversimplify things, this just confuses more people and they end up misinformed.
@@EasonTek
char* a = malloc(10);
char b[5] = "hello";
There, compile that with a C++ compiler.
My point here is that not all valid C codes are valid C++ codes. C++ has strong type checking which, in most cases, disallows direct assignment of two different pointer types (`malloc()` returns `void*` which requires casting to `char*`). C++ also requires the character array to be large enough to store all the characters in the string literal initializer including its embedded null character.
You can’t just throw a somewhat complex C program into a C++ compiler and expect it to work.
Take for example malloc:
char* pChar = malloc(sizeof(char));
Would not work in a C++ compiler because you need to cast it to a char*.
You would need to do
char* pChar = (char*) malloc(sizeof(char));
I like how you said Scratch is the perfect language to start with for kids
Me (I'm a kid btw): ROBLOX STUDIO (Lua), SCRATCH, PYTHON, JAVASCRIPT, HTML, JAVA and more at the same time lol
Shut up shut up just shut up
In Odin, I can write a hello world like this
import "core:fmt"
main :: proc() {
fmt.println("Hello, world !")
}
In D,
import std.stdio;
void main() {
writeln("Hello, world !") ;
}
In Nim,
echo("Hello, world !")
In FreeBasic
print("Hello, world !")
Half if those languages I've never heard of
@@tristanmisja Try them. They are nice languages.
Really helpful, useful & confusion free video👍
I have a request to make a video on difference b/w Machine, object oriented etc languages Concept plus add Html in it too for concept clearing.
Actually, Hello, World! in C# uses Console.WriteLine(); it can be interchanged with the System variant.
(great use of a semicolon; as a clause breaker and end of line)
Hi, the entire Console class exists under the System namescape, the reason he added it in front of the Console.WriteLine() is because he did not import it with a using System; statement, doing one of the two is required to access the Console class and thus use Console.WriteLine(). Hope this helps! (unless you mean something else by your comment lol)
C++ is a superset of C which adds object-oriented syntax and features to C. The thing that confuses beginners is that C++ has overlapping libraries that are optimized to utilize the object oriented classes, data types and new features implemented in C++.
using namespace std;
Note: C++ Isn't a strict superset...
I didn't think that C# would be the hardest, I even thought it wouldn't be included in the list.
Also you can just type : using System;
and after that you can just type Console.WriteLine("Hello, World!");
Yeah or in the new versions just Console.WriteLine("Hello World");
More recent updates made it so that you could just type System.Console.WriteLine("Hello, world !"); and that's it
@@MattSuguisAsFondAsEverrr My favourite update to C# would still be the one that allowed programmers to write List list = new (); instead of List list = new List();
@@ИльяВитцев "var list = new List()" is still the best imo, i always use implicit type (var) except the right side doesn't tell me intuitively what type it returns e.g. "List list = GetDataFromMyFunction()"
I like how you used welsh in the language bit for hello. Hello from wales!
Halfway through this I thought it's a top tier hundreds of thousands subscriber kinda channel. Preety great video dude. Just Subbed. Wishing this channel a great success if you are planning to continue this.
oh no I wish 😂 but thank you that means a lot
Oh wait its not a 100k+ subs channel?
(Some popular applications of some of these languages I seen)
Python - Ren'py for DDLC Mods and other VNs like Katawa Shoujo
Lua - GMOD
Scratch - Undertale Custom Battles (Easier then downloading Unitale and learning Lua or something for a few people)
C++ - Minecraft Bedrock
Java - Minecraft Java
In Latin III and I must say, disappointed by the Latin “hello”. It’s salvete if speaking to multiple people, and salve if speaking to one person
Object-orientation in C++ just basically means that most of the functionality lies within classes. You have a lot of options with classes (inheretence, polymorphism, etc.) which is what is the complicated part of it.
C++ is very mature as it is right now and I would recommend for those choosing between C and C++. C++ has many safety features that prevent users from creating crashes when running their code (which was originally why C++ wasn't very user-friendly).
C++ is only as complicated as it has features. Most of it relies on its libraries which can be complicated because of the amount of safety and features they have. But other libraries make it easier for people to understand and C++ is now getting very close to only needing to write much less code (for example: libraryname.function()) is all that would be needed to run them, alongside all the C++ safety being hidden out of site.
C++ can also use C libraries, can also be used almost like C if need be. Once modules are fully implemented, C++ will also have easy plug-in library functionality like python. C++ is only getting better and now should be a great time to start learning it.
For those choosing between C and C++ I would recommend both
Rust > C++. C is just on it's own.
Whilst C++ does have more safety features than C, it is still pretty easy to write dangerous code in C++.
Actually scratch is becoming my life and making it go off limits is my goal.
If I could make scratch actually extract the compiled code to the computer or make a tool for it. Just like turbowarp packager. But I want it the easy way. So I want the compiler to convert the .JSON file stored in the .sb3 file (which is a zip actually) I could convert this to a JavaScript project and make the project easy for JavaScript programmers and like.. have a little easy tool for them if they like :D
Awesome vid! Learned and laughed a lot, keep up the good work :)
I didn't think people would still be commenting on this 😂 I'm glad you found it educational & entertaining. And I will thank you so much
Buttons can also be made using CSS and HTML by the way.
C++ was created as an addition to C and was originally meant to work in tandem not as a separate language. Also C++ is not high level nor is C# related to C. C# was Microsoft version of Java so you could say it is the Javascript of C. In C# a namespace is a Superclass or to say a Script Library declaration it allows you to inherit other classes.
a c# namespace is like a java package right? or are they different?
and the statement "Javascript of C" is kinda weird imo
@@masterflitzer Yes though not 1:1 it would be its equivalent. with C# the using statement such as Using System; System is a namespace. It allows bringing in classes externally or managing classes internally.
The javascript of C is stating that C# is not the same as C/C++ just like Java and Javascript are not the same though they have similar names.
@@DeathxStrike18 ok then I understood your reference correctly 👍
just thought how are JS and Java related? but that was the point xD
namenspace and package are very similar tho, in c# you write "using" and in java "import"...
"It is perfect for little kids who just started learning how to code". Actually, this programming language says that it's perfect for "Grades 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12". Anyway, it's perfect for my 9-year-old daughter (her 9th birthday was on Twosday).
Edit: I added a dot after "Grades 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12".
bruh TWOSDAY, i'd bet you have twomore
IM SO SORRY NO HARD FEELINGS
I'm glad I choosed to learn JavaScript (and a little python) as they probably are the most simple
Btw, I subbed
C# is more of a clone of Java, _and what you wrote inside of the "namespace" was more similar to Java, wondering why you said that it was similar to C++..._
Yeah, the *better* version of java
yeah c# is java but better
also he did a kinda weird example of hello world, you don't need a namespace and also you normally type "using System;" and then just Console.WriteLine()
the only thing i don't like in c# is that everything begins with an uppercase letter (PascalCase) and java is more pleasant because you only use uppercase letters for new words and begin with lowercase (camelCase)
@@Quique-sz4uj Haha, well,
...literally the only reason why I'm still here using Java are Microsoft's weird naming conventions :joy:
Immediate edit: also, the Visual Studio updates.
OOf.
I really like Phyton. It is easy and you can spell out, what you are writing. Like: if variable > other variable : print("acces grand") else: print("acces denited")
As a Rust user, there's a lot of assumptions made in that example lol
5:09 lol 😂 That made me laugh more than it should have. Take my thumbs up 👍🏻
I'm glad it did and I will 🙌
First time watching your video, i can say that I love it.
Try writing "Hello, World!" in Brainfuck
Nicely done! Great job! Thanks for sharing!
Imagine writing hello world with nothing but transistors
ruby is for example used in the rpg maker. There are possibilities like changing the fighting style into action adventure instead of fighting turns.
0:12 That's kinda really wrong. They're not just different by syntax, but also how the computer understands them. C and C++ for example are being compiled into assembly and then machine code before executing, making them really fast and efficient. Python, Java and C# are being interpreted, meaning at runtime you have a program running called the interpreter, which executes the script line by line while decoding them, making them slower, because they have to be translated while running the program, as opposed to being translated (compiled) before running the program.
I'd also say that Python is not a good language to start. It misses to teach you important concepts in programming such as memory, data types, type casting and much more. I'd recommend to start with C, because it's not as complicated as C++ but provides you with pretty much all important concepts of programming. It is relatively easy to learn and uses simple syntax. Furthermore it has elements of OOP in form of structs. The major difference between a class in C++ and a struct in C are that you can't write functions inside a struct in C. But you could just make a header file and put all the functions in there. But that's just my opinion, also you hear a lot that people who started programming in Python have difficulties later when they want to try other languages, as opposed to C starters, which are already familiar with lots of the syntax of other languages, because many use very similar syntax to C
My opinion on the C vs. Python as a first programming language debate is that if I absolutely knew that someone would be a computer scientist/software developer, I would have them learn C first. You’re right, the understanding it gives you of lower level concepts is very invaluable. Not only does it make assembly easier to learn, but it also gives you a better understanding of what goes on “under the hood” in higher level languages
However, Python is a lot more practical language to learn for most people. It’s great for people who use a lot of math in their jobs but want to learn something with a larger scope than R or MatLab. It’s also a pretty solid generalist language, which can allow beginners to explore other fields without needing to learn another language
C is a lot more difficult to learn compared than Python. It’s totally worth it to learn C first if you’re going to be programming for thousands of hours, but Python is great to learn first for people who might not want to dedicate that much time to it or aren’t sure if they do or not
@@lastsecondshot5779 Fair point
Love your laid-back attitude lmao
5:33 no no no, C++ is LOW level. And by no means are they "kind of like" one another at all.
I learn to program in C, so for me it's easy.
great video Ardens, quite old since it's 2 years old, but great non the less.
2:14 beep
Aw man, i remember the good old days when I made my first isometric 3D racing game on scratch... I should update it tho
just wanna say
Unity is literally the only game engine that primarily uses c#
what do the others use?
@@ses694 Majority use C++ as primary
if not, LUA, or some custom built language (godot lang, blueprints, etc.)
Level 1.5: HTML
How to do Hello, world!
Coding:
𝟷
𝟸
𝟹 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!
𝟺
𝟻
𝟼
𝟽
Result:
Hello, world! (In Serif font)
However, if you remove the vital code, it instantly becomes level 0, because it's just 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!
1. C# is more Java's clone than C++ related
2. In C# 10 you just type System.Console.Writeline("Hello world!"); namespace and other stuff can be obmit
3. In Java there does has "package" with act like namespace in C#, it put right head of your file
4. Kotlin has package-thing too
5. In C++ you can just write like C and it compiles perfectly fine too
6. C# mainly serves for main programming language to develop Window application or some Window key feature, it is in the platform call .NET, and in .NET there are another languages like Visual Basic and F#
7. C# compiles down to Intermediate Language - IL which then interprets directly by Common Language Runtime - CLR, it is not the same as Java Virtual Machine - JVM does
8. C++ is not that Object Oriented Programming - OOP. Ruby in other hand is very Pure OOP, everything in Ruby even a number is an object and has its own method
9. I will put C in 9 and C++ in 10 because the thing call "Header" or .h in them, it very crazy thing that you wish you never knew them before, and thank for existence of Java or C#
Yeah, I know I'm 3 months late but I couldn't resist.
Headers aren't too complicated, you can think of them as files which are directly "copied" into your source files by the pre-processor.
Headers are imported into your source file using the #include directive which basically tells the pre-processor to directly "copy" the contents of the file to the #include line in the source (Hence the need for include guards e.t.c.).
This is useful because it allows for forward declarations of classes and functions which can later be defined in a separate source file which also includes this forward declaration.
This provides each source file the information needed to compile to object code before they are linked in the linking step of compilation.
You don't even need System.Console.Writeline( );
Just:
Console.Writeline( );
as people have already explained in other replies section, modern C# is more like it´s own thing.
I love you!!!!! You didn't use "using namespace std" on the C++ part. Got scared a little
0:06 cancer haha
🍔🍔🍔🍔👶2️⃣3️⃣🍔
🦀🦀🦀🦀🦀🦀🦀-it’s a reference to zodiac signs(I am talking about the crabs)
We're learning C++ in school and they taught us to use easier way of printing something, we use printf(); instead of std::cout and stdio.h instead of iostream.
0:31
"to whatever the f that is"
Hold up, did you just insult C#, the best programming language to ever exist? I'll have you know that my great-great-great-grandfather fought in the programming war for the freedom of C# about 200 years ago. My great-great-great-great grandfather's only source of income came from writing books on the finer technical details of C#, and it's been that way in the family ever since. It may seem difficult or high-level to foreigners, but in fact it's a beginner-friendly language if you use it with Unity. I tell you, Unity is the country's best company. Most of my extended family found employment and friendly faces in Unity. The C# government constantly provides subsidies despite Unity always making a profit, so they have some of the cheapest goods on the market. It's unconstitutional for anyone to even MENTION filthy programming languages like Python or *shudders* Scratch.
Oh you want to know the history of the great C# Empire? Well, sit down.
After the Great Programming War, the C family was split into several smaller states who, despite being extremely similar, were all at constant war. In its darkest moment, on the verge of defeat, the fledgling C# nation was taken under the wings on the magnificent Javas. With the help of the Javas, the C# army pushed back the C++ and C invaders. They now reign supreme over the Central Programming Lands.
So yeah that sums up why C# is a great programming language and why advanced programmers should definitely use it. Any questions?
ratio
Did you just spam click the word recommendations on your keyboard 😂
@@afraid2letgo ratio what? and did you just liked yourself
@@XunnnD-hz4pi someone's mad
@@XunnnD-hz4pi No actually, I made the entire story on the spot.
3:49
Everything's perfect, rather than that mouse pointer on the middle right side.
C# and C++ have nothing to do with each other. C# is high level and C++ low level because you have to take care of the memory management yourself. And C++ builds on C, it's basically C but object-oriented.
ahhh okay..I don't know when that happened but C++ was considered a high level language because it's easily human readable
@@Ardens. C# is microsoft Java
"C++ is low level because you have to take care of the memory management yourself"
No, you don't really have to manage everything yourself. We have smart pointers now (look up `std::unique_ptr` and `std::shared_ptr` which were added in the standard over a decade ago).
Also, C++ is not a "low-level language". Compared to assembly, it is definitely a higher level language. It just has access to lower level features so you can manually optimize whenever necessary.
The idea of a language level can be considered to be based on the amount and kind of abstractions a language can place on top of any operation.
A long time ago, C++ was called "C with classes". That's not true anymore. It has evolved over time. They even changed the meaning of `auto`. Any remnant of C is now mostly just for backwards compatibility.
C++ isn't necessarily object orientated, as it is a multi paradigm language. C/C++ are kind of inbetween high and low as they are compiled languages and a lot of stuff is done for you by the compiler, but they are capable of low level function, but for the most part they are both low-level languages.
@@Ardens. C++ is more like a medium level language, it is readable, but have to manage memory yourself
u forgot to put return 0 in the c "hello world", if ur funtion is a int type u must return something
C++ is very different from c, but the reason why people call it a superset is because any program written in c is also valid in c++
actually that's not really true
to cite just a few c features off the top of my head that won't compile in standard c++:
k&r function syntax, variable length arrays, _Generic, _Complex, implicit casting from void *, ...
then you run into a lot of subtle differences in linkage rules etc.
@@yjlom That's what I call "close enough"
In batch script :
:: Normal method
@echo off
echo Hello world!
pause >nul
:: Easy method
echo Hello world!
pause >nul
:: So its easy lol
:: Because batch is cmd script :D
:: Im learning batch for 4-5 months ;)
If you want to write Hello World in BASIC you do this:
10 PRINT" HELLO WORLD!"
20 GOTO 10
this is how all versions of BASIC work unless you are using some super strange version that I have never heard of also some versions of BASIC have options for lower case
for c# you can grap a different approach like this one:
`using System;` and then you don't have to write that extra System. thing, so the hello world program with this approach is gonna look something like this:
using System;
namespace Program {
public class HelloWorld {
static void Main(string[] args) {
Console.WriteLine("Hello, world");
}
}
}
Haskell:
main :: IO ()
main = putStrLn "Hello, world!"
Functions in haskell have the type signature on one line, and the start of the function body on the next, with the name and any inputs, a =, and then the function body. The IO () type basically means that it performs an io action but outputs no data.
You could also define main as `print "Hello, world!"`, but print converts its argument to a string before printing it which isn't necessary here as hello world is already a string.
Every dislike is from a real programmer who does research, uses modern best practices, and doesn't tell everyone who didn't think that your content was good to "**** off." Don't do that, it's mean.
“All programming languages are the same logically”
*laughs in esoteric programming languages*
*laughs in assembly programming languages*
Fun Fact: Lua is also the coding language that roblox uses.
C++ is multiparadigm, less OOP. Java is strictly OOP. You can write strictly procedural code in C++ and if you try hard enough even functional. You can’t do so in Java.
Assembler(NASM):
section .data
msg db "Hello world!", 0xa
len equ $-msg
section .text
eax,4
ebx,1
ecx,msg
edx,len
int 80h
mov eax,1
int 80h
2:03 "but this isn't a tutorial video, learn it on your own"
*proceeds to teach us how to run "Hello, World" in 10 different languages*
that's funny lol, thanks for the laugh
@@Ardens. OMG YOU ACTUALY REPLIED, BIG FAN
Very entertaining to watch tho some parts weren't right but it is what it is still good vid
yes, I was negligent, I'll do better. But I'm glad you still like it
4:34 A SWEAR HUH! YOU SHOULD BE CANCELED!
4:40 no axing allowed.
C# isn't as bad as it's made to sound; sure there's some issues but they're easily addressed. Instead of including all that other nonsense (which confuses me too) you can just do Console.WriteLine("Hello, world!");
That works in newer versions and you don't even have to include the namespace or anything. Also you don't have to include what system you're using, unless it's a system that isn't a "default," like Collections or Drawing.
I code using scratch I know from experience it makes coding easier but eventually it’s so complicated to do things that you should just learn to code it, it makes coding easier but making it actually work harder