What is source code?

Edwin Diaz
A free video tutorial from Edwin Diaz
Web Developer & Premium Instructor - 700,000 students
4.5 instructor rating • 47 courses • 785,774 students

Learn more from the full course

Python for Beginners - Learn Programming from scratch

Python For Beginners : This course is meant for absolute beginners in programming or in python.

02:36:36 of on-demand video • Updated June 2018

  • To learn the python language
  • To learn the CORE skills to understand any programming language
English Welcome back my students I hope you're having an awesome day. All right so this is a really good day to program. So the question in this lecture is what is source code. All right some of you already know that source code basically each is the code that we use to program right but source code is just plain text. You don't need anything else but text to write a program. So that means that you can use any text editor you want. No power for Windows or even text edits for Macintosh. So right now you can grab you know pad start writing any text you want. Right. Any syntax for any language out there and save it in. Now you have created a program that's just an example so you can write any program you want in your notepad. Right now if you wanted to if you knew how to do it so now you might be asking yourself so. I mean what is the difference between a Java program right writhing in a notepad or a Ph.D. program . Well the difference is very simple. It's the extension extension of the file. That's how your computer will know what type of program it is your computer or even the browser out there or a server. So for example to write a web page I will give it a name I will give our name and then end the file with an extension of that amount. This will prompt your computer to open up the browser. Right. In this example here is just a name you can name it whatever you want or you have to be very careful with the extension that you end the file with. If your computer doesn't have the program to open up the file it will prompt you to either buy a program to do it or even take it to the App Store whatever it is that your computer or whatever operating system you're using it has a built in feature to look for a compatible program to open up the file. If you are creating a text file in Notepad for example you'll file where we'll have an extension of T H.T.. Now you and I see the extension because your computer automatically hides the extension for you to be able to see the extension you have to turn it on if you want to do that. You can go ahead and google it. Show extensions in files or something like that. According to your operating system. So for Windows 10 you could say Windows 8 you could say how to show heating extensions in files and that search will actually give you some instructions on how to do that. So if you want to create a BHP application you end your file with BHB pie and with Dopp Poppy why Java with di. J. V-A Java right. And javascript with a dodgy. Yes. Right. So this is how you do it. Now one thing is that you don't need a word processor so be careful out there if you think that you can code in Microsoft Word or pages a Macintosh you cannot do that. Programs don't need to be bold and they don't need to be. You know it's structured in such a way that he even has colors. We don't need that in programming in any program that you try creating something like this like Microsoft Word or web pages is going to crash. He's not going to even give you the chance to execute it. All right. So be careful with this. Now let me show you similar programs in languages. Right. So mph be to print the word Hello. You would write something like this. This is a function cold front. You put your parentheses inside the parentheses you have two chords on the side you can put single quotes if you want. And then you write the word gets all right and this is what it is doing on ph B This will show you the word hello by itself on the screen. Now in Python you do the same thing. An own language called newa. You also do the same thing you see there are many similarities out there in different languages. Now if you want to get a little bit more advanced there are languages out there there are a little bit more difficult to do this. So for example in C you would write something like this just to say hello and your program I know them may look complicated but it's actually easier than you think in a language like Java you would write something like this. Right now we have tools out there out there as programmers to make things easier for us. We have something called programmer's text editors and IDs integrated development environments. All right. So programmers that's editors look like this is a program that highlights that texts let's say for example specific functions. It will give us an advance replacement feature. It would do a whole bunch of things for us that will make it a lot easier to program. All right. Now we also use IDS these are actually a lot more powerful and they look like this. You can do a lot more things in a ID but you first have to find out what type of language you're going to be code coding in. So for example if let's say you want to call in. In Java there is a cold net beams out there and one called Eclipse and each of them has a plug in that you can use that you can install in the ID and then you can write Java a lot easier you install the plugging or you configure the ID for Java for example. Right. All those lines out there for you. Starting any program even it would even put the extension there. So even put it even puts extension. So that way you don't have to write the extension of the file every time you create one. So it's really cool out there. All right. There are many tools that we can use to make things a lot easier so don't just care. All right. You're in good hands here because you're going to be learning the core skills that you need in order to programming any language. I'm going to show you everything that I can in this course. Thank you so much for watching and I'll see you in the net lecture