Built a AI agent using Coral , It helps devs figure out why they are feeling burnout and what they need to work on
Check it out https://t.co/n3450midTI
Coming from JS to Rust , I was looking at how to read a file , So my first instinct was to write something like this , but it gives out a error , why? Because the function returns a enum and display trait does not know how to show it.
full explnantion , 👇https://t.co/IlblEOWNFn
Well rust doesn't allow you to make such mistakes.
In rust you have to define the data types of the inputs, that sounds simple work right?
fn multiply(a:u32,b:32)->u32{
return a*b;
}
Can you guess what issues we would face in this approach?
Checkout https://t.co/5KQ4H81R5b
Coming from Js to Rust ,Why Generics?
I was writing a basic function to multiply two numbers
function multiply(a,b){
console.log(a*b)
}
Well this doesnt work in rust , why?Bcz this function runs fine until someones passes in the wrong data type, what if a="23" and b="Lol"?
String vs &str in rust
Coming from typescript I was like why do we write such ugly syntax in rust :- String::from("up") instead of just ("up"), So I came across &str and we can just use ("up") , Well I did a couple of searches and these are two very different things,Check out👇
String vs &str in rust
Coming from typescript I was like why do we write such ugly syntax in rust :- String::from("up") instead of just ("up"), So I came across &str and we can just use ("up") , Well I did a couple of searches and these are two very different things,Check out👇
Built a YouTube Watch Party App 🎬
→ Watch YouTube videos together with your friends
→ Host controls playback
→ Real-time sync across all users
Check it out :- https://t.co/7WOQyJmv52