Unreasonably Easy Console Apps in Rust

  Рет қаралды 89,237

Tsoding Daily

Tsoding Daily

Күн бұрын

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

Пікірлер: 188
@tialaramex
@tialaramex 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
​@@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 6 ай бұрын
i love how i am learning stuff in a better way by just watching your videos instead of tutorials
@ivanjermakov
@ivanjermakov 6 ай бұрын
Building stuff yourself is even better.
@maximus1172
@maximus1172 6 ай бұрын
@@ivanjermakov My hands and mind stop working when I have to think about it lol
@javierflores09
@javierflores09 6 ай бұрын
@@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 6 ай бұрын
@@javierflores09Not always. I can do all kind of trash but my mind is white noise 90% of time.
@rogo7330
@rogo7330 6 ай бұрын
@@iamdozerq sleep better, intake tea with teaspoon of sugar, do not eat while thinking (makes you brain go into yum-yum-mode), eat before.
@hugo4it
@hugo4it 6 ай бұрын
fun fact: crossterm supports all UNIX and Windows terminals down to Windows 7
@monad_tcp
@monad_tcp 6 ай бұрын
Windows without VT , amazing.
@redpepper74
@redpepper74 6 ай бұрын
features: crossterm supports all UNIX and Windows terminals down to Windows 7
@yannick5099
@yannick5099 6 ай бұрын
59:26 the vim beginner experience
@lowlevelcodingch
@lowlevelcodingch 2 ай бұрын
lol
@VivekYadav-ds8oz
@VivekYadav-ds8oz 6 ай бұрын
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.
@TankorSmash
@TankorSmash 6 ай бұрын
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.
@bwestbro
@bwestbro 5 ай бұрын
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.
@jimhrelb2135
@jimhrelb2135 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
@@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 6 ай бұрын
​@@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 6 ай бұрын
​@@Jack-sy6dithere's also the problem that JS is stupid and doesn't have a proper STL
@avidiaa
@avidiaa 6 ай бұрын
You had become my first source of knowledge in programming and ... entertainment! Thank you really Tsoding
@AlexK544
@AlexK544 6 ай бұрын
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?
@iglobrothers645
@iglobrothers645 6 ай бұрын
Your killing my productivity... That's how awesome you are 🎉
@prezes4478
@prezes4478 6 ай бұрын
Very informative video! I finally know how to flush, and how to clean
@konstantinrebrov675
@konstantinrebrov675 6 ай бұрын
This is a very good knowledge for RUST developers! Spasibo
@oxydiass
@oxydiass 6 ай бұрын
I speak french and it cannot do that 11:43 Best I can think of is «eaux», «noyaux» or «accueil»
@Glazer209
@Glazer209 6 ай бұрын
Didn’t even realize that cargo doc would build local docs for deps, that’s incredibly useful
@TonyUnderscore
@TonyUnderscore 6 ай бұрын
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
@Shahnawaz_Laghari
@Shahnawaz_Laghari 6 ай бұрын
Hey i wanna know what code editor you use for gui of c++
@kxxxk_
@kxxxk_ 6 ай бұрын
this channel is simply gold
@nathanoy_
@nathanoy_ 6 ай бұрын
bump
@yes-ni1od
@yes-ni1od 5 ай бұрын
Downloaded this video and watched it on a flight can’t complain
@jhtakalo
@jhtakalo 6 ай бұрын
Good stuff. Thanks a lot!
@wtfisgoingon535
@wtfisgoingon535 6 ай бұрын
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 6 ай бұрын
> In my humble opinion crossterm is here to stay. lol
@real_ouss
@real_ouss 6 ай бұрын
What? Is it dead already? 😜
@wtfisgoingon535
@wtfisgoingon535 6 ай бұрын
@@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 6 ай бұрын
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 6 ай бұрын
@@monad_tcp Is this message addressed to me ?
@vanvothe4817
@vanvothe4817 6 ай бұрын
Do you use lsp in emacs?
@notSoAnonyymus
@notSoAnonyymus 6 ай бұрын
Funny this video just popped up as im switching from nodejs to rust. Coincidentally I learned about CLI just before switching. Will be fun.
@lame_lexem
@lame_lexem 6 ай бұрын
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 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 6 ай бұрын
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 6 ай бұрын
@@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 6 ай бұрын
​@@BobbiasThat was... exactly the point I made, yes.
@Bobbias
@Bobbias 6 ай бұрын
​@@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.
@hariranormal5584
@hariranormal5584 6 ай бұрын
I am starting to like this guy. I hate anyone coding. But your commentary also just is amazing
@slicerabbit6166
@slicerabbit6166 6 ай бұрын
you hate programmers?
@hariranormal5584
@hariranormal5584 6 ай бұрын
@@slicerabbit6166 Ye. Dw, I hate myself first. My opinions anyways shouldn't matter.
@GRAYgauss
@GRAYgauss 5 ай бұрын
why do you hate anyone wut @@hariranormal5584
@ME0WMERE
@ME0WMERE 6 ай бұрын
The hybrid Gopher/Ferris mascot is one of the most cursed programming-related things I've seen
@fhools
@fhools 6 ай бұрын
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.
@thoriqadillah7780
@thoriqadillah7780 6 ай бұрын
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 6 ай бұрын
It's amazing when terminals can stream text at tens of megabytes per second.
@Anton_Sh.
@Anton_Sh. 5 ай бұрын
@@monad_tcp can they&
@Mrme-cn9je
@Mrme-cn9je 6 ай бұрын
Would you think of making a rust tutorial series to teach people rust?
@lamprospitsillou6325
@lamprospitsillou6325 6 ай бұрын
Why did raw mode fix the issue?
@GrindAlchemyTech
@GrindAlchemyTech 6 ай бұрын
😅 you make it a fun journey... thankyou
@im-anomalies
@im-anomalies 6 ай бұрын
You really deserve more subs dude, a lot more
@Ma_X64
@Ma_X64 6 ай бұрын
It seems that the import section is growing noticeably faster than the program code itself. :D
@rogo7330
@rogo7330 6 ай бұрын
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'.
@christopher8641
@christopher8641 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 6 ай бұрын
This communiity seems divided.. you'll end up having a bipolar personality lol
@abzrg
@abzrg 6 ай бұрын
thank you x 3
@user-tf5cy3hl9d
@user-tf5cy3hl9d 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
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.
@10inall28
@10inall28 6 ай бұрын
Sir! Can you please explain Rust Lifetimes concept from ground
@uncleabe8147
@uncleabe8147 Ай бұрын
tats was awesome
@frandrumming
@frandrumming 3 ай бұрын
I have a question, why is it so hard to center an element in rust? ^^
@PilarczykM
@PilarczykM 19 күн бұрын
I like his folder size at the bottom of the terminal 😎😈😎
@dieSpinnt
@dieSpinnt 4 ай бұрын
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
@johanngambolputty5351
@johanngambolputty5351 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
​@@barbiefan3874 egui_inspect is dead, egui is of course fine and there are other inspect crates that are probably alive
@johanngambolputty5351
@johanngambolputty5351 6 ай бұрын
@@barbiefan3874 I mean I use a fork of egui_inspect
@not_ever
@not_ever 6 ай бұрын
@@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"
@monad_tcp
@monad_tcp 6 ай бұрын
26:31 yes, but only if you use Canvas
@dieSpinnt
@dieSpinnt 4 ай бұрын
"Oh it even can handle mouse events. I am intrigued!" Me: On the console? HERETIC!!! Hehehe, thanks for the video, Tsoder!:)
@mire6134
@mire6134 6 ай бұрын
11:24 ~ 11:50 was hilarious
@angelcaru
@angelcaru 2 ай бұрын
"Can your French do that?" - Tsoding
@okage_
@okage_ 6 ай бұрын
yay
@thirdvect0r
@thirdvect0r 6 ай бұрын
Malding over skill issues, classic zozing
@adarshdhital007
@adarshdhital007 6 ай бұрын
Hi, currently addicted to Rust because of your rust videos...
@tauraamui
@tauraamui 6 ай бұрын
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 6 ай бұрын
That it warns of unused imports is something it can handle. It just shouldn't do that.
@monad_tcp
@monad_tcp 6 ай бұрын
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
@callyral
@callyral 6 ай бұрын
youtube compression really dislikes scrolling
@thederpykrafter
@thederpykrafter 6 сағат бұрын
I still find it easier to just write a bash script with escape sequences
@v2ike6udik
@v2ike6udik 3 ай бұрын
29:37 smooth :)
@Eugensson
@Eugensson Ай бұрын
English: «Queueable» Luxembourgish: hold my beer... «Zweeeeëg»!
@Eugensson
@Eugensson Ай бұрын
Dutch: «koeieuier»
@opsJson_
@opsJson_ 6 ай бұрын
i'm missing C videos
@c4llv07e
@c4llv07e 6 ай бұрын
i'm missing Haskell videos
@mrcrafter_y
@mrcrafter_y 6 ай бұрын
Another tsoding vod to get to sleep.
@xsamuelx3603
@xsamuelx3603 6 ай бұрын
Felca Programador :)
@brdevll
@brdevll 6 ай бұрын
the jokes are on point with this one
@aqibyaseen2122
@aqibyaseen2122 6 ай бұрын
28:47 😵‍💫😵‍💫 i am supposed to be developing web right now. . . . . ..
@raidensama1511
@raidensama1511 6 ай бұрын
Actually the “{x:.
@gishee18
@gishee18 6 ай бұрын
"-" * 30
@raidensama1511
@raidensama1511 6 ай бұрын
@@gishee18 yes and that too
@Bobbias
@Bobbias 6 ай бұрын
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 6 ай бұрын
​@@BobbiasC would be awful if it had a format capability. printf is just a 0-day enabler. Shots fired.
@Simon-xi8tb
@Simon-xi8tb 6 ай бұрын
React bros don't even know that Windows was written before React.
@toskito123
@toskito123 6 ай бұрын
Is that Neovim?
@AlexGalchenko
@AlexGalchenko 6 ай бұрын
it is emacs
@ferdynandkiepski5026
@ferdynandkiepski5026 6 ай бұрын
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.
@fiona9891
@fiona9891 Ай бұрын
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
@Ma_X64
@Ma_X64 6 ай бұрын
Я так яростно закивал about that idiomatic shit, что ёжнулся головой о полку.
@ademmohammed3939
@ademmohammed3939 4 ай бұрын
This guy is prime on crack!
@dieSpinnt
@dieSpinnt 4 ай бұрын
... 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 ... )
@yaksher
@yaksher 6 ай бұрын
@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 5 ай бұрын
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 5 ай бұрын
@@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?
@costelinha1867
@costelinha1867 3 ай бұрын
"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...
@ryanleemartin7758
@ryanleemartin7758 6 ай бұрын
This is Rust program.. so be patient. lol nice.
@rotteegher39
@rotteegher39 6 ай бұрын
54:47 It's an Ukrainian flag? What is it doing there?
@OmOhm-gn7yz
@OmOhm-gn7yz 3 ай бұрын
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.
@MurtagBY
@MurtagBY 6 ай бұрын
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 6 ай бұрын
India💔
@FDominicus
@FDominicus 6 ай бұрын
It seems the more often I see Rust, the more I dislike it ...
@peter9477
@peter9477 6 ай бұрын
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 6 ай бұрын
@@peter9477 You may be right. But I doubt it really is a loss ....
@matteo.veraldi
@matteo.veraldi 4 ай бұрын
I cannot accept that you are not using autocomplete in Rust.
@xsamuelx3603
@xsamuelx3603 6 ай бұрын
:)
@abcdefg-nu4xj
@abcdefg-nu4xj 6 ай бұрын
is rust still the future or was it ruined because all the drama in the community ..?
@TsodingDaily
@TsodingDaily 6 ай бұрын
Have you even tried programming in it or do you treat as just a fashion item?
@vinos1629
@vinos1629 6 ай бұрын
Rust is a tool, imagine saying I will not use a hammer because I don’t like the hammer making company
@apenaswellignton
@apenaswellignton 6 ай бұрын
@@vinos1629 i mean, well, in some contexts this argument may apply. what if the said company makes shitty hammers? 😅
@poggybitz513
@poggybitz513 6 ай бұрын
@@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 6 ай бұрын
@@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
@bassguitarbill
@bassguitarbill 6 ай бұрын
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 6 ай бұрын
that's so cursed
@potatomaaan1757
@potatomaaan1757 6 ай бұрын
In python you can also do `"-" * w`
@benisrood
@benisrood 6 ай бұрын
How is string multiplication defined as an operation?
@peter9477
@peter9477 6 ай бұрын
​@@benisroodOperator overloading? Heck, you might even be able to define a trait in Rust that lets you do the same.
@ElPikacupacabra
@ElPikacupacabra 5 ай бұрын
Perl is quite powerful for string manipulations, but a real pain to read. It leads people to write very cryptic code.
@youtubeforcinghandlessucks
@youtubeforcinghandlessucks 6 ай бұрын
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 6 ай бұрын
I was working along with this video to make my own terminal app and unfortunately the answer seems to be no for windows
@liminal6823
@liminal6823 4 ай бұрын
legacy-go-version
@youtubeforcinghandlessucks
@youtubeforcinghandlessucks 6 ай бұрын
I don't get why urmom wasn't queued but still waited for the clear and move with no flush
@goose_clues
@goose_clues 6 ай бұрын
やっぱrustってクソっすね、忌憚の無い意見ってやつっす
Forbidden Rust
2:02:07
Tsoding Daily
Рет қаралды 43 М.
I tried React and it Ruined My Life
1:19:10
Tsoding Daily
Рет қаралды 112 М.
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 39 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 32 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 479 М.
Ну Лилит))) прода в онк: завидные котики
00:51
DVWA Command Injection (Low, Medium, High)
12:40
CTF Warriors
Рет қаралды 11
I regret doing this...
1:20:07
Tsoding Daily
Рет қаралды 62 М.
Rust Functions Are Weird (But Be Glad)
19:52
Logan Smith
Рет қаралды 125 М.
Joscha at Microsoft
48:46
Simuli
Рет қаралды 2,3 М.
Hash Table in C
2:11:31
Tsoding Daily
Рет қаралды 56 М.
Rust Demystified 🪄 Simplifying The Toughest Parts
14:05
Code to the Moon
Рет қаралды 168 М.
Why i think C++ is better than rust
32:48
ThePrimeTime
Рет қаралды 268 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 146 М.
Why JavaScript Devs are Switching to Rust in 2024
10:35
warpdotdev
Рет қаралды 243 М.
My Viewers DDoSed my Go App
2:36:31
Tsoding Daily
Рет қаралды 51 М.
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 618 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 3,3 МЛН