19

Dec

Let's start the Japanese programming language "Nadeshiko"

Japanese programming language "Nadeshiko" official website

Do you know the programming language "Nadeshiko" based on Japanese?Nadeshiko is a perfect tool for those who want to learn programming.If you can program, you can use your computer more fun.You can automate your work by programming.In this series, we will introduce what programming is and what you can do if you can do programming.

What do you associate when you hear "programmer"?・ ・ ・ Do you have the image of a person who goes to a screen with a lot of alphanumeric characters, a genius hacker who hits the keyboard at high speed, or someone who does difficult things?

Certainly, when the computer just appeared, the selected craftsman was making programs for expensive and huge machines.However, recently, computers have become cheaper and can be carried by putting advanced computers in their pockets.

Previously, in order to start programming, we needed to install heavy development tools.Such tools were reasonably expensive, so it would take courage to start a little bit as a hobby.However, most of these development tools are now available for free.Programming was simple that could be reached by anyone.

Moreover, recently, the number of environments that can be easily programming on Web browsers has increased.Now is the best opportunity to start programming.

So, for those who want to start programming, "Nadeshiko" is recommended.Nadeshiko is a programming language based on Japanese, so even those who are not good at English can easily start programming.This is a programming language that I have been developing since 2004."Easy, programming!" Use a wide range of ages.

Web site of Japanese programming language "Nadeshiko"

And recently, I started developing Nadeshi this version 3, which also works on a web browser.You can move Nadeshiko on the web browser.There is a simple editor, so even if you want to try a nadeshiko, you can easily try it.

Where Nadeshiko 3 is moving

Let's create a simple program using Nadeshiko 3 that runs on a web browser.You can easily execute Nadeshiko 3 with the following URL.A personal computer can be moved on a smartphone or tablet.

日本語プログラミング言語「なでしこ」を始めよう

Nadeshiko 3 Simple Editor

When you access the above URL, you will see a text box and a simple editor with "execution".Let's write "1 + 2" and press "Execution button".

Nanashiko's Simple Editor

Then, "3" should be displayed under the execution button.thank you for your hard work.Now, this program was executed and we were able to confirm the execution results of the program.

This program is a program that calculates 1 + 2 and displays it on the screen.In addition, let's write and execute as follows.This is a program that calculates the four arithmetic operations.

10-5を表示。 2×3を表示。 10÷5を表示。

I calculated the four arithmetic operations with Nadeshiko

In this way, if you write "(calculation formula)", you can calculate the four arithmetic operations.

By the way, in order to enter "x" and "÷", you can write by writing "Kake" or "Waru" and converting kanji.Nevertheless, for those who are troublesome to convert kanji, the multiplication can be written as "*" and the division is "/".

2*3を表示。# 表示結果→ 6 10/5を表示。# 表示結果→ 2

This is a common symbol used for calculating multiplication and division in programming languages other than Nadeshiko.

Next, let's look at the priority order of the calculation.If you write by mixing addition and multiplication as shown below, the multiplication is calculated with priority.In other words, the answer is 7.

1+2×3を表示。

Also, if you write the formula in parentheses and write like "(1 + 2)", you will calculate in parentheses with priority over multiplication multiplication.So the answer to the following formula is 9.The rules of the four arithmetic operations can be used as they are.

(1+2)×3を表示。

In addition, you can also write as follows as a method of writing formula unique to Nadeshiko.When you execute the following program, 9 will be displayed.

1に2を足して3を掛けて表示。

How about that.This time, we introduced programming and how to program simple calculations.I would be grateful if you could understand that programming is not so difficult.

And we have been waiting for Japanese programming fans all over Japan.Let's excite Japanese programming together!

自由型プログラマー。くじらはんどにて、プログラミングの楽しさを伝える活動をしている。代表作に、日本語プログラミング言語「なでしこ」 、テキスト音楽「サクラ」など。2001年オンラインソフト大賞入賞、2005年IPAスーパークリエイター認定、2010年 OSS貢献者章受賞。技術書も多く執筆している。