This site has been updated.
Reload to display the latest version?
(click here)

Tag:  regex

Simple template engine in JavaScript

24 October, 2020
Recently I had a task, that included creating simple templates. Nothing special, just using JavaScript replace placeholders with provided values. Obviously it’s better to have some general solution in place, so next time any change wouldn’t be painful.

Why we need to stop validating emails at the frontend

23 November, 2018
Let’s talk about one of the most well-known features of the web - registration. Not particularly the whole process, but in particular one aspect, email. For almost anything on the web, we need an email: ordering goods, registering for a service, receiving notifications, etc. It’s logical that if we need emails so much, then we’ll need to somehow be sure that the user has provided a correct one. Ok, let’s do a quick search on the Internet and see what are the front-end solutions for email…