10 Things I LIKE About BUN JS

Sdílet
Vložit
  • čas přidán 31. 05. 2024
  • Along with top-speed performances, the Bun runtime (package manager, bundler, toolkit, etc.) comes with a handful of very nice and unique features.
    In this video, I'll share 10 things I like about the Bun runtime with examples to follow.
    I'm optimistic about its future and think it will succeed as a drop-in replacement for Node.js down the road.
    Join the Travis Media Community - travis.media/community
    Timestamps
    00:00 Intro
    01:23 1 Native supports without packages
    01:45 2 Typescript
    02:36 3 JSX and TSX support
    04:07 4 Native APIs
    04:52 5 Syntactically nice (File IO)
    05:58 6 Express APIs just work
    06:57 7 You can Import and Require
    07:20 8 Real hot reloading
    07:35 9 Built-in SQLite
    08:32 10 Built-in test runner
    08:45 Runner-ups
    09:05 Outro
    ** Career Path Coding Tracks **
    Web Developer - geni.us/jBigBd
    Software Engineer - geni.us/AbMxjrX
    Machine Learning - geni.us/GporLlT
    Python Developer - geni.us/tv2FJBU
    DevOps Engineer - geni.us/MgHtJ
    ** My Coding Blueprints **
    Learn to Code Web Developer Blueprint - geni.us/HoswN2
    AWS/Python Blueprint - geni.us/yGlFaRe
    Both FREE in the Travis Media Community
    ** I write regularly **
    travis.media
    ** FREE EBOOKS **
    📘 travis.media/ebooks
    ** Travis Media Community **
    📘 travis.media/community
    LET'S CONNECT!
    📰 LinkedIn ➔ / travisdot. .
    🐦 Twitter ➔ / travisdotmedia​
    🙋🏼‍♂️ Website ➔ travis.media
    #bunjs #javascript #bun
    ** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
  • Věda a technologie

Komentáře • 24

  • @owenwexler7214
    @owenwexler7214 Před 8 měsíci +2

    Been doing some prototyping over the last couple days. It's noticeably faster in development and I'm loving the out-of-box support for TypeScript and for things like top-level await that are a pita to implement in Node. Gonna hopefully be able to test it in production soon.
    Not using it for anything serious until I've done some more testing.

  • @justincooper8144
    @justincooper8144 Před 8 měsíci +4

    The amount of features is impressive, although I haven't successfully been able to get it to work in a non Hello World project, and its docker image ends up being 2x larger and memory consumption is 3.5x more than in Node. If you simply traded speed for space/memory, then you effectively did nothing because your hardware costs will still be roughly the same (or more if you never needed the extra speed).
    I am excited, yet it feels there is still a long way to go, and I am skeptical if they rectify space and memory issues (and compatibility issues), that it won't turn about overall better than Nodejs, but we'll see.
    I give it another few months or so (sadly, 1.0 isn't actually a 1.0 in the colloquial sense, at least for the runtime) and if they are still in this non-quite-compatible zone, I will be severely concerned.
    This'll also prompt Node/Deno npm/yarn etc to step their game up and perhaps adopt some things Bun is better at, so I think overall it's good for the Javascript ecosystem either way.

  • @matteostara
    @matteostara Před 8 měsíci

    Ah, thanks for these examples, I did miss a couple from the docs 😊

  • @waititsnilson1298
    @waititsnilson1298 Před 8 měsíci +2

    Only thing I have to complain is how many errors they’re are when installing dependencies, and trying to resolve them. One day it works, the other it doesn’t. Also support for windows. I don’t think it’s 1.0 ready yet. Other than that, it’s incredible

  • @ayushgogna9732
    @ayushgogna9732 Před 8 měsíci

    great video thanks

  • @aipujols
    @aipujols Před 8 měsíci

    Although I mainly use Python, I still learn a lot from this video. Thanks Travis! Good work!

    • @_nom_
      @_nom_ Před 15 dny

      Eeew, datetime.datetime.now()
      I've been programming for 19 years and I find Python so poorly thought out and tacked together.

  • @sabuein
    @sabuein Před 8 měsíci

    Thank you.

  • @megamind452
    @megamind452 Před 8 měsíci +1

    how you put things together soon nicely?

  • @cassioseffrin
    @cassioseffrin Před 7 měsíci

    It can be the next deno! better to wait before refactor all the projects!

  • @hdjfjd8
    @hdjfjd8 Před 8 měsíci +12

    U should make a tutorial on how one should use the official documentation for new frameworks to self learn and start developing projects using it , its something which is very ignored

    • @TravisMedia
      @TravisMedia  Před 8 měsíci +8

      I agree. This is a very important skill to develop. I'll try to put something together.

    • @hdjfjd8
      @hdjfjd8 Před 8 měsíci +2

      @@TravisMedia thanks Travis ,it'll be really helpful for beginners

  • @vendrieyulman2917
    @vendrieyulman2917 Před 4 měsíci

    what is the autocomplete tools you use for the terminal?

  • @soner8780
    @soner8780 Před 8 měsíci +1

    Can it also be used over npm?

  • @_nom_
    @_nom_ Před 15 dny

    Fyi, node doesn't need node fetch, it's built in these days. Hot reload is now built into node.

  • @FarhanAhmed-vj9gh
    @FarhanAhmed-vj9gh Před 8 měsíci

    Hello @Travis I hope you are doing well . Can you share some resources to learn android development from scratch , I will be really gratefull if you share . Thank You !!!

  • @nanonkay5669
    @nanonkay5669 Před 8 měsíci

    Bun is really a no-brainer

  • @gonzalomunoz2767
    @gonzalomunoz2767 Před 6 měsíci

    Let's go top level await! Still, I can't make it work with my existing express codebase yet. It's got a lot to go until it can claim to be a true nodejs drop-in replacement. This is what bothers me the most. It's a spectacular runtime, the dev experience is faster, cleaner, and overall nicer than working with node, but the false advertisement is real.

  • @monsterclass
    @monsterclass Před 8 měsíci

    I have a bun in the oven!

  • @tech2save120
    @tech2save120 Před 8 měsíci

    Hey Travis, your video actually impressed me, But the thumbnail not good at all.
    I'm a Thumbnail designer and I can increase your views up to 2x or 3x. Let me know if you need.