Who will be after us

Who will be after us

Yes, our children grow up, become older and the question arises – who will they be and what knowledge can we pass on to them. Since the majority of people present here are related to IT, I am almost sure that most of them believe that the children will also go into IT.

In connection with this, I had a question – what can the current school education offer?

My son is learning Python at school. How is the learning process organized? Small introductory lessons and implementation of a large number of examples from Yandex context – https://official.contest.yandex.ru/contest.

Tasks are dry for teenagers and do not excite the generation that grew up on beautiful pictures of Tick-tock and You Tube (no matter how we do not have a negative attitude to this – but it is a fact). As a result, children do not have a burning desire to complete tasks and, worst of all, do not get satisfaction from the work done. And how wonderful it would be if the written code brought joy and the results of work could be shared with peers.

Remember your emotions when your program hit the top, or a user wrote to you that your work helped him in something?

Therefore, when the question arose about the topic of the computer science project, after discussing with my son, we decided to write a Telegram bot in Python to receive information about the school schedule. The logic of the choice was based on the fact that, in addition to the knowledge gained, the result will bring real benefit and respect from peers.

Vasya the robot

The advantages of the Telegram robot are that it does not require installing the client on the end devices – this simplifies deployment. The audience of Telegram users is several tens of millions of people who use completely different devices with different operating systems.

As the library that implements the Telegram interface, I chose python-telegram-bot. It seemed to me the most attractive from the point of view of the ease of writing code, the presence of examples and a friendly community that helps to solve the problems that arise. I will not describe the process of creating a Telegram bot – many people have already done it before me.

A simple search for site:habr.com python telegram bot will return you with “The most complete starter guide to Telegram bots” and “The complete guide to developing Telegram bots” and “Simple Python Telegram bot in 30 minutes” and many other links.

The main thing I wanted to achieve during the implementation of this project was to capture my son. Teach him the basics of OOP. For many features, Python’s OPPs are revealed much later. Prove to him that software development is a job that brings satisfaction.

I hope I succeeded!

Here is the link to the Telegram bot – https://t.me/school_schedule_1502_bot, if you have any comments or suggestions, write – feedback is welcome.

Cloud services

After implementing the main functionality, the question arose: “where can the application be deployed?”. At first, the son’s laptop acted as a “server”. Of course, this is not convenient for many reasons and it was necessary to find virtual hosting with minimal cost. After long searches and comparisons, Amvera Cloud was chosen. The minimum tariff is selected – Trial.

When registering, 120 rubles were charged, which allowed to test the 24-hour operation of the robot and start distributing links to the application among the students of the class. Amvera Cloud application deployment is done by simply sending updates to Git repositories.

I ran into two problems while deploying:

  1. The project’s source code is on GitHub, in the main branch, and amvera creates a repository named master by default. Therefore, instead of the git push amvera master command, you need to execute git push amvera main: master.

  2. The bot’s Telegram key is stored in a variable environment. For Windows, where the development took place, the name of the variable can be in both upper and lower case – the variable is one. This is not the case for Linux. Therefore, the first launch of the bot in Amvera Cloud ended with an error – it is impossible to launch the bot without the TOKEN key.

I urge you to use your experience to inspire future developers. Creating programs should not be routine work “in the galleys”, but should have joy and satisfaction.

I am sure that those who will come after us will definitely be better than us.

  • I urge you to use your experience to inspire future developers. Creating programs should not be a routine “work in the galleys” and bring little joy.

    I am sure that those who will come after us will definitely be better than us.

  • I urge you to use your experience to inspire future developers. Creating programs should not be a routine “work in the galleys” and bring little joy.

    I am sure that those who will come after us will definitely be better than us.

Related posts