Fatih Kalifa logo

Fatih Kalifa

Software engineering. Photography. Personal opinions.

Posts - Page 2

Easy Authentication in Express using Passport

4 min read

Auth0 was the authentication provider I chose for my blog dashboard. They're simple and easy to set up, but I mainly used them because I haven't had the time to build one myself.

Few months after my blog went live, I begin rewriting authentication logic to the blog API itself. I decided to use password-based authentication because it's the most straightforward, and considering this is for personal use, I don't have to think about email verification and such.

From Express and React to Next

7 min read

This weekend, I finally got some time to work on my blog again after so long. I've been waiting Next.js to support custom server handler for some time and they finally did in v2.

Promise: The Less Interesting Part

3 min read

ES2015 has already became mainstream and it brings many features to JavaScript language. One of the notable features is Promise for handing asynchronous tasks.

While Promise is definitely useful feature, I still see some people confused about the semantic of promise resolution and error handling. Here's a few examples that I've seen people trip over so far.

Designing New Syntax Theme for Atom

6 min read

As a software engineer, I spent most of my time in text editor and terminal. I use Hyper for my terminal app and Atom as the text editor. For quite some time, I used Atom Material UI theme and One Dark syntax theme in Atom.

Then I found someone sharing their editor (not Atom) on twitter and suddenly my editor theme looks ugly.

Github Gist inside Rich Text Editor

3 min read

Building a rich text editor with syntax highlighting is not a simple task. There's a few library for highlighting a code, but integrating it inside live editor needs more work and prone to performance problem

Another way to embed code is using Github Gist. It automatically highlight your code for free so you don't have to experiment with various client-side syntax highlighting library. Embedding gist into a page is easy. Github gives you copy-pasteable snippet that you can include anywhere in your HTML file. When you refresh the page, the code will be embedded with syntax highlighting.

The Stack of Paper

4 min read

As you may know, Paper is the name of my new blog platform. I built it because I want flexibility in customizing my blog capability, with great experience when writing a post. Being flexible doesn't mean that Paper will have all features that other blog platform has. It's never going to be a full blown CMS that could create an e-commerce website.