Prettier? Nah I got something way better

Sdílet
Vložit
  • čas přidán 25. 08. 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 🙏

Komentáře • 93

  • @bobnobrain
    @bobnobrain Před měsícem +343

    Breaking news: Theo harasses open source projects

  • @marcelomagalhaes4508
    @marcelomagalhaes4508 Před měsícem +304

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

    • @rodjenihm
      @rodjenihm Před měsícem +19

      git diff
      >

    • @masterflitzer
      @masterflitzer Před měsícem

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

    • @breadles5
      @breadles5 Před měsícem +25

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

    • @aaronwilldjaba
      @aaronwilldjaba Před měsícem

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

    • @Johnny_JTH
      @Johnny_JTH Před měsícem +2

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

  • @stephenjames2951
    @stephenjames2951 Před měsícem +48

    Ok 500 response was the funniest point in the video

    • @luketurner314
      @luketurner314 Před měsícem +6

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

    • @KaKi87
      @KaKi87 Před měsícem

      @@luketurner314 Parser, actually.

  • @rodjenihm
    @rodjenihm Před měsícem +90

    Ah, finally a library that replaces my code.

  • @ScorpioneOrzion
    @ScorpioneOrzion Před měsícem +27

    This was the perfect response of github 🤣 4:12

    • @masterflitzer
      @masterflitzer Před měsícem +4

      can't script this shit, so funny lmao

  • @JarheadCrayonEater
    @JarheadCrayonEater Před měsícem +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!

  • @taintedtapper
    @taintedtapper Před měsícem +71

    0:17 nice one editor

    • @masterflitzer
      @masterflitzer Před měsícem +9

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

    • @birthdayzrock1426
      @birthdayzrock1426 Před měsícem +6

      @@masterflitzer isn't it first 15 seconds?

    • @masterflitzer
      @masterflitzer Před měsícem +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 Před měsícem

      @@masterflitzer well fuck

    • @masterflitzer
      @masterflitzer Před měsícem

      @@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

  • @zwanz0r
    @zwanz0r Před měsícem +13

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

  • @ambuj.k
    @ambuj.k Před měsícem +6

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

  • @everyhandletaken
    @everyhandletaken Před měsícem +20

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

  • @mohamed_younes77
    @mohamed_younes77 Před měsícem +21

    ✨This is art✨

    • @itzhexen0
      @itzhexen0 Před měsícem

      this is garbage.

    • @mohamed_younes77
      @mohamed_younes77 Před měsícem +4

      @@itzhexen0 I'm joking because theo said it

    • @masterflitzer
      @masterflitzer Před měsícem +1

      ​@@itzhexen0well sometimes art is garbage

    • @itzhexen0
      @itzhexen0 Před měsícem

      @@masterflitzer i agree. sometimes garbage is art.

  • @waveiro
    @waveiro Před měsícem +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 Před měsícem

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

  • @boblol1465
    @boblol1465 Před měsícem +15

    editor gave up lmao

    • @lamspam
      @lamspam Před měsícem

      CZcams 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 Před měsícem

      @@lamspam oh

  • @z1_shivam
    @z1_shivam Před měsícem +5

    this is jQuery and now it is fixed. 💀

  • @einargs
    @einargs Před měsícem +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 Před měsícem

      Some more than others.

    • @harshmpatil
      @harshmpatil Před měsícem +3

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

    • @wil-fri
      @wil-fri Před měsícem +1

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

  • @KristjanBroderLund
    @KristjanBroderLund Před měsícem +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

  • @RubixCubed3
    @RubixCubed3 Před měsícem +2

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

    • @masterflitzer
      @masterflitzer Před měsícem

      now we need a prettier is shitty bad video

  • @leonsantiago8860
    @leonsantiago8860 Před měsícem +1

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

  • @DaniDipp
    @DaniDipp Před měsícem +3

    So, is it deterministic or not?

    • @TimeLemur6
      @TimeLemur6 Před měsícem

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

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Před měsícem +2

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

    • @yanmorin1503
      @yanmorin1503 Před měsícem +1

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

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff Před měsícem

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

  • @anonymouscommentator
    @anonymouscommentator Před měsícem

    software engineers are getting replaced faster everyday

  • @ghostinplainsight4803
    @ghostinplainsight4803 Před měsícem +1

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

  • @hundvd_7
    @hundvd_7 Před měsícem

    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

  • @mauriciopiber
    @mauriciopiber Před 17 dny

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

  • @lukewood2662
    @lukewood2662 Před měsícem

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

  • @linkarzu
    @linkarzu Před měsícem

    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

  • @PiyushAggarwal-hz9es
    @PiyushAggarwal-hz9es Před měsícem

    Hey Theo! Do you recommend this for production apps?

  • @priyanshshah6905
    @priyanshshah6905 Před měsícem

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

  • @patricknolen916
    @patricknolen916 Před měsícem

    Do what I say, not what I do.

  • @rnater7145
    @rnater7145 Před měsícem +2

    Wow!, and no need for a config file either

  • @flamakespark
    @flamakespark Před 3 dny

    1. Install `shittier` in your co-worker's PC
    2. $ alias prettier=shittier
    3. profit 😈

  • @anon_y_mousse
    @anon_y_mousse Před měsícem +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 Před měsícem

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

  • @0fg4
    @0fg4 Před měsícem

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

  • @RedStone576
    @RedStone576 Před měsícem +1

    would use this instead of prettier tbh

  • @Octogenico
    @Octogenico Před měsícem +1

    Good thumbnail

  • @abraham_o
    @abraham_o Před měsícem +2

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

  • @omottomos
    @omottomos Před měsícem

    15 sec rule well respected!

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff Před měsícem +1

    01:34 javascript is case sensitive so shittier breaks code

    • @anon_y_mousse
      @anon_y_mousse Před měsícem +1

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

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff Před měsícem

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

  • @373323
    @373323 Před měsícem +1

    you borked github, lol

  • @R0CK3T_DEV_
    @R0CK3T_DEV_ Před měsícem

    quackier

  • @900bands
    @900bands Před měsícem

    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  Před měsícem

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

  • @aeronwolfe7072
    @aeronwolfe7072 Před měsícem

    awesome

  • @haithem8906
    @haithem8906 Před měsícem

    torture...

  • @swapnilchand338
    @swapnilchand338 Před měsícem

    Good luck python

  • @christopherkoster9292
    @christopherkoster9292 Před měsícem +1

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

    • @Michael-sh1fb
      @Michael-sh1fb Před měsícem +4

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

  • @faiir
    @faiir Před měsícem

    NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

  • @alvingultiano7513
    @alvingultiano7513 Před měsícem

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

  • @mitchelline
    @mitchelline Před měsícem

    The editor gave up real fast 😅

    • @FryGuy1013
      @FryGuy1013 Před měsícem +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.

  • @sozaro988
    @sozaro988 Před měsícem

    LGTM!

  • @MrMassaraksh
    @MrMassaraksh Před měsícem +1

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

    • @majinYaiba
      @majinYaiba Před 12 dny

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

  • @MerthanMerter
    @MerthanMerter Před měsícem

    i literally couldn't watch