7.1 AN INTRODUCTION TO CODING

7.1 কোডিঙৰ পৰিচয়

Have you heard the term “coding”? The term coding has received an enormous amount of attention in recent times. We often hear the term in several places including advertisements on television and others. Here we will learn about coding and its importance in today’s world.

আপুনি “কোডিং” শব্দটো শুনিছে নেকি? কোডিং শব্দটোৱে সাম্প্ৰতিক সময়ত যথেষ্ট মনোযোগ লাভ কৰিছে। আমি প্ৰায়ে দূৰদৰ্শন আৰু অন্যান্য বিজ্ঞাপনকে ধৰি কেইবাটাও ঠাইত শব্দটো শুনিবলৈ পাওঁ। ইয়াত আমি আজিৰ পৃথিৱীত কোডিং আৰু ইয়াৰ গুৰুত্বৰ বিষয়ে শিকিম।

Before understanding coding, let us first have a discussion on “What does a computer understand?” and “How do we communicate with a computer?”. We have seen in Chapter 1 that a computer runs on electricity and operates on discrete voltage levels: 0 and 1. We have also learned that every computer has a processing element, known as CPU

কোডিং বুজি পোৱাৰ আগতে, প্ৰথমে আমি “কম্পিউটাৰে কি বুজি পায়?” আৰু “আমি কম্পিউটাৰ এটাৰ সৈতে কেনেদৰে যোগাযোগ কৰোঁ?” ৰ ওপৰত আলোচনা কৰোঁ আহক। আমি অধ্যায় 1-ত দেখিছোঁ যে কম্পিউটাৰ এটা বিদ্যুতৰ ওপৰত চলে আৰু পৃথক ভল্টেজ স্তৰত কাম কৰে: 0 আৰু 1। আমি এইটোও শিকিছোঁ যে প্ৰতিটো কম্পিউটাৰত এটা প্ৰচেছিং উপাদান থাকে, যাক চিপিইউ বুলি কোৱা হয়।.

Every CPU understands only a set of instructions or commands. These commands along with some other internal details of a CPU is known as instruction set architecture (ISA). After under standing a command, CPU performs the work specified in the command with the help of its internal circuitry. Understanding a command by the CPU is also known as decoding an instruction. If we want to communicate with our computer or if we want our computer to do a work, we must give the command that is understandable by the CPU of the computer. These commands are actually some sequence of binary numbers, expressed in hexadecimal format.

প্ৰতিটো চিপিইউয়ে কেৱল নিৰ্দেশনা বা আদেশৰ এক সংহতি হে বুজি পায়। এই আদেশবোৰৰ লগতে চিপিইউ এটাৰ আন কিছুমান আভ্যন্তৰীণ বিৱৰণক নিৰ্দেশনা ছেট আৰ্কিটেকচাৰ (আইএছএ) বুলি কোৱা হয়। কমাণ্ড এটা থিয় হোৱাৰ পিছত, চিপিইউয়ে ইয়াৰ আভ্যন্তৰীণ বৰ্তনীৰ সহায়ত কমাণ্ডত নিৰ্ধাৰিত কামটো সম্পাদন কৰে। চিপিইউৰ দ্বাৰা এটা কমাণ্ড বুজাটোক নিৰ্দেশনা এটা ডিক’ডিং বুলিও কোৱা হয়। যদি আমি আমাৰ কম্পিউটাৰৰ সৈতে যোগাযোগ কৰিব বিচাৰো বা যদি আমি আমাৰ কম্পিউটাৰে কাম এটা কৰিব বিচাৰো, আমি কম্পিউটাৰৰ চিপিইউৰ দ্বাৰা বুজিব পৰা কমাণ্ড টো দিব লাগিব। এই কমাণ্ডবোৰ প্ৰকৃততে বাইনাৰী সংখ্যাৰ কিছুমান ক্ৰম, যাক হেক্সাডেচিমাল ফৰ্মেটত প্ৰকাশ কৰা হয়।

Coding means writing these commands to instruct our computer to do some meaningful work. The work can be simply to display our names on monitor, adding two numbers or to move a robot in a direction, etc. Coding is also popularly known as programming. We will use both the terms (coding and programming) interchangeably in this book.

কোডিঙৰ অৰ্থ হৈছে আমাৰ কম্পিউটাৰক কিছু অৰ্থপূৰ্ণ কাম কৰিবলৈ নিৰ্দেশ দিবলৈ এই আদেশবোৰ লিখা। কামটো কেৱল মনিটৰত আমাৰ নাম প্ৰদৰ্শন কৰা, দুটা নম্বৰ যোগ দিয়া বা এটা ৰবটক এটা দিশত স্থানান্তৰ কৰা ইত্যাদি হ’ব পাৰে। কোডিংক প্ৰ’গ্ৰামিং বুলিও জনা যায়। আমি এই কিতাপখনত দুয়োটা শব্দ (কোডিং আৰু প্ৰ’গ্ৰামিং) সলনি কৰি ব্যৱহাৰ কৰিম।

Till now, we have been using computers to do different kinds of work on it. For example, playing a game, making a power point presentation, drawing pictures, etc. In those cases, we simply use the applications developed by others and we are the users of it. In this chapter, we will have a look from the other direction.

এতিয়ালৈকে, আমি ইয়াৰ ওপৰত বিভিন্ন ধৰণৰ কাম কৰিবলৈ কম্পিউটাৰ ব্যৱহাৰ কৰি আহিছো। উদাহৰণ স্বৰূপে, গেম এটা খেলা, পাৱাৰ পইণ্ট প্ৰেজেণ্টেচন কৰা, ছবি অংকন কৰা ইত্যাদি। সেই ক্ষেত্ৰত, আমি কেৱল আনৰ দ্বাৰা বিকশিত এপ্লিকেচনবোৰ ব্যৱহাৰ কৰোঁ আৰু আমি ইয়াৰ ব্যৱহাৰকাৰী। এই অধ্যায়ত, আমি আন দিশৰ পৰা এবাৰ চাম।

If we need to build an application that runs on a computer and is used by other users, how can we proceed? Programming or coding deals with this particular aspect.

যদি আমি কম্পিউটাৰত চলি থকা আৰু আন ব্যৱহাৰকাৰীৰ দ্বাৰা ব্যৱহৃত এপ্লিকেচন এটা নিৰ্মাণ কৰাৰ প্ৰয়োজন হয়, আমি কেনেকৈ আগবাঢ়িব পাৰোঁ? প্ৰ’গ্ৰামিং বা কোডিঙে এই নিৰ্দিষ্ট দিশটোৰ সৈতে সম্পৰ্কিত।