Quick Start Guide — Tasks to cover while learning a programming language
Remember the time when you first started learning to program. You might have started with C, C++, Java, Python or any other language but the idea was to first learn the basics and try them out with different tasks.
In this article, we will try to discuss all the fundamental tasks which you should try hands-on. Once you complete the following tasks in the language you are trying to learn, you have a great chance to get to a point where you can start being productive in real-time projects.
Print Hello World
It is not just about printing the ‘Hello World’ in the console but it means that you can create the project and make it up and running without any errors. This lets you get started with the project setup and run configurations.
Data Types and Structures
Going through the available data types and structure will greatly help you with how you will use the language. Knowing data types and structures will help you to choose the right component in the given situation while writing the code.
Conditions and Loops
Try to create small tasks covering all the conditional components and the loops available in that language. That will give you a fair idea of the basic building blocks of the language and you will be to make the decision when to use which component.
Making the API Calls
Create a small client program and call any free API from it using first the core code of the language and then using any popular library of that language. You must know how to make the API calls in the language you are learning. You should try both synchronous and asynchronous API calls.
Implement an API
If you are trying to learn a server-side language then write a program to implement the APIs. You should get used to of at least two APIs with GET and POST type HTTP methods. This would help you when you will work on any project.
JSON Parsing
Since JSON is widely used while dealing with APIs, this is the most common task that a developer has to do many times. It would be a good practice task to parse a complex JSON object to understand how the language supports parsing.
Working with Database
In one way or another, you will come across the use case where your application will be talking to the database. It would be a useful task to try with the implementation of database connection and transaction. You should try to write the code for both SQL and NoSQL database use cases.
Asynchronous Tasks
It is always useful to know how to execute a particular task asynchronously. You will come across such requirements sooner or later, so better get your hands on the implementation of at least one simple execution.
Scheduled Jobs
This is also a frequently required task in applications. Many times we have to repeatedly execute a task at a given frequency and hence it would be useful to know how the language or framework can support that implementation.
All the tasks mentioned above should help you to get the knowledge of basic components and you will have the hands-on experience of the most common tasks which are required in real-time projects.
Find the list of the tasks below for quick reference.
Please feel free to mention any task that should be added to the list.
- Hello World…
- Data Types and Structures
- Conditions and Loops
- API Call
- Implement an API
- JSON Parsing
- Working with Database
- Asynchronous Tasks
- Scheduled Jobs
Happy Learning!