Prettier? Nah I got something way better

แชร์
ฝัง
  • เผยแพร่เมื่อ 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!

    • @cyrus01337
      @cyrus01337 หลายเดือนก่อน +1

      That poor engine

  • @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 หลายเดือนก่อน

      TH-cam 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