SoraNews24 —Japan News—

Bringing you yesterday's news from Japan and Asia, today.

RocketNews24 Japanese

Featured

Toilet teaching – Japanese programmer explains key concept with clever bathroom snapshot

This may look like a bathroom crisis, but it’s actually an educational opportunity.

The study of programming is really the study of language, and, to add more linguistic intrigue to the whole thing, we can even interpret the word “language” in that statement in two different ways.

First, of course, is the fact that programming students learn one or more sets of protocol for communicating with and giving instructions to computers and machinery. The other way to think of programming as the study of language is that the field has its own set of specialized terms and vocabulary that students have to become proficient with if they’re going to get very far in their academic or professional endeavors.

A tricky yet crucial distinction for new programmers to make is understanding the difference between “zero” and “null,” which in ordinary conversation are sometimes used interchangeably. When talking about programming, though, they’re very different, and to help differentiate the two Japanese security consultant and Twitter user @raysato found what he feels is the perfect example in a very unlikely place: the bathroom.

プログラミング初心者がつまづきやすい、0とnullの違いを解説した画像です。 pic.twitter.com/I2JiXO8OUr

— R SATO(佐藤 玲) (@raysato) February 20, 2017

“A lot of new programmers stumble over the difference between zero and null, so here’s an explanatory diagram,” @raysato tweeted. On the left is the concept of zero, represented by toilet paper roll core with no paper left on it. On the right is null, which in this context translates to not having any roll of toilet paper, either new or entirely used up, present.

In other words, “zero” refers to a known quantity equal to 0, while null describes a situation where no data whatsoever exists.

Hopefully, @raysato’s informative tweet will help newcomers to the world of programming clear this conceptual hurdle. On the other hand, the situation shown in the photograph is a major problem for anyone who just wants to use the bathroom, so hopefully @raysato replaced the roll after sending his tweet.

Source: IT Media, Twitter/@raysato

Like this:

Like Loading…

Related Stories

Trackbacks

  1. There are no trackbacks yet.
  2. Trackback URL

Trending Today

  1. Starbucks Japan reveals new Christmas advent calendar and holiday drinkware collection
  2. Tokyo’s Shibuya Sakurazaka cherry blossom street to be decommissioned, number of trees to increase
  3. Japan’s JR East reveals new train company mascot character, online comments aren’t kind
  4. Join Suica’s penguin on its graduation trip to outer space at Hotel Metropolitan Tokyo Ikebukuro
  5. FamilyMart’s “physical AI” robot workers getting chilly reception in Japan
  6. Studio Ghibli adds new Princess Mononoke sukajan jacket to its anime streetwear range in Japan
  7. Foreign tourist missing after off-season Mt. Fuji hike, father reportedly offering reward to find him/his body
  8. Nara deer send record number of people to hospital, over 70 percent of patients are foreigners
  9. Online scammers beware, one man is coming for your fried rice recipes… all of them
  10. Foreign hiker on Mt. Fuji loses consciousness and dies, becoming climbing season’s second fatality

© SoraNews24 —Japan News— / SOCIO CORPORATION

Powered by WordPress VIP

%d