How to Authenticate Users: JWT vs. Session

How to Authenticate Users: JWT vs. Session

Blog
In web applications, you try to decide when to use either JSON Web Tokens (JWTs) or sessions (cookies) for authentication. When you browse the web you use HTTP, which is a stateless protocol. So, the only way to remember the states of your application is using either sessions or tokens. Goals This article deep dives into: Differences in using sessions and JSON Web Tokens for authentication How server-side session store works Advantages of sessions over JWT Advantages of using JWT and other things concerning the structure of JWT. JWT vs. Session: What to Use? Deciding to choose between JWT or session is not just choosing one over the other. You need to look at some factors to determine which one to use in an application. In order to figure this…
Read More
PHP MVC Framework Showdown: 7.1 Performance

PHP MVC Framework Showdown: 7.1 Performance

Blog
A simple performance comparison of 6 PHP MVC style frameworks using PHP 7.1. Test Kit: php-framework-benchmarkTest Server: Digital Ocean Ubuntu 16.04.1 x64 2gb / 2CPU droplet.Test Software: PHP 7.1.0, Apache 2.4.18 I used a minimal installation of PHP and Apache with no additional configurations or sever settings changed. Overview The benchmark tool kit executes a simple “hello world”, it does this with the frameworks minimal settings, no database, no debugging and if possible, no template engine. Read more about the testing on the benchmark tool kits page. Results Out of the 6 frameworks tested Codeigniter 3 produced the most requests per second and the least memory usage. Zend Framework 2.5 produced the least requests per second and Laravel 5.3 produced the most memory usage. No framework: 7,094 requests per second,…
Read More
The 5 Skills You’ll Need to Land a Web Dev Job

The 5 Skills You’ll Need to Land a Web Dev Job

Blog
Here at TechLaunch, we take a no-nonsense approach to web dev. We don’t waste time with excessive theorizing, learning about “legacy” technologies, or spelling out the “elopment” in web development. Our students come to us to help them get into new careers, so we focus on the only things that truly matter: the skills that employers are actually looking for in the 2018 job market, like for example how TikTok algorithm works. We work with dozens of small, medium, and large-scale employers here in Miami, and have placed students in web dev positions throughout the city. Through extensive conversations and in-depth hiring processes, we have determined that there are five major skills that employers are looking for in junior web developers. So without further ado, here are the five skills…
Read More
Use Fetch API for web apps

Use Fetch API for web apps

Blog
Fetch API has become the standard for web API requests for a while now and it is supported in almost any modern browsers nowadays. Let’s use Fetch API and implement it for the web Use Fetch API Previously, there are many existing solutions for handling API requests for the web, ex. jQuery Ajax, request (node), axios (node) … why there needs another? Why Fetch API? Fetch API is the standard API being supported native in most of today web browsers. Fetch API is widely supported – caniuse.com Hmm, IE is not supported, you ask? Since Microsoft stopped support for IE, no more development for IE in future, and we will expect very less number of users use IE. Fetch API Specifications The specs of Fetch API is described here, https://fetch.spec.whatwg.org/ Check…
Read More
Animating URLs with Javascript and Emojis

Animating URLs with Javascript and Emojis

Blog
You can use emoji (and other graphical unicode characters) in URLs. And wow is it great. But no one seems to do it. Why? Perhaps emoji are too exotic for normie web platforms to handle? Or maybe they are avoided for fear of angering the SEO gods? Whatever the reason, the overlapping portion on the Venn diagram of "It's Possible v.s. No One Is Doing It" is where my excitement usually lies. Graphically animating URLs is a new thing. So I decided to put a little time into the possibilities of graphical characters in URLs. Specifically, with the possibility for animating these characters by way of some Javascript. Loopin' First off, make sure your page's Javascript code is being labelled as UTF-8 or you're gonna have a bad time putting…
Read More
The Ultimate Guide To Proper Use of Animation in UX

The Ultimate Guide To Proper Use of Animation in UX

Blog
Nowadays it’s hard to impress or even surprise with an interface animation. It shows interactions between screens, explains how to use the application or simply directs a user’s attention. While exploring the articles about animation, I found out that almost all of them describe only specific use cases or general facts about animation, but I haven’t come across any article where all rules concerning animation of interfaces would be clearly and practically described. Well, in this article I won’t write anything new, I just want to collect all the main principles & rules in one place, so that other designers who want to start animating interfaces don’t have to search for additional information. Duration and speed of the animation When elements change their state or position, the duration of the…
Read More