Unreasonably Easy Console Apps in Rust

Sdílet
Vložit
  • čas přidán 29. 06. 2024
  • Previous Episodes: • Multiuser Chat (4at)
    Chapters:
    - 0:00:00 - Announcement
    - 0:00:42 - Intro
    - 0:01:05 - Demo
    - 0:04:04 - Crossterm
    - 0:04:50 - Hello, World
    - 0:06:12 - Adding Crossterm Dependency
    - 0:07:16 - Docs
    - 0:13:51 - MoveTo
    - 0:21:15 - Clear
    - 0:22:54 - Size of the Terminal
    - 0:26:45 - Printing Text
    - 0:30:56 - Event Loop
    - 0:35:32 - Resize Event
    - 0:36:48 - Planning out the App
    - 0:38:07 - Efficient Rendering
    - 0:39:39 - React devs like my videos
    - 0:40:17 - Dash line
    - 0:50:17 - Immediate Mode
    - 0:51:53 - Rust devs joking
    - 0:52:55 - Box-drawing chars
    - 0:55:02 - Handling Input
    - 0:57:48 - Raw Mode
    - 0:59:27 - Ctrl+C
    - 1:02:11 - Chat
    - 1:04:59 - Reseting the Terminal
    - 1:06:49 - Limit Chat Vertically
    - 1:21:06 - Limit Chat Horizontally
    - 1:24:53 - Limit Prompt Horizontally
    - 1:26:48 - Pasting
    - 1:28:36 - Plugin into the Network
    - 1:38:22 - Testing locally
    - 1:39:44 - Properly handling closed read end
    - 1:40:39 - Setup tutorial
    - 1:41:06 - Continue testing locally
    - 1:43:13 - Committing
    - 1:44:06 - Deploying
    - 1:45:14 - Unhardcoding IP
    - 1:48:50 - Cleaning up prompt on Esc
    - 1:50:59 - Redeploying
    - 1:52:10 - Testing with Viewers
    - 1:53:55 - Outro
    References:
    - Crossterm - github.com/crossterm-rs/cross...
    - Tsoding - 4at - github.com/tsoding/4at
    Support:
    - BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9
    - Servers: zap-hosting.com/en/shop/donat...
  • Věda a technologie

Komentáře • 189

  • @yannick5099
    @yannick5099 Před 7 měsíci +35

    59:26 the vim beginner experience

  • @hugo4it
    @hugo4it Před 7 měsíci +44

    fun fact: crossterm supports all UNIX and Windows terminals down to Windows 7

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

      Windows without VT , amazing.

    • @redpepper74
      @redpepper74 Před 7 měsíci +3

      features: crossterm supports all UNIX and Windows terminals down to Windows 7

  • @tialaramex
    @tialaramex Před 7 měsíci +102

    ncurses is actually newer than the web - it's from 1993 and Tim starts the web in 1991
    But it's called ncurses because it's the *new* curses. The curses library was invented to improve Rogue, over a decade earlier, so curses does pre-date the web and even most GUIs

    • @monad_tcp
      @monad_tcp Před 7 měsíci +7

      I always thought it meant new cursings, compared to the old cursings.
      Because that's what you say when you have to use such libraries.

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

      ​@@monad_tcp ah old difficult cursing... like, "damn your lineage and let the fields run barren wherever you rest your head" as opposed to new more efficient cursing, "fuck you".

  • @plumcakey
    @plumcakey Před 7 měsíci +103

    i love how i am learning stuff in a better way by just watching your videos instead of tutorials

    • @ivanjermakov
      @ivanjermakov Před 7 měsíci +25

      Building stuff yourself is even better.

    • @maximus1172
      @maximus1172 Před 7 měsíci +3

      @@ivanjermakov My hands and mind stop working when I have to think about it lol

    • @javierflores09
      @javierflores09 Před 7 měsíci +21

      @@maximus1172 it is just fear of making trash, you have to be humble and accept that anything you'll make at the beginninng will in fact be trash and then just iterate it till you have something that resembles a working program

    • @iamdozerq
      @iamdozerq Před 7 měsíci +1

      @@javierflores09Not always. I can do all kind of trash but my mind is white noise 90% of time.

    • @rogo7330
      @rogo7330 Před 7 měsíci +1

      @@iamdozerq sleep better, intake tea with teaspoon of sugar, do not eat while thinking (makes you brain go into yum-yum-mode), eat before.

  • @VivekYadav-ds8oz
    @VivekYadav-ds8oz Před 7 měsíci +13

    The goal you mentioned at the start of the video (reserve the last line of the terminal for input and have conversations go on above it), reminds me when I was in high school and wanted to make my own terminal chat application. I also didn't want to use any library, and more importantly, was too lazy to learn ncurses. So I did it the non-portable hacky way as one would.
    Whenever a new message was received, I would just print "\b" `our_length` amount of times, where `our_length` is the length of the message our user is currently typing. Then print " " (space) `our_length` amount of times (\b doesn't remove the characters, it just makes ur cursor go back, so u need to write over them with a whitespace character). Now again print \b `our_length` amount of times to go back to the start of the line. Now print the received message, and then in the next line, print the user's currently typed-out message.
    This gave the illusion that the user has a dedicated text field.

  • @bwestbro
    @bwestbro Před 6 měsíci +2

    Thanks for the great videos! You inspired me to start a project I've been thinking about for a while and to use crossterm instead of a GUI.

  • @TankorSmash
    @TankorSmash Před 7 měsíci +1

    I recently boosted the sensitivity of my mousewheel, hearing yours each time you scroll reminded me. It is so nice to just go one notch and a bunch of lines now.

  • @yes-ni1od
    @yes-ni1od Před 6 měsíci +3

    Downloaded this video and watched it on a flight can’t complain

  • @iglobrothers645
    @iglobrothers645 Před 7 měsíci +19

    Your killing my productivity... That's how awesome you are 🎉

  • @Glazer209
    @Glazer209 Před 7 měsíci +20

    Didn’t even realize that cargo doc would build local docs for deps, that’s incredibly useful

    • @TonyUnderscore
      @TonyUnderscore Před 7 měsíci +4

      you also have the option to skip them with "--no-deps" I believe. Sometimes even docs take a while if you have a massive dependency tree and you just cargo cleaned lol

  • @avidiaa
    @avidiaa Před 7 měsíci +5

    You had become my first source of knowledge in programming and ... entertainment! Thank you really Tsoding

  • @prezes4478
    @prezes4478 Před 7 měsíci +4

    Very informative video! I finally know how to flush, and how to clean

  • @jimhrelb2135
    @jimhrelb2135 Před 7 měsíci +38

    I learned about `cargo tree` today. Love the paranoia-oriented programming approach, helps keep react andys from `npm install` onto 800+ deps for a hello world project at bay

    • @Bobbias
      @Bobbias Před 7 měsíci +10

      That's partly due to node's godawful community though. When you're developing a library, you need to be extra aware of any dependencies you pull in. For small things which are only like 1 or 2 functions, it's often a better idea to just recreate that functionality yourself rather than include an otherwise unnecessary extra dependency. When writing something which isn't intended to be consumed as a dependency itself there's less need to be quite so paranoid about things.

    • @Jack-sy6di
      @Jack-sy6di Před 7 měsíci

      @@Bobbias A decent model might be to have two ways of adding a library, either as a "dependency" or just copy-pasting it into your source tree. You could imagine something like "npm copy" to just stick the files right in your src/ so you can use them or modify them as if they were your own source code.

    • @monad_tcp
      @monad_tcp Před 7 měsíci +2

      ​@@Bobbiasthe literally can't do that, imagine duplicating code that already exists elsewhere in the world. Imagine writing your own code.
      Totally "invented here" syndrome. Which is the opposite of not-invented-here in which you never use something you didn't make yourself. (which to be fair greatly simplifies and speeds up things, cut extremely the need for using outside libraries to a minimum)

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

      ​@@Jack-sy6dithere's also the problem that JS is stupid and doesn't have a proper STL

  • @konstantinrebrov675
    @konstantinrebrov675 Před 7 měsíci +1

    This is a very good knowledge for RUST developers! Spasibo

  • @oxydiass
    @oxydiass Před 7 měsíci +12

    I speak french and it cannot do that 11:43
    Best I can think of is «eaux», «noyaux» or «accueil»

  • @kxxxk_
    @kxxxk_ Před 7 měsíci +14

    this channel is simply gold

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

    Good stuff. Thanks a lot!

  • @hariranormal5584
    @hariranormal5584 Před 7 měsíci +15

    I am starting to like this guy. I hate anyone coding. But your commentary also just is amazing

    • @slicerabbit6166
      @slicerabbit6166 Před 7 měsíci +2

      you hate programmers?

    • @hariranormal5584
      @hariranormal5584 Před 7 měsíci +2

      @@slicerabbit6166
      Ye. Dw, I hate myself first. My opinions anyways shouldn't matter.

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

      why do you hate anyone wut @@hariranormal5584

  • @ME0WMERE
    @ME0WMERE Před 7 měsíci +2

    The hybrid Gopher/Ferris mascot is one of the most cursed programming-related things I've seen

  • @wtfisgoingon535
    @wtfisgoingon535 Před 7 měsíci +13

    In my humble opinion crossterm is here to stay. Lots of big crates/projects use it. In the worse case a fork will be made like for tui-rs (aka ratatui now) and the transition was seamless !

    • @TsodingDaily
      @TsodingDaily  Před 7 měsíci +16

      > In my humble opinion crossterm is here to stay.
      lol

    • @real_ouss
      @real_ouss Před 7 měsíci +3

      What? Is it dead already? 😜

    • @wtfisgoingon535
      @wtfisgoingon535 Před 7 měsíci +5

      @@TsodingDaily Hehe don't quote me later but i use crossterm since 2019/2020 so i don't see it go away anytime soon.

    • @monad_tcp
      @monad_tcp Před 7 měsíci +4

      Why do people feel this need for validation.
      Does the library do what you need ?
      Do any other libraries have a feature the one you are using doesn't have, no, then I fail to see the problem. If they have then you swap the libraries, or implement the feature in the library you're using , this is open source, baby.
      And you literally have the source to fix shit later if it's needed.
      Why must people only use what's popular. I don't get it, what a stupid metric. If something works, it works, this is engineering, not fashion.

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

      @@monad_tcp Is this message addressed to me ?

  • @fhools
    @fhools Před 7 měsíci +2

    this is what coding is meant to be like. just having fun learning a library. none of this learn what a hook is, why we dont want class components,, call back vs async. I dont want a new paradigm of coding, i just want to show something on the screen.

  • @im-anomalies
    @im-anomalies Před 7 měsíci +3

    You really deserve more subs dude, a lot more

  • @GrindAlchemyTech
    @GrindAlchemyTech Před 6 měsíci +1

    😅 you make it a fun journey... thankyou

  • @mire6134
    @mire6134 Před 7 měsíci +3

    11:24 ~ 11:50 was hilarious

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

    Thank you for way how you do stuff. I learned a lot about workflow.
    Btw how you edit multiple lines in vim when adding second binary?

  • @lame_lexem
    @lame_lexem Před 7 měsíci +11

    i like to use `anyhow::Result` in my projects cos it's shorter to use `?` than `unwrap` and it's basically `Box` but instead of `Box` they use `Own` or something
    and provide helper functions like `context` and `bail!`

    • @yaksher
      @yaksher Před 7 měsíci +6

      Specifically, `Box` puts the vtable pointer in the box struct itself, turning it into a wide pointer; by contrast, `anyhow` puts the vtable pointer on the heap next to the thing that's boxed. This is slower, since it requires two dependent indirection where the first approach allows for parallel access (which with CPU pipelining is faster), but you don't really care if accessing your error is marginally slower usually and it means that if your non-error type in result is

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

      You certainly don’t need a crate for handling errors and be able to use the ? operator.. All you need is a generic error struct and just implement From for MyError and you can use question mark operator everywhere.

    • @Bobbias
      @Bobbias Před 7 měsíci +2

      @@yaksher Ideally your system shouldn't be throwing errors often enough for a performance impact like that to matter. I realize that's not always possible though, so of course there will be times where that may actually matter. But in general, that shouldn't be something you should worry about until the problem actually happens.

    • @yaksher
      @yaksher Před 7 měsíci +1

      ​@@BobbiasThat was... exactly the point I made, yes.

    • @Bobbias
      @Bobbias Před 7 měsíci +2

      ​@@yaksher People on the internet love to think that some practically irrelevant difference in performance somehow actually matters in their code, and nowhere did you say "this performance difference is meaningless".
      I just wanted to make that crystal clear to the sizable portion of Tsoding's audience who are not experienced programmers and who have that tendency to be terrified of anything that remotely sounds like it might hurt performance without actually understanding things.

  • @Ma_X64
    @Ma_X64 Před 7 měsíci +1

    It seems that the import section is growing noticeably faster than the program code itself. :D

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

    Funny this video just popped up as im switching from nodejs to rust. Coincidentally I learned about CLI just before switching. Will be fun.

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

    thank you x 3

  • @uncleabe8147
    @uncleabe8147 Před 2 měsíci

    tats was awesome

  • @dieSpinnt
    @dieSpinnt Před 5 měsíci

    "Oh it even can handle mouse events. I am intrigued!"
    Me: On the console? HERETIC!!!
    Hehehe, thanks for the video, Tsoder!:)

  • @Mrme-cn9je
    @Mrme-cn9je Před 7 měsíci +1

    Would you think of making a rust tutorial series to teach people rust?

  • @adarshdhital007
    @adarshdhital007 Před 7 měsíci +2

    Hi, currently addicted to Rust because of your rust videos...

  • @thirdvect0r
    @thirdvect0r Před 7 měsíci +1

    Malding over skill issues, classic zozing

  • @rogo7330
    @rogo7330 Před 7 měsíci +4

    Actually not having a client and make everything work over something simple as netcat can be beneficial. The only problem is that server must do all the work of setting up terminal for you. Otherwise you can do netcat with rlwrap, but this limits you to one-line input, or do pipes in folders like ii does for IRC, where you can just cat file 'out' and write to other pipe 'in'.

  • @angelcaru
    @angelcaru Před 3 měsíci +1

    "Can your French do that?" - Tsoding

  • @thoriqadillah7780
    @thoriqadillah7780 Před 7 měsíci +3

    As of 39:13, I don't know if you will explain more on the terminal flickering or not. But i tried build a terminal animation but a lot more simpler, and it was because of your previous video about bouncing ball on the terminal. I think the flickering can be solved by rendering it really fast like 60 frame per second

    • @monad_tcp
      @monad_tcp Před 7 měsíci +2

      It's amazing when terminals can stream text at tens of megabytes per second.

    • @Anton_Sh.
      @Anton_Sh. Před 6 měsíci

      @@monad_tcp can they&

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

    I like his folder size at the bottom of the terminal 😎😈😎

  • @callyral
    @callyral Před 7 měsíci +3

    youtube compression really dislikes scrolling

  • @christopher8641
    @christopher8641 Před 7 měsíci +6

    Would you mind telling me how i should feel about the rust programming language? I need something topical and snappy. Please I'm trying to base my whole personality off of this programming tool. Dude please

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz Před 7 měsíci +1

      This communiity seems divided.. you'll end up having a bipolar personality lol

  • @dieSpinnt
    @dieSpinnt Před 5 měsíci

    terminal raw mode?
    It is good practice to safe the original states of the terminal settings that you change and restore them on exit (guaranteed by something like an exit or defer mechanism).
    That is the first and last thing you should always do. Well, besides that little ctrl-c problem, hehehe

  • @user-tf5cy3hl9d
    @user-tf5cy3hl9d Před 7 měsíci +1

    Maybe a weird question I guess but in your recent AMA, your answer to the question “how to learn programming” was to just fuck around. I personally struggle with getting an idea for a project and having the motivation for it. If someone makes me write some program or code, I will do research and do the best I can but I just struggle with getting an idea for a person project. What would you (or anyone) recommend?

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

      I think he's encouraging people to follow their curiosity. That said, you might not feel any particular inspiration or passion for making projects, and that can be OK too. Have you tried making tutorials to teach others? Or, have you tried taking any courses? Some people learn better with structure, accountability, and clear goals, versus exploratory/self-directed learning.

    • @emptybottle1200
      @emptybottle1200 Před 7 měsíci +1

      i was inspired to have a simple personal project because of a movie, i watch some things that may inspire me to create something, you could try it this way.

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

    26:31 yes, but only if you use Canvas

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

    Hey i wanna know what code editor you use for gui of c++

  • @johanngambolputty5351
    @johanngambolputty5351 Před 7 měsíci +7

    GUI is also very easy in rust with something like egui & egui_inspect (fork, because egui_inspect is kinda dead). I've been meaning to try clap and ratatui for cli and tui, but not sure there's that much point (for me, since adding egui_inspect to my structs is trivial enough, except for maybe headless access).

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

      i can attest as someone who isnt that good at making actual guis that ratatui and clap/argh are very nice and easy to work with

    • @barbiefan3874
      @barbiefan3874 Před 7 měsíci +1

      egui_inspect is a fork of egui? egui is dead? what are you on about?
      egui_inspect is a crate with derive macros for egui itself
      egui is alive and well, last commit 6h ago

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

      ​@@barbiefan3874 egui_inspect is dead, egui is of course fine and there are other inspect crates that are probably alive

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

      @@barbiefan3874 I mean I use a fork of egui_inspect

    • @not_ever
      @not_ever Před 7 měsíci +4

      @@barbiefan3874 I dont think that is what they said. They said they use egui and a fork of egui_inspect "because egui_inspect is kinda dead"

  • @opsJson_
    @opsJson_ Před 7 měsíci +5

    i'm missing C videos

    • @c4llv07e
      @c4llv07e Před 7 měsíci +1

      i'm missing Haskell videos

  • @10inall28
    @10inall28 Před 7 měsíci

    Sir!
    Can you please explain Rust Lifetimes concept from ground

  • @okage_
    @okage_ Před 7 měsíci +1

    yay

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

    Another tsoding vod to get to sleep.

  • @vanvothe4817
    @vanvothe4817 Před 7 měsíci +1

    Do you use lsp in emacs?

  • @thederpykrafter
    @thederpykrafter Před 25 dny

    I still find it easier to just write a bash script with escape sequences

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

    29:37 smooth :)

  • @tauraamui
    @tauraamui Před 7 měsíci +7

    At about 13:59ish minutes in you got annoyed about the compiler telling you you had unused imports and to remove them, but it then required you to put it back. The reason you initially had the unused import warning was because of your unwrap being in the wrong place, and therefore it was never actually requiring that type to be in scope, until you moved unwap to the correct line. I am no fan of Rust, but to be fair that isn't something that the compiler would have known to account for.

    • @anon_y_mousse
      @anon_y_mousse Před 7 měsíci +2

      That it warns of unused imports is something it can handle. It just shouldn't do that.

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

      Except it is, why do you need to import things you don't use directly, aka transitive dependencies. Just do Hindley&Milter type inference on that. I'm kidding, that would make compile times almost infinite .
      Unless Rust is full of extension namespaces .
      Then it really is fair

  • @fiona9891
    @fiona9891 Před 2 měsíci

    watching you manually type out all of the use items is driving me insane
    i have gotten too used to autocomplete. it's eroding my brain

  • @lamprospitsillou6325
    @lamprospitsillou6325 Před 7 měsíci +1

    Why did raw mode fix the issue?

  • @xsamuelx3603
    @xsamuelx3603 Před 7 měsíci +1

    Felca Programador :)

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

    the jokes are on point with this one

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

    I have a question, why is it so hard to center an element in rust? ^^

  • @Simon-xi8tb
    @Simon-xi8tb Před 7 měsíci +1

    React bros don't even know that Windows was written before React.

  • @Eugensson
    @Eugensson Před 2 měsíci

    English: «Queueable»
    Luxembourgish: hold my beer... «Zweeeeëg»!

  • @aqibyaseen2122
    @aqibyaseen2122 Před 7 měsíci +1

    28:47 😵‍💫😵‍💫 i am supposed to be developing web right now.
    .
    .
    .
    .
    ..

  • @raidensama1511
    @raidensama1511 Před 7 měsíci +2

    Actually the “{x:.

    • @gishee18
      @gishee18 Před 7 měsíci +4

      "-" * 30

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

      @@gishee18 yes and that too

    • @Bobbias
      @Bobbias Před 7 měsíci +3

      Rust's use of a sensible format syntax is much nicer to work with. C's format syntax is awful, even disregarding how broken printf et. al. are.

    • @monad_tcp
      @monad_tcp Před 7 měsíci +1

      ​@@BobbiasC would be awful if it had a format capability.
      printf is just a 0-day enabler.
      Shots fired.

  • @dieSpinnt
    @dieSpinnt Před 5 měsíci

    ... does INCLUDE a call to if needed.
    Just because you guys otherwise hate superfluous keystrokes (Emacs-User, hehe) like the devil, don't you?:) :P
    But I get it. You do this because of your "IDE" and the headless duck programming style (error -> correct, error -> correct, error -> correct, and so on, hehehe)
    (secret-pro-200-iq-monster-tip-hint: rust-analyzer in the IDE/Emacs ... )

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

    "Queue can fail"
    Wait... if it can fail... shouldn't the rust compiler just have... rejected the code altogether? I thought you weren't allowed to ignore fail cases in Rust... at least not without unrwapping or something...

  • @ademmohammed3939
    @ademmohammed3939 Před 4 měsíci +1

    This guy is prime on crack!

  • @Ma_X64
    @Ma_X64 Před 7 měsíci +1

    Я так яростно закивал about that idiomatic shit, что ёжнулся головой о полку.

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

    You can now add the -Zthreads=8 environment flag on the nigthly build to use the specified number of threads during frontend compilation which should make it faster.

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

    This is Rust program.. so be patient. lol nice.

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

    Is that Neovim?

  • @yaksher
    @yaksher Před 7 měsíci +3

    @1:01:30 Named loops + breaks crying in the distance.
    @1:10:10 Range indexing, crying in the distance. Why would you just index from where you need instead of iterating the entire thing every time. That would be insane.
    @1:18:20 Sees it asking for parenthesis, immediately gives up instead of just putting the parenthesis where it said to (granted, the thing he ended up with is better, but still)

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

      Yeah, that iterator being consumed from index 0 was cringe. 😂 Maybe the quit flag is OK, because you don't know what your cleanup needs, long-term.

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

      @@ElPikacupacabra I mean, in Rust:
      - you very rarely need cleanup because it's almost always done through destructors
      - you can just... put the cleanup after the loop? Like you would anyway?

  • @matteo.veraldi
    @matteo.veraldi Před 5 měsíci

    I cannot accept that you are not using autocomplete in Rust.

  • @FDominicus
    @FDominicus Před 7 měsíci +2

    It seems the more often I see Rust, the more I dislike it ...

    • @peter9477
      @peter9477 Před 6 měsíci +2

      Your loss, I guess. The benefits are well worth pushing past that early prejudice based on an emotional reaction to the syntax (assuming that's all it is).

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

      @@peter9477 You may be right. But I doubt it really is a loss ....

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

    54:47 It's an Ukrainian flag? What is it doing there?

  • @MurtagBY
    @MurtagBY Před 7 měsíci +1

    At minute 10 it is sort of strange to see you making "fun" of the term queue and telling that the authors didn't know the term batch.
    Are you deadly sure one preceeds and fully includes the another?

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

    India💔

  • @xsamuelx3603
    @xsamuelx3603 Před 7 měsíci +1

    :)

  • @abcdefg-nu4xj
    @abcdefg-nu4xj Před 7 měsíci +58

    is rust still the future or was it ruined because all the drama in the community ..?

    • @TsodingDaily
      @TsodingDaily  Před 7 měsíci +272

      Have you even tried programming in it or do you treat as just a fashion item?

    • @vinos1629
      @vinos1629 Před 7 měsíci +85

      Rust is a tool, imagine saying I will not use a hammer because I don’t like the hammer making company

    • @apenaswellignton
      @apenaswellignton Před 7 měsíci +35

      @@vinos1629 i mean, well, in some contexts this argument may apply. what if the said company makes shitty hammers? 😅

    • @poggybitz513
      @poggybitz513 Před 7 měsíci +11

      @@vinos1629 I say that. But then again, I work in hardware design, we love politics in our industry. The company I work for, arm, has a policy to only use tools from the people who aren't total dipsticks and is very anti open source. Not saying rust is that, rust is baby compared to drama in our industry.

    • @vinos1629
      @vinos1629 Před 7 měsíci +7

      @@apenaswellignton you can argue rust is shitty, but for me it’s a useful tool in a lot of applications, If they make it shit I will stop using jt

  • @OmOhm-gn7yz
    @OmOhm-gn7yz Před 4 měsíci

    You keep repeating yourself, I've noticed that it comes more often when you are out of the script. It denotes that your body is making use of Alternate Current for tasks that asks for Continuous Current. It is a backup so your system won't stall, but renders a choppier experience, undermining all your apparent strengths. Perfection comes primarily from brushing off imperfections. But it doesn't mean that the signal at the end will be better. In our case, perfection is when everything functions as expected, without extra loops.

  • @youtubeforcinghandlessucks
    @youtubeforcinghandlessucks Před 7 měsíci +2

    i wonder if this terminal library can put a character in the lower right corner of the terminal without causing it to scroll to a new line. thats like the ultimate challenge for terminal libraries

    • @redpepper74
      @redpepper74 Před 7 měsíci +1

      I was working along with this video to make my own terminal app and unfortunately the answer seems to be no for windows

  • @bassguitarbill
    @bassguitarbill Před 7 měsíci +2

    41:39 lol I've been rereading the perl book, and one of their fundamental operators, alongside `+` and `*`, is `x`, the "string multiplication" operator, so literally `stdout.write("-" x w)` would do what you need here. I still don't know if perl is a good language but it's definitely a fun language

    • @aspectreishauntingeurope
      @aspectreishauntingeurope Před 7 měsíci +13

      that's so cursed

    • @potatomaaan1757
      @potatomaaan1757 Před 7 měsíci +3

      In python you can also do `"-" * w`

    • @benisrood
      @benisrood Před 7 měsíci +1

      How is string multiplication defined as an operation?

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

      ​@@benisroodOperator overloading? Heck, you might even be able to define a trait in Rust that lets you do the same.

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

      Perl is quite powerful for string manipulations, but a real pain to read. It leads people to write very cryptic code.

  • @liminal6823
    @liminal6823 Před 5 měsíci

    legacy-go-version

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

    I don't get why urmom wasn't queued but still waited for the clear and move with no flush

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

    やっぱrustってクソっすね、忌憚の無い意見ってやつっす