Why you should learn to code

Transcriber: Martina Abrami
Reviewer: Hani Eldalees

In 2014, I was living
in São Paulo, Brazil.

The country was obsessed
with the coming World Cup,

and I was too.

I absolutely had to get to
as many games as possible,

but there was a problem.

The only way to get tickets
was this horrible website

that would release them at random times
throughout the day.

I was working as a teacher at the time,

and when somebody at work
would see tickets pop up,

they’d run around the hallways
telling all the other teachers

and we’d spend time of our lessons
abandon our students

and try to buy tickets.

I got really frustrated with this process.

Nobody wants to spend their day
refreshing web pages,

neglecting children,

or worst of all, miss a release
because they were too slow.

But by using a little trick,

the right click “inspect”
that’s available on every browser,

I was able to see a straightforward list
of how many tickets were available.

And this was an eye opening moment for me

because it showed me that
the information I wanted was right there

and though I didn’t have the tools yet
to make it myself,

I knew what I needed.

An automated program
that would check that site

and let me know when there were tickets.

So I started coding.

I learned just enough to know
what to look for on Google,

where I found snippets
that other people had already written,

which I copy-pasted and pieced together
in a way that worked for me.

I got stuck for a bit on this one part,

but I learned that the Internet
is full of forums

of people willing to help you
if you ask for it,

like I did on Stack Overflow.

After some help I got there,
it all clicked for me.

I put my program on a little PC

and set it to run
every minute of every day,

just to be sure I didn’t miss
another release.

Because of my program, I ended up going
to nine different World Cup games.

But most importantly,

I learned that the vast amount
of information on the Internet

can be put to use in a way
that’s helpful to me.

This recognition that I could create
my own solution spurred me on.

And with each bit I learned,

I started noticing things in my life
that I was doing on the computer

and that were repetitive.

I started getting really frustrated
with things that were repetitive, and so

I looked for every opportunity I could

to automate it.

One of those repetitive tasks
was figuring out

where to drink beer with my friends.

We used to spend a lot of time
figuring out which beer bars to go to.

So I made a program that grabbed
the list of beers from the sites,

found the rating,

and then put it all together in one place
where we could have a quick overview.

Of course, I had visions
of engatados.com.br

being a revenue generating website

to be the toast
of the São Paulo beer scene.

But no one came.

I used it a lot.

A couple of friends used it, too,

but it didn’t matter

because that improved my quality of life

by automating tasks

and spending less time on the computer

and more time with my friends.

Since then I’ve automated
a lot of other things:

finding cheap train tickets,

finding the best wine deals
at my supermarket,

the best restaurants to go to.

I’ve even use it to plan trips
to wine regions in Spain and Italy.

You may have noticed a theme
with these topics I work with.

It’s mostly food, drink and travel.

Those are things
that I’m generally interested in.

But most importantly, it was really
useful for me to automate them.

I’m sure you have things
like this in your life, too.

Finding airplane tickets,

checking if your favorite
pair of shoes is on sale,

finding a COVID vaccine date.

This is the key to finding
your first task to automate.

it should be annoying for you to do,

but it has to be something
that you find interesting and useful.

But something strange happened
as I started writing all this code.

It became something I do for fun,
for relaxation, or if I was bored.

It became a creative outlet for me.

And at one point, when
I was searching for a new job,

it became for me a way for me
to blow off the stress of that.

I decided to create a Twitter bot
that was for education jargon

or edu babble

just to see how many
followers it could get.

It ended up getting around 14.000 of them

and it was getting retweet
of the nonsense that it posted

and private messages asking
for teaching advice.

And it did relieve stress for me
because it was funny and it was fun.

It certainly wasn’t something
I thought I’d experience

when I started writing code.

So keep an eye out
for your World Cup problem

that gets you started
automating and coding.

And I hope that, like me,
you end up enjoying it

for the enriching creative act it can be.

Thank you.

抄写员:Martina Abrami
审稿人:Hani Eldalees

2014 年,我住
在巴西圣保罗。

这个国家
对即将到来的世界杯很着迷

,我也是。

我绝对必须
尽可能多地参加比赛,

但有一个问题。

获得门票的唯一方法
是这个可怕的网站

,它会在一天中的随机时间发布它们

当时我是一名教师

,当有人在工作
时看到票突然出现,

他们会在走廊里跑来跑去
告诉所有其他老师

,我们会花时间在上课时
抛弃我们的学生

并尝试买票 .

我对这个过程感到非常沮丧。

没有人愿意花一天时间
刷新网页,

忽视儿童,

或者最糟糕的是,
因为速度太慢而错过发布。

但是通过使用一个小技巧,

在每个浏览器上都可用的右键单击“检查”,

我能够看到有
多少票可用的简单列表。

这对我来说是一个大开眼界的时刻,

因为它向我展示
了我想要的信息就在那里

,虽然我还没有自己制作的工具,但

我知道我需要什么。

一个自动程序
,它会检查那个网站

并让我知道什么时候有票。

所以我开始编码。

我学到了足够多的知识,
知道在谷歌上寻找什么,

在那里我找到
了其他人已经写过的片段

,我复制粘贴并
以适合我的方式拼凑在一起。

我在这一部分上卡住了一点,

但我了解到,互联网
上到处都是

论坛,
如果你提出要求,人们愿意帮助你,

就像我在 Stack Overflow 上所做的那样。

经过一些帮助后,我到达了那里,
一切都为我所用。

我将我的程序放在一台小型 PC 上

,并将其设置
为每天每一分钟都运行

,以确保我不会错过
另一个版本。

由于我的计划,我最终参加
了九场不同的世界杯比赛。

但最重要的是,

我了解到
互联网上的大量信息

可以以
对我有帮助的方式使用。

这种对我可以创建
自己的解决方案的认识激励了我。

随着我学到的每一点,

我开始注意到我生活
中在电脑上做的事情,

而且这些事情是重复的。

我开始对
重复的事情感到非常沮丧,因此

我寻找每一个可以

将其自动化的机会。

其中一项重复性任务

与我的朋友弄清楚在哪里喝啤酒。

我们过去常常花很多时间
来确定要去哪些啤酒吧。

所以我做了一个程序,
从网站上抓取啤酒列表,

找到评级,

然后把它们放在一个
可以快速浏览的地方。

当然,我的愿景
是 engatados.com.br

成为一个创收网站


成为圣保罗啤酒界的干杯。

但是没有人来。

我用了很多。

几个朋友也使用了它,

但这没关系,

因为它

通过自动化任务

和花更少的时间在电脑上

和更多的时间与我的朋友一起提高了我的生活质量。

从那以后,我把
很多其他事情都自动化了:

找到便宜的火车票,在我的超市

找到最好的葡萄酒优惠

,去最好的餐馆。

我什至用它来计划
去西班牙和意大利的葡萄酒产区旅行。

您可能已经注意到
我使用的这些主题的主题。

它主要是食物,饮料和旅行。

这些
是我通常感兴趣的事情。

但最重要的是,将
它们自动化对我来说真的很有用。

我相信
你的生活中也有这样的事情。

查找机票,

检查您最喜欢
的鞋子是否在打折,

查找 COVID 疫苗的日期。

这是
找到第一个自动化任务的关键。

对你来说应该很烦人,

但它必须是
你觉得有趣和有用的事情。

但是
当我开始编写所有这些代码时,发生了一些奇怪的事情。

它变成了我为了好玩
、放松或无聊而做的事情。

它成为了我的创意出路。

有一次,当
我在寻找一份新工作时,

它成了
我释放压力的一种方式。

我决定创建一个
用于教育术语

或 edu babble 的 Twitter 机器人,

只是为了看看
它可以获得多少关注者。

它最终收到了大约 14.000 条

,它正在转发
它发布的废话


寻求教学建议的私人消息。

它确实减轻了我的压力,
因为它很有趣而且很有趣。 当我开始编写代码时,

这当然不是
我认为自己会经历的事情

因此,请
留意您的世界杯问题

,它可以让您开始
自动化和编码。

我希望你能像我
一样最终享受它

,因为它可以是丰富的创造性行为。

谢谢你。