Stop using "Console.log" in 2024! (5 Better Alternatives)

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 17

  • @hola-yq6bp
    @hola-yq6bp 2 дні тому +20

    stop these "STOP USING" titles.

    • @mohammedimthiyaz5225
      @mohammedimthiyaz5225 2 дні тому

      if u dont like it , dont watch it!! its that simple

    • @ItsTundeAlao
      @ItsTundeAlao  2 дні тому +1

      Haha go easy on me! I was just copying the article title 😅

    • @hola-yq6bp
      @hola-yq6bp День тому +1

      @@mohammedimthiyaz5225 who said anything about the video ?

  • @kavinmanoharan8585
    @kavinmanoharan8585 19 годин тому

    Good one, Tunde!

  • @AsasiyyunETH
    @AsasiyyunETH 2 дні тому +1

    Very cool, I'm ashamed I didn't know this after 11 years as a dev, with most of my years doing JS ahaha. I think I might have something to flex to the interns tomorrow kek. What plugin are you using to generate the object? Some AI? I have run some of them and didn't like the experience. Good video, thanks for the free knowledge!

    • @ItsTundeAlao
      @ItsTundeAlao  2 дні тому

      Glad you liked it! Haha i'm embarrassed too that I only just found out about these. I'm using Cursor IDE to do the AI code generation. It's pretty cool you should check it out 🤗.

  • @VictorPraizTech
    @VictorPraizTech День тому

    Hi Tunde… very insightful video

  • @ZSpecZA
    @ZSpecZA День тому

    Something important that you missed in your experiments are how these console methods are displayed in the *browser* console. Browsers like Chrome will actually enrich the output of console.dir and make it interactive, allowing you to collapse/expand each level. console.table will also be made interactive, and will allow you to sort columns the same way a datatable widget would allow you to do. This article also didn't mention the different log levels. There's console.info, console.error, console.warn and console.debug in addition to console.log, and this is worth noting because unlike the integrated terminal in your IDE, browser consoles will let you filter on log levels with the press of a button. Then there's also console.trace, which the article didn't mention either. It just outputs a trace of the current function callstack state (the same thing that is underneath your errors when the console logs those).

  • @theochasid8996
    @theochasid8996 2 дні тому +1

    Nice thank you ^^

  • @zein_try1206
    @zein_try1206 2 дні тому +1

    bro we're javascript developers we've seen these and loved them but at the end we're always gonna stick to console.log for some reason

    • @ItsTundeAlao
      @ItsTundeAlao  2 дні тому

      😂 our fingers are just used to hitting those keys

  • @deiby2072
    @deiby2072 День тому

    I love me a console.log 😈