Перейти к содержимому

I Wrote a UTF-8 Validator in Pure Bash

You Suck at Programming

0:00 / 0:00

I Wrote a UTF-8 Validator in Pure Bash

17 072 просмотра · 2 дн. назад
You Suck at Programming
123 тыс. подписчиков
17 072 просмотра · 2 дн. назад
Support me on Patreon   / yousuckatprogramming   Learn Bash! Free Course https://course.ysap.sh Bash UTF-8 validation using bitwise operations to handle unicode codepoints, utf-8 encoding, and ASCII explained. Source Code https://github.com/bahamas10/bash-jso... JSON RFC https://www.rfc-editor.org/info/rfc8259/ UTF-8 RFC https://www.rfc-editor.org/info/rfc3629/ Unicode Wiki https://en.wikipedia.org/wiki/Unicode $ chapters 00:00 – The Problem: Invalid UTF-8 in Pure Bash JSON 01:47 – RFC Specs: Understanding ASCII, Unicode, & UTF-8 18:48 – Setting Up the Test Harness & Visual Tests 24:14 – Parsing Bytes & Implementing 1-Byte (ASCII) Checks 36:25 – Multi-Byte Parsing (2-Byte, 3-Byte, & 4-Byte Characters) 1:03:34 – Rejecting Overlong Sequences & Surrogate Pairs 1:14:43 – Integrating the Validator into the JSON Serializer & Testing $ whoami Yo what's up everyone my name's dave and you suck at programming! Connect with me on my socials below and if you're reading this you're legally required to subscribe to my channel. $ cat source-code The source code for my YSAP series (or related videos) is available for free under the MIT License on GitHub: Source Code → https://github.com/bahamas10/ysap $ cat socials Instagram →   / yousuckatprogramming   YouTube →    / @yousuckatprogramming   $ cat more-links Website → https://ysap.sh Merch → https://ysap.sh/merch Discord → https://ysap.sh/discord TikTok → https://ysap.sh/tiktok Patreon → https://ysap.sh/patreon Ko-fi (donate) → https://ysap.sh/ko-fi $ cat keywords you suck at programming #programming #devops #bash #linux #unix #software #terminal #shellscripting #tech #stem