You could do "cargo fmt" to let cargo invoke rustfmt by itself and without needing to go to src dir.
@PranshuTheGamer2 жыл бұрын
i also use arch btw
@gustavojoaquin_arch Жыл бұрын
I use arch btw
@pepejw Жыл бұрын
I see a few people who use arch BTW (I use arch btw )
@aflous8 ай бұрын
I can flex and arch as well BTW
@gargoylezavos56687 ай бұрын
same man. I use arch
@rubencid25752 жыл бұрын
cargo b == cargo build cargo t == cargo test cargo r == cargo run (build and execute)
@wobsoriano2 жыл бұрын
cardi b
@808MELOW5 ай бұрын
@@wobsorianoP Diddy
@ssisaiasАй бұрын
cargo fmt => formats the source code
@AssemblyWizard2 жыл бұрын
There's no `ls` command in Windows (cmd), you have it probably because when you installed Git you checked the box that adds linux utilities to PATH. Windows people following this might be confused, the command is `dir`
@ssophia2 жыл бұрын
Some Unix commands work on powershell tho. You can use Windows Terminal, it defaults to powershell and has a nicer look than cmd.
@cheesesoldier10772 жыл бұрын
thank you so much
@brendon2052 жыл бұрын
tbh wsl with ubuntu would be the best option if you have enough ram
@ssophia2 жыл бұрын
Nah, real linux >>
@brendon2052 жыл бұрын
@@ssophia yes of course, but If you had to choose between windows and wsl, wsl is better
@PoojaDutt2 жыл бұрын
The quality of your videos is always mind blowing! So easy to follow - excited to see more.
@FabioMontefuscolo Жыл бұрын
I love how it goes from tutorial2 to tutorial1. I have the exact same problem!!! :D
@jankapko93382 жыл бұрын
You do need to put semicolons at the end of expressions, however, if the expression is the last expression in a function, you don't have to put a semicolon there, because it indicates that the value returned by that expression should also be returned by the function. So, for example, the println! macro does not return anything and the main function also does not return anything, therefore there does not have to be a semicolon after the println!. Other than that, great video :))
@k.r.jester54062 жыл бұрын
I like the idea of a tutorial that teaches the things you need to know about rust as we encounter it, but I think it might be more useful to get to the meat of the matter, like the philosophy of rust, sooner
@hamyncheese2 жыл бұрын
no kidding! This kind of nonsense is endemic on YT. Next time I hear someone say "go ahead and just type..." ....they are getting kicked in the teeth
@ikec-pw5sb2 жыл бұрын
Wait- You're making a Rust tutorial series? That's cool!
@hachikoi-san39012 жыл бұрын
about rustfmt, there's an extencion in VSCode rust-analizer, does the trick whit the default format, I have format on save and does it once I have the extension installed
@sr567 Жыл бұрын
The best part of this video is Sophie ☺️
@oitanny1213Ай бұрын
true :3
@fireplank75202 жыл бұрын
Hi! I used some hacking to get access to this video haha! Thanks for the great series!
@nabilelouaamari44002 жыл бұрын
😅
@blacklight98766 күн бұрын
VS Code shortcut for rustfmt, no setup required - Shift + ALT + F
@joshbishop2 жыл бұрын
Dang...this series started at just the right time for me! I was just wondering about learning Rust, particularly in sublime. Thanks man!
@anthonyacosta9655 Жыл бұрын
Thank u for these free tutorials, really appreciate it
@abubakaramjad3343 Жыл бұрын
If someone is Using Vs And cant Use the (Cargo Build) Command, Then you have to install Desktop development with C++ (Same for Visual Studio Code).👍👍
@BrandonFalkTheActor5 ай бұрын
rust fmt is pretty flipping cool.
@pravachanpatra40122 жыл бұрын
Tim is it possible to collaborate with Tiff in Tech?
@yefrezertezera59572 жыл бұрын
Man u're just the Best.
@ananthramvijayaraj45542 жыл бұрын
thanks!
@inderjotsingh5868 Жыл бұрын
in vs code the code automaticallly formats itself upon saving if you have Rust_analyser extension installed
@manifestasisanubari7 ай бұрын
I'm a noobie here. Can cargofmt be trusted entirely to not mess up with your code? How would it deal with comments?
@Savory_Bear Жыл бұрын
Thank you for making the tutorial ❤
@emexJT2 жыл бұрын
Hey tim, what do you recommend as a secondary language with Rust?
@techbhanucomputer43892 жыл бұрын
tq tim! was waiting for this!
@ssophia2 жыл бұрын
Thank you for these Rust videos!
@esimitley4729 Жыл бұрын
thanx. more Rust and Elixir , please
@peterhuyghe10062 жыл бұрын
@tim Why are you telling people to use ls command on windows ?
@shad-intech2 жыл бұрын
Hope you will do a Haskell series
@ByronWatts Жыл бұрын
Windows is a lot gentler with it's path and file requirements to run an exe...by default, the current directory is in the path and 'exe' is one of the executable types recognized without being explicitly included....thereby, .\tutorial1.exe could more easily be: tutorial1
@demisx2 жыл бұрын
So, cargo is basically what npm is for node?
@samuelhulme8347 Жыл бұрын
Basically correct, from what I’ve seen it do.
@syntheticperson Жыл бұрын
Very helpful. Thanks
@Absolotle2 жыл бұрын
What is the purpose of .\ ? Can you eventually run it like any normal program, by writing just the .exe file or double clicking the exe file?
@GisleVanem002 жыл бұрын
bad habit from Unix?
@megumin4625 Жыл бұрын
On cmd it isn't required. But if using PowerShell you do have to do that
@jamesjoyce5962 Жыл бұрын
It is not on PATH by default so he is explicit with the location of the executable
@user-iw7il6zq6j Жыл бұрын
Thanks man!
@yefrezertezera59572 жыл бұрын
How can I find the theme ur using...its awesome theme
@snowman1185-v Жыл бұрын
thx
@kebman Жыл бұрын
"So I start tutorial two, I believe I spelled that correctly." xD
@user-tv1nd5vz3e2 жыл бұрын
So cool so nice
@jagadeesh4831 Жыл бұрын
Bro which idle are u using
@subee1282 жыл бұрын
Thanks
@davidelizalde384411 ай бұрын
Thumbs up for sophie.
@LoereDami5 ай бұрын
8:58 🐈
@mattiatragna88392 жыл бұрын
GOOD LUCK
@junaidmalik70072 жыл бұрын
How do I get folders sidebar?
@samuelhulme8347 Жыл бұрын
Open the folder as a project in sublime text.
@davidardo44662 жыл бұрын
Hello teacher, is math necessary for software enigneer, to work in a company like Google?
@CheckmateStallioN2 жыл бұрын
If you know linear algebra, and calculus at least at a basic level you should be good to go. Also must be very comfortable with Big O (algorithm efficiency) and determining your program's time complexity, which uses math so you gotta be comfortable understanding logarithms. More advanced math of course is useful if you want to build game engines. I would focus more on DSA (data structures & algorithms) since this is the heart of programming and this is what separates a great programmer from a so-so programmer. Beware of this myth going around that "you don't need to be good in math". This myth circulated from web "programmers" which are not true programmers, they are script kiddies. This is completely false and you will struggle as a programmer if you are not versed in at least basic linear algebra and calculus
@johnbennett14652 жыл бұрын
@@CheckmateStallioN all programmers should know Big O. As for the rest, it depends a LOT on what type of programming you are going to do. In my case I used probability all the time. On the other hand I used calculus only once in 30 years. If you don't know what you're going to do (most people), get a broad coverage. If you know what type of programming you are aiming for, find out what it needs and go deep on those areas.
@danielkrajnik3817 Жыл бұрын
Cargo space 🌕
@grzegorzryznar510111 ай бұрын
Sophie
@codeandtalk62 жыл бұрын
Wow within a day...
@pepooo4232 жыл бұрын
mobile or desktop
@FredomnomАй бұрын
6:34 then they would be listed there so you know what exactly you are ignoring 💀😭
@Magnus-kd7wd4 ай бұрын
"tutorial2, I think I spelled that correctly." (Obviously says "tutorial1") Lol
@maxwll_e3 ай бұрын
whos tom?
@maker._3 ай бұрын
I hope it's Tom from Myspace lol
@amazeangelogames31652 жыл бұрын
Do roblox studio pls
@realaxer2911 Жыл бұрын
Dạy chả ra gì
@hamyncheese2 жыл бұрын
just what YT needs, more genericlly bad programming tutorials
@davidardo44662 жыл бұрын
Hello teacher, is math necessary for software enigneer, to work in a company like Google? Please answer me
@wolfslicer79082 жыл бұрын
Yes, it's really necessary to have a good understanding of maths to become a software engineer It is eventually all about logic, problem solving and numbers
@davidardo44662 жыл бұрын
@@wolfslicer7908 can i do better math in software engineer?
@Supergecko82 жыл бұрын
@@davidardo4466 better math?
@davidardo44662 жыл бұрын
@@Supergecko8 yeah im very bad math can i do better math
@miguelguthridge2 жыл бұрын
You don't need to be a massive expert on the most complex parts (I've never had to do integration by parts when programming, for example) but a solid understanding of basic and intermediate things is a good idea.