Wednesday, 12 August 2020

What is Coding, first steps {absolute beginner}

What is Coding?

Hey Guys, i am Ankit and Today, we are going to talk about coding. Specifically, I’ll answer the question: What in the world is coding? We’ll also cover a little of what happens when we code.

Before you read on, though, I want you to right-click in your browser window and choose the “View Page Source” option.

What is coding?
To know what is coding you must have to know about page source because it is all about language, Now How to view page source: right-click anywhere on the page, and select “View Page Source.”


What is Coding
What is Coding


when you do that, you get a view of the web page code. Which is to say that, by peeking behind the curtain, you’ve now seen the language that tells your computer how to make this web page look as good as it does.

What is coding? and What is Code? Here’s an example of the HTML, CSS and JavaScript code running this website (yes, the one you are on right now).

<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<!-- SEO Meta Tags -->
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<b:if cond='data:blog.pageType == &quot;item&quot; and data:blog.url == data:blog.homepageUrl'>
<b:else/>
<b:include data='blog' name='all-head-content'/>
</b:if>
<title>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<data:blog.pageTitle/>
<b:else/>
<b:if cond='data:blog.pageType != &quot;error_page&quot;'>
<data:blog.pageName/> | <data:blog.title/>
<b:else/>
404 | <data:blog.title/>
</b:if>
</b:if>

</title>

This is Just an example of code of my website, but if you use an .xml file that is in the form of Zip Code.
Now for the The first time I actually looked at the code in a browser window was revelatory for me. Here was the internet in the internet’s own voice! I didn’t understand most of it, but I could pick out snippets of words and phrases that looked familiar. There were a few font names that I recognized, and I understood pixel sizes more or less. The rest of it was alien to me. Here was the language my computer spoke, or so I thought. Computer can't understand our language do it is used as code language or zip code.

If you’re planning on learning to code, it’s worth thinking through the mechanics of coding. Knowing what exactly is happening when you code, what it means when we say someone is coding, what the difference is between coding and programming, what languages you may end up coding in, and how to get started coding, will help you be a better coder.

Computer Coding for Beginners.
There’s a lot of hype around coding, so let’s start by clarifying what coding isn’t. I mentioned above that when I first saw the source code of a web page, I thought that I was looking at the language my computer spoke. This is a common way of explaining what code is, but it’s not exactly true.

Your computer doesn’t understand the nuances of language. In fact, the only terms your computer understands very well at all are “Yesor “No.”

Imagine you are building a bridge with a group of engineers. You’re on one side, they are on the other, and you need to communicate to finish the project. The problem is, your phone has died, and your radio only works one way. All you have to communicate with them is a flashlight. One flash for yes, two for no. It will take a while but, eventually, the bridge will be built.

This is how a computer communicates with people. The language the computer speaks is binary code, a mathematical language of ones and zeros. Just like the flashlight, there are only two options. The computer understands “on” and “off,”  and nothing else. So unless you’re typing strings of ones and zeros into your text editor (which you’re not), you’re not really writing code in the computer’s language.

But if the code isn’t written in the computer’s language, what are you doing?

Computer Code is a Language:
Think about writing code like this. You don’t speak binary, and the machine can’t come close to understanding human languages. So, for you to tell the computer what to do, you need to design a translator that can act as an intermediary. This is the purpose of code. Code is a  form of writing that isn’t binary, that is easy to learn and interpret for humans, but that the computer can still understand.

For most of the programs you’re likely to work on, the code you write is actually a step removed from the binary code that the computer will process. You’ll write in a code that pulls from human language. Programs built into your computer then translate what you’ve written into binary. It’s like if you needed to speak to someone who in Mandarin, you only know English, and the only translator you could find spoke only Mandarin and French. You would need another translator to translate from English to French and then the first translator can translate French to Mandarin, hopefully without meaning getting lost in the process.

What sort of blows my mind about all of this is that it somehow works. We have programs translating programs for a machine that only speaks binary. This is an insanely complicated process, yet here I am typing human words on my binary speaking computer.

There’s a lot more to it, of course, but these are the essential things to know before you start a conversation with your computer through code.

Coding vs. Programming: What’s the Difference?
When I was growing up, my dad and all the people he worked with were computer programmers. This framed how I understood people who wrote code for computers for a long time: They were programmers.

More recently it seemed like there was a shift in either the terminology or the industry. Suddenly, people who wrote for computers were coders. This shift has prompted me to wonder whether there is any difference between what programmers do and what coders do.

Many say that there really isn’t a difference between a coder and a programmer at all. It’s a difference in terminology rather than activity. If anything, in my humble opinion, saying you are a coder is slightly more general than saying you are a programmer. Since to me the word programmer is often associated with computer programming (and computer science) courses at a university. Whereas, coding feels like something everyone can do.

Jonah Bitautas, the product designer behind Cards Against Humanity,  makes an interesting point when he argues that there is a real difference and it’s rooted in issues of scale. Essentially, a coder is someone who writes language for computers. A programmer is someone who oversees the writing of a whole program — that is to say, an entire project’s worth of coding.

At the end of the day, there is no formal definition of a coder or a programmer. And so, it’s completely fine to use these terms interchangeably: you can say “I’m a coder” or “I’m a programmer,” and no one will judge you for it. Unless during the rare occasion on Hacker News — the programming news website where seasoned (and opinionated) coders hang out. Sure, they might say something. Just brush it off and keep on moving on.

Programming vs. Coding: What’s the difference?
Types of Coding Languages;
There are dozens of coding languages. A few languages are all-purpose (or multipurpose), but most serve a specific function. CSS, for example, primarily functions to make things look pretty. JavaScript, a relatively old language, exists to make web pages more functional.  There are specialized languages that are great if you need something super specific, but all you really need to get started are a few common ones.

HTML
What is Coding | HTML
What is Coding | HTML



What is Coding | Learn to Code in HTML [Hypertext Markup Language].
When I asked you to open the source code for this web page, it took you to lines of code written in HTML. Short for Hypertext Markup Language, HTML serves as the bones of the Internet. It tells web pages what should be displayed and where and how they’ll fit within a given style sheet. It also tells your browser where to look for content like images and videos that you may want to include in your project, as well as where to find the style sheet you’re working off of.

One thing to be aware of: HTML technically isn’t a “programming language” because it doesn’t use logic based expressions like, let’s say, Python does. HTML is a markup language — but much like the debate of coder vs. programer vs. developer  — you’re unlikely to be faulted for calling it a programming language, especially if you are new.

CSS:
Learn to code in CSS, CSS is the stylesheet. If you open up a CSS file, you’ll see a lot of references to font families, colors, and font formatting styles (like bold, underlined, or italics). When your browser loads a page, the HTML tells it “Make this part of the page look like a header. OK?” It also says “Here’s where to look to understand what a header should look like.” This will always be a CSS file.

Javascript:
What is Coding | JavaScript
What is Coding | JavaScript


What is Coding | Learn to Code in JavaScript.


Javascript is the language that brings interactivity to a web page.  When you click a button on a web site, for example, it’s JavaScript that makes the button look like you’re clicking it. The controls for video players on the web and animations are also often Javascript.

Ruby & Python:
What is Coding | Python
What is Coding | Python


What is Coding | Learn to Code in Python and Ruby.

We actually already have a baller post on the differences between Ruby and Python, but the short version is that these two programming languages are often used to develop web applications.

Which is to say, they create programs that allow web pages to do things at a high level of interactivity. If you want to, for example, build a bot to create an automatic payment system for your clients, you’ll probably use one of these. They’re great programs to learn to work with because they are extraordinarily versatile and there is a lot of extant code for you on the web to begin playing with this.

How do you learn to code? Learning to code is much like learning a foreign language. It's a skill that takes practice everyday! 
Learning to code is much like learning a foreign language. It’s a skill that takes practice everyday!

How to Learn to Code?
There are a number of parallels between learning to code and learning to speak a new (human) language. The most frustrating similarity is that, as with learning any language, you have to spend time practicing!

Some people who are just natural coders, sure, just as there are people who can speak Italian after listening to a couple of operas. For the vast majority of us, though, learning to code is a process of trial and error. Coding is a skill. It takes time, and it helps to have guidance.  

Luckily, there are many affordable online courses for learning to code! If you’re new to coding and don’t know where to start, I suggest Programming For Non-Programmers. This course will give you the vocabulary and perspective necessary to make sense of the coding world.

If you’re ready to dive straight into learning to code, Learn Python. It’s what all the cool kids are doing these days. Python is a great language that you can use to build nearly any website or app you’d ever want to make. Don’t believe it? Google, Uber, Netflix, and many more are just a few companies using Python.

I hope you like the Post, See you in the next post. Bye!

Tuesday, 11 August 2020

Introduction to Python.


source:python.org

Hello everyone and welcome to the Python course that we're going to be doing. Now, this course is going to be aimed at somebody who may not have basic knowledge about what a programming language is, but this would be your first programming language, and this is a great programming language to start with.

It does have some limitations and sometimes this is not the right tool for the job, but a lot of times this offers people who have no experience programming a really great way of understanding,what a programming language is and how to use one.

So, the main differences between Python and other languages like C++, or C, or Java, is that Python is built around two main focal points which I believe are code readability and simplicity. So, we're going to jump into the language here in a few Posts, but we need to do a few things first. First, we need to discuss what Python is,and then we need to get it installed, and then we can start discussing you know what's an interpreter, how do you run a Python script, and then get into the language itself. Now the language is different but it's easy, and once we get past an understanding of how the programming language works, and the syntax, and all the different stuff you can do with it, we're going to move on to actually programming real applications, and showing you guys different practical applications of the Python programming language.

So, for instance, we're going to be building a website, we're going to be building a web scraper, and a graphical utility...we're actually going to be building multiple graphical tools because there are a few different graphical, or GUI, GUI, whatever you want to call it, there's a few different frameworks for Python that we could use.So we're going to explore three of them. So, right off the bat here's a fun fact,if you didn't know Python is actually named after Monty Python, who's made some great films. So, if you haven't seen Search for the Holy Grail or The Life of Brian, go do it. They're great movies, which is completely beside the point.So, Python is actually a pretty old programming language. It was first introduced in 1991 which makes it 25 years old. There's two current versions.Now this may be confusing as well. So there's a Python 2 series, and there's a Python 3 series. Python 2 is currently at 2.7.11, and the 3 series is at 3.5.1.

Now we're going to be using Python 3 in this course, however Python 2 shouldn't be much different. If afterwards you want to explore using Python 2 that's completely acceptable. So, now as I said Python is based around simplicity and readability, and this means that when you look at Python code it's all indentation based. So if you looked at another code like Java, you'd see a lot of curly braces, and brackets, and a lot of things that are just there to confuse the novice programmer. Python is based on indentation, so you don't need to wrap blocks of code in curly braces, and you guys will see what I mean coming up in the in the next few Posts. So, that's all we're going to talk about today.

I hope you guys enjoy this course and find it useful. There's a comment section to the right for each posts if you guys ever  feel that you're not too sure on something that I explained, or maybe you had some input in addition to what I explained, feel free to use that. So, yeah,let's get started!

 Hello everybody and welcome to this online Python programming course. Now before we begin with the actual coding,let us talk about a few things, such as for who is this course, and what we will be doing in this course.

First of all, what we are going to learn in this course is Python 3. Now let's get that out of the way, right away. The reason why we are using Python 3 is because it is 2019 today, and basically next year Python 2 will be going out of date. Basically, it will not be in usage any more. Therefore, what we want to do is we want to learn Python 3 programming,which is similar to Python 2. If you had an experience before with Python 2,the syntax is rather similar. Except in some functions and some different things that we're going to cover of course, but most of the time it is rather similar. We are going to use Python 3, as I said, because that is something that is going to be used next year. Basically, every Python 2 platform will have to update itself to Python 3, and therefore we are going to download Python 3.

But, more about that in the next lecture. First of all, let us talk about for who is this course. Well, for example, if you are a student and you want to learn some Python programming, this will be a perfect course for you. Because we're going to cover everything from the very beginnings of Python programming, to some more advanced stuff later on. Now nothing really too advanced because this course is mostly aimed towards beginners. We are going to cover everything from the basics in great detail, so you can understand Python programming at a whole other level. Now of course even if you want to make this your career and become a Python developer, or basically a web developer with Python, you can take this course and you will learn a lot from it. Now we know that there are a lot of subjects covering Python, such as web developing,scripting, networking in Python, writing simple programs, writing something that will automate different tasks, and so on and so on. We will cover all of these things. But, first of all, we will be downloading Python 3 for our Windows 10 machine, and also for Ubuntu and Mac OS.

Now I will show you how to download for the Ubuntu and Mac OS, or I will show you the commands that you will use to download, but we will be mostly coding in the Windows 10 environment. As you can see, right here I have our virtual machine, Ubuntu virtual machine, which we are going to probably use later on for something. Such as, for example, networking where we are going to need two machines to communicate with one another. But, as I said before, we are mostly going to use the Windows 10 environment. Now in the process of installation of Python 3, I will show you on all three platforms how you can download Python, and how you can start it up. So that will be about it for this introductory video, nothing really more to say right here.

Let us get right into programming. And in the next lecture I will explain a little bit about Python,what that is, and we're going to also download Python 3 for our Windows 10 environment. Hope you enjoyed this first lecture, and I hope I see you in the next tutorial.

If you just, want to subscribe to my, newsletter so that you don't Miss my future tutorial Post just go down of this blog and subscribe with email to get all News and as always let, me know in comment below, when you thought of this Post i'm Ankit, from RajCoding, and i'll see you in the next Post? Bye!