アプリ関連ニュース

Changing github theme to dark mode

According the the recent updates from github, there is some improvements in daily experience like UI appearances, pull requests, discussions & dependency review. There are also other updates as well such as Continuous delivery support and other updates.

But today, I would like to talk about the appearance setting and how to enable the dark mode for your github.

First thing first, go to your profile setting.


Then you will see the new appearance setting as follow.

after click the appearance setting, you will see the available setting to play with.

Number 1 is a theme setting to change your github to Light & Dark mode. There is also Emoji option in number 2 which can change your emoji skin tone color as well.

As a final step, I selected my theme to dark and here it is.

Enjoy Dark theme.

By Yuuma



[Laravel] Eloquentとページネーション(4)

自力でページネーションの実装をおこなうには、大変工数がかかりますが、Laravelフレームワークが用意しているページネーションを使用することで工数が大幅に軽減されます。

今回はLaravelフレームワークのページネーションのカスタマイズ方法を紹介したいと思います。
本記事は前回の「[Laravel] Eloquentとページネーション(3)」の続きになります。

続きを読む

Polymorphism in PHP

Polymorphism sounds difficult in terms of its vocabulary but it’s not that complex. Today I will write some explanations along with simple code examples. There are two types of polymorphism called dynamic polymorphism and static polymorphism.

Let’s take a look at the dynamic polymorphism first. It can be achieved using interface.

<?php
interface Country
{
    public function talk();
}

class Myanmar implements Country
{
    public function talk()
    {
        return "Mingalarpr";
    }
}

class Japan implements Country
{
    public function talk()
    {
        return "ko ni chi wa";
    }
}
?>

There is an interface called Country and two of the concrete classes called Myanmar and Japan implemented it. The type of two concrete classes, Myanmar & Japan are same as they are the country but the function called talk inside their classes will be different depending on the country.

$myanmar = new Myanmar();
$japan = new Japan();

echo $myanmar->talk(); //output - Mingalarpr
echo $japan->talk(); //output - ko ni chi wa

As I said earlier before their talk function is different. That is called dynamic polymorphism. Concrete classes are sharing the same interface as they are common in type but different in functionalities.

There is one more polymorphism called static polymorphism. This can be achieved using method overloading. We will use __call magic method as we are writing in PHP.

<?php

class Talk
{
    function __call($name,$arg){
        switch(count($arg)){
            case 1 : return $arg[0];
            case 2 : return $arg[0] . '&' .$arg[1];
        }
    }
}

$talk = new Talk();
echo $talk->lang("Myanmar"); //output - Myanmar
echo $talk->lang("Myanmar","Japan"); //output Myanmar & Japan

There are different return depending on the method arguments. The class talk can be adaptable depending on the function arguments which is called static polymorphism.

You can see the magic method __call reference here.

https://www.php.net/manual/en/language.oop5.overloading.php#object.call

Thanks for reading. By Yuuma.



Unity 2019以降のAndroidビルドの環境設定について

今回はUnity 2019以降でAndroidスマートフォンやAndroidベースのVRヘッドセットのアプリケーションのビルドをおこなうための環境設定の工数が大幅に簡略化されていた件について紹介したいと思います。

続きを読む

京都丹後鉄道が日本初のVisaタッチ対応

京都丹後鉄道でvisaタッチで決済ができるようになったようですね。
これは鉄道業界で日本初とのことです。

公共交通機関系のSuicaやIcoca等や、おサイフケータイ、IDと
国内で利用可能な非接触決済はNFCの規格の内のFelica(Type-F)が主流ですが、
visaタッチはFelicaではありません。

日本国内では標準のように広まっているFelicaを使った非接触決済ですが、
国際的にはFelicaではなく、Type-A/Bが主流だそうです。

Type-A/Bを利用できる非接触決済に対応していれば、
海外からの旅行者にとって
普段使っている決済方法(クレジットカード等)
をそのまま利用しやすい環境になりますね。

現在はコロナ渦でインバウンド消費が冷え込んでしまっていますが、
ワクチンの開発、普及や集団免疫の獲得がすすめば
流行も落ち着いて旅行客数も回復していくでしょう。
その時にType-A/Bを利用できる非接触決済が普及していれば
さらにインバウンド消費を喚起することができるかもしれませんね。

水曜担当:Tanaka



アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム