top | item 39504072

Console.delight

224 points| ZachSaucier | 2 years ago |frontendmasters.com

31 comments

order

CSSer|2 years ago

The only thing I beg of you is please don’t ship this in client-side libraries. Most of you will know better, but some of the things I see in third-party libraries really blow my mind. The last one was Pudgy the Panda as console ASCII art for some donation embed (their mascot). Sure, it’s cute, but that’s also multiple kilobytes of JS you’re forcing on your clients for whimsy in an already crowded environment. Apologies if I sound old and cranky.

oefrha|2 years ago

That's a lot better than some frontend library adding an "Easter egg" so that every website using it, including some very serious ones, had Santa beards on their buttons on Christmas a few years back (can't find the story now). Of course you may argue it was users' fault who should have vetted every single line of their dependency, but let's be real.

Unfortunately there are a lot of unprofessional people in open source, and while I hate to stereotype, they are especially prevalent in the JavaScript community where it's typical to have hundreds to thousands of unknown dependencies in every project. What can be done? I don't know. (Before I'm labeled as entitled -- I spend a lot of time on open source, without the unprofessional behavior.)

klabb3|2 years ago

You’re not old and cranky. Just (minimally base line) responsible.

Many frontend projects have 100s of deps, and while that’s a separate problem, imagine if a large fraction of them spammed bandwidth and console output with this.

coldtea|2 years ago

>Apologies if I sound old and cranky.

Worse, you sound new and square. In the olden times such "easter eggs" or cool logos were welcome, and in the DOS days (but also in the Unix console) often included ASCII art.

fragmede|2 years ago

> Pudgy the Panda as console ASCII art for some donation embed (their mascot).

Which library is this? Couldn't find it via a quick Google.

SuperNinKenDo|2 years ago

Would prefer that to all the tracking and telemtry shoved at us through JavaScript. What kind of world is it where whimsy is infuriating, and this mass surveilance framework is just how things are.

CJefferson|2 years ago

Would I put this in software I'm charging people for? Not at all.

If it's free and open source? Well if you don't like it you are welcome to apply for a refund.

tomjakubowski|2 years ago

I set up snippets in my code editor so I can quickly insert colorful, bold, and otherwise richly formatted console log messages for printf-debugging. The addition of color makes the messages I've just added stand out against other the logs. It's a great time and attention saver.

vsnf|2 years ago

Don't be shy, share the snippets

cchance|2 years ago

Thats actually pretty cool (from archive link)...

Probably not that common knowledge, or we'd have libraries designed for outputting nice log/admin interface data to the console XD

loa_in_|2 years ago

The only thing I can see is http 504

bhaney|2 years ago

Well, the site's not backendmasters

sroussey|2 years ago

Wait until he finds out about custom formatters

coldtea|2 years ago

Don't be shy, tell more. Others haven't found about them either...