Prettier? Nah I got something way better

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • As soon as I saw this I knew I had to try it. It's the first formatter good enough for HTMX. Sorry Prettier, time to move aside for...SHITTIER!
    GITHUB github.com/roh...
    Check out my Twitch, Twitter, Discord more at t3.gg
    S/O Ph4se0n3 for the awesome edit 🙏

Комментарии • 92

  • @bobnobrain
    @bobnobrain Месяц назад +342

    Breaking news: Theo harasses open source projects

    • @masterflitzer
      @masterflitzer Месяц назад +8

      open source in shambles right now

  • @marcelomagalhaes4508
    @marcelomagalhaes4508 Месяц назад +302

    I ran shittier on my project, I think it's still working, because nothing has changed

    • @rodjenihm
      @rodjenihm Месяц назад +19

      git diff
      >

    • @masterflitzer
      @masterflitzer Месяц назад

      how are the odds that shittier would format shitty code into properly formatted code xD

    • @breadles_
      @breadles_ Месяц назад +25

      ​@@rodjenihmhe saying it didn't change because it was already shitty.

    • @aaronwilldjaba
      @aaronwilldjaba Месяц назад

      damn... that's cold bro 😅😅😅😅

    • @Johnny_JTH
      @Johnny_JTH Месяц назад +1

      ​@@breadles_yes and he is saying that git diff would reveal the same thing, no changes

  • @stephenjames2951
    @stephenjames2951 Месяц назад +49

    Ok 500 response was the funniest point in the video

    • @luketurner314
      @luketurner314 Месяц назад +5

      Especially the irony that the 500 was because of formatting in a PR about a formatter

    • @KaKi87
      @KaKi87 Месяц назад

      @@luketurner314 Parser, actually.

  • @rodjenihm
    @rodjenihm Месяц назад +91

    Ah, finally a library that replaces my code.

  • @ScorpioneOrzion
    @ScorpioneOrzion Месяц назад +27

    This was the perfect response of github 🤣 4:12

    • @masterflitzer
      @masterflitzer Месяц назад +4

      can't script this shit, so funny lmao

  • @JarheadCrayonEater
    @JarheadCrayonEater Месяц назад +18

    I'm a former Turbofan Test Engineer for Lockheed and Rolls-Royce. During engine tests, we had to log activity as the test progressed. One final event was shutting down the engine, where we were instructed to type "Shutting down engine". However, we would "accidentally" type "Shitting down engine. Until engineering came back and said "we run scripts to detect various events and sync to the data, could you please ensure you are typing the comments as instructed?"
    Good times!

  • @zwanz0r
    @zwanz0r Месяц назад +13

    I ran shittier on my project, but it changed nothing! 😮😅

  • @ambuj.k
    @ambuj.k Месяц назад +6

    0:25 "Okay, so this is like gofmt then."
    - Theo Browne, 2024

  • @taintedtapper
    @taintedtapper Месяц назад +71

    0:17 nice one editor

    • @masterflitzer
      @masterflitzer Месяц назад +9

      he had one job (tbf. google mostly scans the first 2min for what it categorizes as "cussing")

    • @birthdayzrock1426
      @birthdayzrock1426 Месяц назад +6

      @@masterflitzer isn't it first 15 seconds?

    • @masterflitzer
      @masterflitzer Месяц назад +2

      @@birthdayzrock1426 no definitely not that short, it was 1 or 2 min, but I can't reference you a source so not 100% certain

    • @birthdayzrock1426
      @birthdayzrock1426 Месяц назад

      @@masterflitzer well fuck

    • @masterflitzer
      @masterflitzer Месяц назад

      @@birthdayzrock1426 yeah, I'm sure the video is yellow in theos dashboard, if he really cares about it he should've proof watched the editors work specifically in this video xD

  • @everyhandletaken
    @everyhandletaken Месяц назад +20

    I've been doing this myself all this time, when this already existed?? Game changer. Thanks!

  • @waveiro
    @waveiro Месяц назад +17

    My man made a whole video just so he could express his feelings about gofmt and I couldn't love this more hahaha

    • @Frostbytedigital
      @Frostbytedigital Месяц назад

      Was gonna click off but now I gotta find out what he says about gofmt.

  • @mohamed_younes77
    @mohamed_younes77 Месяц назад +21

    ✨This is art✨

    • @itzhexen0
      @itzhexen0 Месяц назад

      this is garbage.

    • @mohamed_younes77
      @mohamed_younes77 Месяц назад +4

      @@itzhexen0 I'm joking because theo said it

    • @masterflitzer
      @masterflitzer Месяц назад +1

      ​@@itzhexen0well sometimes art is garbage

    • @itzhexen0
      @itzhexen0 Месяц назад

      @@masterflitzer i agree. sometimes garbage is art.

  • @boblol1465
    @boblol1465 Месяц назад +15

    editor gave up lmao

    • @lamspam
      @lamspam Месяц назад

      RUclips makes it so you can't cuss in the first 30 seconds of the video or whatever or else you get immediately demonetized

    • @boblol1465
      @boblol1465 Месяц назад

      @@lamspam oh

  • @KristjanBroderLund
    @KristjanBroderLund Месяц назад +2

    Wait, it totally broke the jQuery code though. Look at line 8 and 28 for instance (1:52).
    It changed `import { fnToString } from ...` to `import { function toString() { [native code] } } from ...`, and more `[native code]` in other places.
    It makes it even funnier how Theo just blindly trusted this and made a PR and made fun of the checklist, completely ignoring it

  • @z1_shivam
    @z1_shivam Месяц назад +5

    this is jQuery and now it is fixed. 💀

  • @einargs
    @einargs Месяц назад +17

    The disclaimer is good, and the joke is funny, but you probably shouldn't have done it anyway, because people are idiots.

    • @RomvnlyPlays
      @RomvnlyPlays Месяц назад

      Some more than others.

    • @harshmpatil
      @harshmpatil Месяц назад +3

      Yeah, don't want to remember what happened to expressjs

    • @wil-fri
      @wil-fri Месяц назад +1

      ​@@harshmpatil Don't remember what happened to JS

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Месяц назад +2

    01:56 function Object() { [native code] } : Jquery ,
    this is not valid javascript!

    • @yanmorin1503
      @yanmorin1503 Месяц назад +1

      seems to be the `constructor' property name in the jQuery.fn = jQuery.prototype declaration.

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff Месяц назад

      @@yanmorin1503does shittier use javascript non-null prototype object as hashmap?

  • @leonsantiago8860
    @leonsantiago8860 Месяц назад +1

    "this is hilarious" he said with the most dead inside voice I ever heard

  • @DaniDipp
    @DaniDipp Месяц назад +3

    So, is it deterministic or not?

    • @TimeLemur6
      @TimeLemur6 Месяц назад

      Sounds like no, unless the "random" spacing is seeded from the line it's operating on.

  • @RubixCubed3
    @RubixCubed3 Месяц назад +2

    “Shittier looks ‘PRETTY’ great.”
    I see what you did there 😂

    • @masterflitzer
      @masterflitzer Месяц назад

      now we need a prettier is shitty bad video

  • @hundvd_7
    @hundvd_7 Месяц назад

    1:52 You know what? I feel like there's a lesson to be learned with the indented imports.
    People always argue for or against ordering and grouping them by leaving empty lines, etc.
    But maybe the solution would be to uniquely indent each group, something like:
    import * from 'react';
    import * from 'jquery';
    import * from 'lodash';
    import * from 'components/Button';
    import * from 'services/Users';
    import * from './styles'
    It clearly separates the groups visually, without creating unnecessary extra lines

  • @linkarzu
    @linkarzu Месяц назад

    I love prettier to format my markdown files to keep consistency, I actually thought this was going to be better and got excited. As my daughter would say, I'm heartbroken 😂😂😂😂
    Loved it though

  • @ghostinplainsight4803
    @ghostinplainsight4803 Месяц назад +1

    I'm going to use shittier on my copy paste code from Chat GPT so my boss thinks I wrote it.

  • @mauriciopiber
    @mauriciopiber 14 дней назад

    I'm sure a few colleagues at work has been using this in the past.

  • @anonymouscommentator
    @anonymouscommentator Месяц назад

    software engineers are getting replaced faster everyday

  • @lukewood2662
    @lukewood2662 Месяц назад

    It's funny, because I was just studying clean code stuff today 😂

  • @priyanshshah6905
    @priyanshshah6905 Месяц назад

    I dont understand/cant tell if theo actually dislikes htmx or not though...

  • @anon_y_mousse
    @anon_y_mousse Месяц назад +1

    Ah classic. Microsoft makes everything they buy shittier. Submit a pull request and server error. I await the apologists in the crowd making excuses such as "he entered bad input" as though that's a valid reason for a server to crash instead of displaying a message telling you that you entered something wrong.

  • @mduvigneaud
    @mduvigneaud Месяц назад

    I've interviewed people who format code like that. :(

  • @rnater7145
    @rnater7145 Месяц назад +2

    Wow!, and no need for a config file either

  • @patricknolen916
    @patricknolen916 Месяц назад

    Do what I say, not what I do.

  • @PiyushAggarwal-hz9es
    @PiyushAggarwal-hz9es Месяц назад

    Hey Theo! Do you recommend this for production apps?

  • @0fg4
    @0fg4 Месяц назад

    1:15
    The No. 1 requirement for writing shitty code is using JavaScript.

  • @abraham_o
    @abraham_o Месяц назад +2

    Don't do what? I am already doing it. JK 😆

  • @Octogenico
    @Octogenico Месяц назад +1

    Good thumbnail

  • @omottomos
    @omottomos Месяц назад

    15 sec rule well respected!

  • @icantcodefr
    @icantcodefr Месяц назад

    theo just hire me please i wont even charge you a dollar your editor just gave up bleeping in 3 seconds 😭I'll email you my deets

    • @t3dotgg
      @t3dotgg  Месяц назад

      That's because only first 30 seconds get you demonetized ;)

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Месяц назад +1

    01:34 javascript is case sensitive so shittier breaks code

    • @anon_y_mousse
      @anon_y_mousse Месяц назад +1

      Not if it changes every instance. Can we say modified globals?

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff Месяц назад

      ​@@anon_y_mousseGeNERaTenUmbERS is exported
      other modules that import test.js need change

  • @RedStone576
    @RedStone576 Месяц назад +1

    would use this instead of prettier tbh

  • @373323
    @373323 Месяц назад +1

    you borked github, lol

  • @R0CK3T_DEV_
    @R0CK3T_DEV_ Месяц назад

    quackier

  • @christopherkoster9292
    @christopherkoster9292 Месяц назад +1

    How am I this early to one of Theo's videos?!?!

    • @Michael-sh1fb
      @Michael-sh1fb Месяц назад +4

      An achievement of a lifetime
      This will go down in the annals of history

  • @haithem8906
    @haithem8906 Месяц назад

    torture...

  • @swapnilchand338
    @swapnilchand338 Месяц назад

    Good luck python

  • @sozaro988
    @sozaro988 Месяц назад

    LGTM!

  • @alvingultiano7513
    @alvingultiano7513 Месяц назад

    🤪🤪🤪🤪🤪 That's going crazy. This is good for ADHD.

  • @faiir
    @faiir Месяц назад

    NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

  • @mitchelline
    @mitchelline Месяц назад

    The editor gave up real fast 😅

    • @FryGuy1013
      @FryGuy1013 Месяц назад +1

      I think people only bleep the first X seconds of a video because swearing in the first X seconds makes youtube stop serving it to people or something like that.

  • @aeronwolfe7072
    @aeronwolfe7072 Месяц назад

    awesome

  • @MrMassaraksh
    @MrMassaraksh Месяц назад +1

    This tool is bad, there is no random single/double quotes. So no thank you

    • @majinYaiba
      @majinYaiba 9 дней назад

      And it doesn't randomly change some of your variable names into emojis or swear words.

  • @MerthanMerter
    @MerthanMerter Месяц назад

    i literally couldn't watch