Today I Learned - Rocky Kev

TIL you can style console logs

POSTED ON:

TAGS:

I was goofing off and noticed water.css dev Kognise belonged to a team called doggo.ninja. Curious, I went to the site, and discovered something in the console.log.

This -> 2020-07-07-console-noice_0.png

That was done with the use of %c, a content specifier.

 console.log("%cHmmm, I wonder what $ is...", "color: white; background-color: black; font-size: 1.4rem; padding: 20px;");

reference


Related TILs

Tagged:

TIL Content sectioning

Content sectioning or landmarks, like sidebar, content, footer. You know, like better names.

TIL php-fpm

PHP runs as a separated service when using PHP-FPM. By using this PHP version as language interpreter, requests are processed through a TCP/IP socket; so that the Nginx web server only handles the HTTP requests and PHP-FPM interprets the PHP code. The fact of having two separate services is key for increasing efficiency.

TIL Considering Device Obsolescence with web development

I'm incredibly guilty of pushing to build for the latest tech. For good reason too - you can write less code, use more native functions, and things are just more likely to work.