Settings

Theme

Console.delight

frontendmasters.com

224 points by ZachSaucier 2 years ago · 36 comments

Reader

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.)

    • Semaphor 2 years ago

      "js library easter egg christmas" brought me to this HN post: https://news.ycombinator.com/item?id=18758697

    • atoav 2 years ago

      Sorry to be that guy, but if you are using an open source library and it adds hats that you're unhappy with that means you did not check the library you are including.

      Maybe not looking at code one includes in a product has become much too common practise, but if some library for a button (funny I never felt the need to use one) includes special stylings on special days and you included it, that is on you. Sure it would have been nice of them to point this out if they didn't, but after all you are taking someone elses code for a button so you should know what it does.

    • sheepdestroyer 2 years ago

      Unfortunately? It's a chance that there are a lot of "unprofessional people in open source".

      And what whith the whole being "professional" as a value system, which I fear has often to be taken in the very narrow USofA centric PoV ?

      I can't relate to the sentiment that everything has to be aseptized in order to conform to a very strict and dehumanized, bland and sfw (aka professional), just to cater to the work environment culture of a few.

      If in your freetime you don't like something coming from an open source project that doesn't owe you anything, don't use/associate. If you don't like it in your work place, there's a reason you're paid I guess? Or change job, or do an internal fork.

      • oefrha 2 years ago

        If you’re the kind of person putting Easter eggs in libraries knowing full well that it will be used in what you would call “dehumanized” settings*, please put in an advance notice that professional (or dehumanized, or whatever) people shouldn’t use your stuff. People will never use your stuff again after the sabotage anyway, why not make it clear up front unless you derive pleasure from chaos?

        It’s also very weird that professionalism is somehow “USofA centric” to you.

        * Thanks Semaphor for jogging my memory with the link. It was a corporate open source project ffs, with clear marketing and expectations that it should be safe for “dehumanized” settings.

      • pwdisswordfishc 2 years ago

        I feel like expecting every human being to tolerate gratuitous whimsy regardless of circumstances is the real "narrow USofA centric PoV".

        Not everyone lives in the same culture of superficial and dishonest niceness as you, in which people ask "how are you" but don't actually give a shit.

  • 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

      A project with "100s of deps" is already irresponsible and bloated for that alone.

      Some logo or ASCII art in some/most of those deps would hardly be the real issue.

      • beezlewax 2 years ago

        The dependencies usually have dependencies and then... well it's dependencies all the way down in the JS world. 100s is sadly normal for large proects in my limited experience.

  • 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.

    • CSSer 2 years ago

      Local binaries are exempt from any such judgment in my mind.

  • 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.

tholman 2 years ago

We've come a long way from console.frog [2016]

- https://tholman.com/console-dot-frog/

calebpeterson 2 years ago

https://web.archive.org/web/20240224004046/https://frontendm...

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

sroussey 2 years ago

Wait until he finds out about custom formatters

throwup238 2 years ago

Who's going to be the first to port DOOM to the dev console?

Edit: There it is - https://github.com/MattCozendey/doom-console-log

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection