<?php
namespace Gurkan; 
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;

Class Diary {
    protected $c;
    protected $today;

    public function __construct($container) {
        $this->c = $container;
        $this->today = $this->c->model->load('today');
    }

    public function index(Request $req, Response $res, $args) {
        $results = $today->get();
        $humanized = unserialize($results);
        return $res->getBody()->write($humanized);
    }

    public function __invoke($req, $res, $next) {
        $res->getBody()->write('Dear diary,<br>');
        $res = $next($req, $res);
        $res->getBody()->write('Gürkan<br>' . date('Y, m d H:i'));
    }
}

/* end of file */

This is a blog. I’m interested in with blogs since 2006. When I learned a programming language, I wished to create a blog about the programming. But, this is so difficult. Popular programming languages are developing every day and I must be adopted this progress.

So, I’m here and I will find a way.

Gürkan Biçer

GetDNS.sh Published

Today, I published a web project named GetDNS. You can reach it via this link: https://www.getdns.sh It’s an alternative for IntoDNS.com. Actually, I hope, it can be an alternative. Because we can’t change habits easily. When I started working at web hosting sector, IntoDNS had the most popular public DNS lookup service. They didn’t change anything on their service until now and still is popular. There are too many alternatives on the web. [Read More]

Blogun Neden Türkçe Değil?

2006’dan beri blog yazıyorum. Bu blogların tümü Türkçe ve şu an kapalı durumdalar. Yaz-sil, yaz-sil ve sıkılınca blogu kapat kafasında ilerlediğimden, şu an geçmişte neler yaptım ve düşüncelerim nelerdi diye bakmak istediğimde hiçbirine ulaşamıyorum. Fark ettim ki; daha önce yazdığım blogların tümü elbette bir amacı olan, ancak uzun soluklu bir amacı olmayan ve olmasa da olur şeklinde düşündüğüm bloglardı. Bu blogu İngilizce olarak hazırladım ve içerisinde yazacağım tek Türkçe içerik bu olacak. [Read More]

Why Git

I can say too many things about why I choose Git. But, the most important thing about the subject why you should choose Git? In shortly, best technology of today on the software sector. When you want to keep files on the remote server as sync, you can choose Git. Or, when you want to work with your teammates as real-time, you can choose Git. Maybe you want to share your project with everyone, of course, you can choose Git. [Read More]

MVC Structure

When we start learning a programming language, we see some structures and frameworks. MVC structure one of them and most popular structure. What is means MVC? MVC is an abbreviation of Model, View, and Controller shortly. All of the structures were named with the first letters of the words. Which languages using MVC? I don’t know all programming languages and I don’t research all of them. But, I saw MVC structure in the ASP. [Read More]

First post!

This is my first post, how exciting!