[PYTHON] The end of programming beginners (my pattern) who wrote the code motivated by the results that bring programming, not from a technical perspective

Introduction </ b>

First of all, the target audience for this article is "non-engineers".

As a non-engineer, this article has no way of explaining what I did in the process, aiming to acquire programming skills.

By the way, there is no punch line that I am doing as a programmer now, and I am still studying, and since I wrote an article in this way as part of my study, the teacher who was suddenly made to be an adviser to the Kabaddi club learned the rules of the sport. I think it will be similar to teaching Kabaddi to the members in parallel with remembering.

If that's okay, I hope you'll read the article and feel like "Oh, did other people feel the dissatisfaction I had in mind?"

1st "I want to make a BOT that will skip the contents of Google Calendar to LINE"

I sometimes work as a freelance photographer, but my clients often ask me, "When is your free schedule?"

For me, I would be happy if you could prepare some candidate days, but I answered, "This time on this day and this time on this day are free!"

However, it has finally become troublesome ... Because, in the culture of the company I work for, "My schedule is listed on Google Calendar, including travel time, regardless of public or private." </ B>

It's a strange company, isn't it? But thanks to that, I can talk smoothly about scheduling meetings. Just look at everyone's Google calendar and skip the schedule during the free time.

By the way, the reason for the title was that I wanted to make use of this culture in my freelance work!

"You just have to share your Google calendar?"

"Should I send you a Google Calendar screenshot?"

You may have thought, but that's not good.

Because when you ask "Please tell me your schedule!", Wouldn't it be frustrating if you were given only the calendar? What are you doing? Somehow, the outline of supply and demand is too clear. (Meaningless)

With LINE Bot, I think it would be nice to have a rough way of listening like "this week's schedule." You don't have to worry about it.

So what I asked for Ask a potential client to register "a bot that says my schedule" as a friend on LINE, and when a job is about to occur, ask that bot to listen to the schedule. </ B> It was to establish a series of processes.

I took a class about API at a programming school called Protoout Studio (https://protoout.studio/) that I just attend, so I wondered if I could do it well.


What I did </ b>

  1. I bought a paid article.

  2. I'm doing as the article says, but it doesn't work, so I asked a programmer at work.

  3. After all, it didn't work and I asked a question with teratail

  4. I was told to learn from the basics with teratail, so I bought a book and read a little

  5. However, I couldn't proceed with paid articles, so I made a program by looking at free articles that seemed easy after all.

  6. It worked and I was a little happy. ← Imakoko

1. I purchased a paid article. </ b> I will not paste the URL, but the article published in note said, "Let's use LINE Bot to check the schedule of Google Calendar and add the schedule."

"This is it! What I wanted!"

It was a charge, but I bought it relatively easily and started moving my hands immediately. However, my "source code copy technique", which does not hold the basics, soon reached its limit.

By the way, the method I tried to understand the code, which I didn't have the basics, gave similar results (in this case, operating Google Calendar with LINE Bot), looking for the source code of other articles, The idea was to find similarities with the main code and replace the commented out content of other articles with the main code.

You don't understand the meaning?

In short, it's almost like "even if you don't understand Chinese, you can guess the content of Chinese from it if you realize that there is the same kanji in Japanese."

result... 2. I'm doing as the article says, but it doesn't work and I asked a programmer at work </ b>

I couldn't move it. After all I did not understand the meaning. So, when I caught a programmer in a very busy workplace and asked him, he told me where he was stumbling, albeit partially. I really wanted to hear more, but he left somewhere.

And, the content that was partially taught is different from the content of the article, and in order to proceed with the content of the article, it turned out that if you do not write the code according to the article and proceed, it will eventually stop working, so finally I've run out of measures. I've been using it for about 6 hours so far. (Does not matter)

3. After all, it didn't work and I asked a question with teratail </ b>

I found out that there is a service called "teratail" like "Yahoo Answers for Programmers", so I posted it with a light expectation. I'm glad I got a response in about 30 minutes after posting.

Actual posted article ↓ https://teratail.com/questions/248595?modal=q-comp

I think I could tell my beginner's degree from the exchange of questions.

By the way, I was kind enough to respond, but my immaturity of not being able to carry out what I was taught was overwhelmed, and I was encouraged to learn the basics as soon as possible.

4. I was told to learn from the basics at teratail, so I bought a book and read a little. </ B>

download.jpg https://www.amazon.co.jp/dp/4295002089/ref=cm_sw_em_r_mt_dp_U_5RWEEbE1TKTNM

I bought it and read it. Only the first half. The content was easy to understand. (You might wonder why you bought a Python book, but the one I was having trouble with in the paid article was the Python description.)

Somehow around here, I thought, "Is there a place where paid articles and code description are not enough?"

That's because the process so far doesn't mean "I don't understand at all." I somehow understood the meaning of the description, and I noticed that the specification of the function required for execution was not written in the article. (I'm listening to what I know. I don't understand.)

Well, that's the situation, and I'm finally getting tired.

5. However, I couldn't proceed with paid articles, so I made a program by looking at free articles that seemed to be easy after all. </ B>

I was beginning to understand the cause, but I had spent too much time and was exhausted both physically and mentally.

I thought, "I can't move my hands because I'm too busy," so I thought it would be nice if I could cut down the functions I wanted to do and have a program called "Google Calendar schedules fly to LINE Bot." , I went on a journey to find articles again.

And I found a nice article. ↓ https://qiita.com/imajoriri/items/e211547438967827661f

All I had to do was touch GAS (Google Apps Script) and LINE Notify, so I managed to get it working. (It's a copy)

6. It worked and I was a little happy. ← Imakoko </ b>

I found that I was very happy when the program worked. Even if you copy it.

There was certainly a feeling that he listened to me, and it was a habit.


Forcibly talking punch line </ b>

This time, I haven't achieved it technically, but it seems that a small success experience will result in a longer working experience than trying to do what I want to do. I noticed that.

After that, I thought that it would be inefficient when making something unless I could ask more people.

Often, the idea of "people who can't ask people" (I'm the type) doesn't really know exactly what they want to do. (I)

People ask only the means without knowing what they want to do, so the person being asked is confused about the appropriate answer and looks suspicious. I think there is something like that. (I)

Those who ask questions are actually raising their own hurdles, and even though they do not know what means they have in the first place, they ask about the means. I think I'm unconsciously doing something like tightening my neck. (I)

From my own experience, when I consult with people, I try to focus only on "I want to say this" as the most important communication.

Actually, I want to communicate with the other person in mind, but I still can't handle it that much.

I'm sure it's causing trouble to the people around me. I'm sorry...

With that said, it was an article without any non-engineers.

Thank you for reading this far.