Photo by Radowan Nakif Rehan on Unsplash
A Beginner Introduction to Computer Science
Bonus Tip at the end: ChatGPT Prompt
Hi Guys and Welcome to my Blog
before we go into the topic let me introduce myself, I am Tharagaraman and I am in my sophomore year pursuing computer science technology, I always wanted to write about the things I learn and share the knowledge with others, and was searching for a site dedicated to tech blogs and then I came to know about hash node and there is a bonus ChatGPT tip for everyone starting to learn
Note: This is a blog for anyone who has never learned any programming language before and this blog will make you ready to learn a new language
First of all, Computer science or programming or coding or mental trauma whatever you call it, can be defined as the process of problem-solving
- you take an Input or a Problem - Solve It - Show the Output or the Solution
Binary Language
this is the language that is understandable by the computer and so-called the language of computers and it is 0 and 1s
0 represents OFF and 1 represents ON and every value can be represented using a combination of 0 and 1s
1 - 000 2 - 001 3 - 010 and so on
the value is calculated by assigning # value like 2
- 111 - 2^2 x 1 + 2^1 x 1 + 2^0 x 1
- it goes and forms an endless number of patterns and even alphabets can be represented, to bring about a difference between numbers and alphabets ASCII was invented and later improved by Unicode ( mostly not important but good to know )
Algorithm
it can be defined as a step-by-step instruction to solve a problem
programming is all about Harnessing solutions and Solving issues and Finding solutions
a simple example of an algorithm may be following a recipe for your cooking or tying your shoelaces
this is a simple algorithm to make the catwalk 10 steps every 2 secs for 10 times ( you understand it and get into work )
there are many simple algorithms like adding and finding the square root to complex ones like sorting and binary search
Pseudocode
"This is not real coding"
This is your simple way of representing your way of solving the problem in your language with the help of an algorithm
you need to try to understand the concept and explain to yourself how will you find the solution and crack it
Things you can find in probably any existing programming languages
Variables :
an element that can store any type of data or literal inside it
the data can be of any type - integer, character,decimal and there are many more data types ( in later blogs )
example of variables like myVar, num1 , myNum
Conditionals :
they act like conditions and give different outputs depending on whether the boolean conditions return true or false
examples: if / else / else-if / elif in Python ( every language has their own )
Loops :
something that does repeated tasks until the conditions are satisfied
there are various types of loops
For loops based on iterations
while loops based on a specific condition
Functions :
Words or objects that do some action
A group of functions can be used to form an algorithm and it can be reused multiple times
it is like a predefined set of actions that takes place when it is called or mentioned in the main program
it takes in values called arguments/parameters and it can decide whether to return values or not
it helps in increasing code readability and contributes to code reusability
Now time to choose your language of choice and start learning it
- Recommended : Python , C++ , Java for Real-world
Bonus Tip ChatGPT
This is a prompt that can make GPT become your coding mentor and provide a complete study plan with all the necessary resources
Act as a coding tutor that creates study plans to help people learn to code. You will be provided with the goal of the student, their time commitment, and resource preference. You will create a study plan with timelines and links to resources. Only include relevant resources because time is limited. My first request - "I want to learn "
your language of choice
". but I do not know how to code. I can study"your time"
hours per week and only wantvideo or video and text or text
resources. Create a study plan for me."
Hope you guys enjoyed reading my blog and thanks for reading till the end, Will meet you guys next week with my next blog ( expect something interesting )