If you are interested in these topics, you can also follow me on Twitter :) twitter.com/terzi_federico
@edfloreshz
3 жыл бұрын
This is the second video I've watched on your channel and you already made me laugh, I just subscribed!
@FedericoTerzi
3 жыл бұрын
Thanks! :)
@yuverris
3 жыл бұрын
it's an opinion for everybody to decide which lang to choose but facts are facts, just for clarifying things why allocation are important, most of the software right there 90% actually uses the heap for long term living variables & memory storage, and No & No & No 99 times C++ doesn't have memory leaks, yes C++ vector & strings is allocated to the heap but it's safe cuz it's created by STL programmers, and every C++ coder agrees that it's safe to use, and yes C++ is slow BUT BUT in **compile time** the reason is the built-in header file each file have at less 3k lines + of code imagine including 3 headers to run your 10 lines program that's actually compiled 9k lines + 10 of code and it can be faster by using cache, not like rust when U have all stuff already implemented and not importable likr Vec etc, and memory allocations is platform depeneded memory allocation in Unix based systems is different from Windows allocations, and why you mentioned Chromium which you didn't check the source code for it and everyone on C++ community agrees that it's trash coded and eats up your RAM but what about: Redis, Mongodb, Postgresql, Linux, GNU, Nginx, Apache alllllll written in C++ & C and literary no one complained about getting memory leaks or turning their PC into a plane, rust isn't faster than C so it's not faster than C++ and You WON'T GET A MEMORY leaks unless you did `new` in C++ literary u will not or u use smart pointers made by STL programmers that manage your memory effectively, like in Rust it's safe until you do `unsafe` keyword so dear Rust coders stop saying C++ have memory leaks just because you're hearing most of the community says it btw most of the Rust community doesn't have clue how to make Hello World without using Google so dear Rust users who are like this STFU pls just STFU.
@nerdion1911
3 жыл бұрын
You just keep on motivating me for learning Rust now....
@marcello4258
3 жыл бұрын
i saved 4 mins thanks for the spoiler in the beginning!
@lalakbalazs2260
3 жыл бұрын
The only reason: Discord uses it.
@guidedbyreason3619
3 жыл бұрын
@Emre Fedora yes
@zyansheep
3 жыл бұрын
@E K Also it is the best low-level programming language to ever exist imho
@thingsiplay
3 жыл бұрын
And Firefox.
@JackPillawa
3 жыл бұрын
thanks young keanu reeves
@vspecky6681
3 жыл бұрын
10/10 Intro
@FedericoTerzi
3 жыл бұрын
Thanks :)
@pierreabbat6157
3 жыл бұрын
How good is Rust at programs where all the threads simultaneously build a huge data structure which has tangled hierarchies?
@FedericoTerzi
3 жыл бұрын
If you manage to compile that program in Rust, then you can consider yourself really prepared :) Jokes aside, it should work as well as C/C++ but with stricter checks
@GeniusClassrooms
4 жыл бұрын
good
@ahmadalghooneh2105
3 жыл бұрын
I have just started RUST, the syntax is garbage, unfamiliar and unnecessary different from most programming languages. Yes, there are good tips on memory safety in it, but none of which cannot be done with C/C++. There is no solid tutorial on it anywhere, and everything is so bizarre about it. I have written C/C++, JS, Java, C#, Python and I was pretty comfortable with understanding their logic, but for RUST, it is an absolute pain in the butt even working with it... hope it worths the pain. Also, there is no, absolutely no good library on linear algebra in RUST, it needs way more time to catch on...
@FedericoTerzi
3 жыл бұрын
Hey, have you checked the Rust book? It's probably one of the best language documentations in general
@ahmadalghooneh2105
3 жыл бұрын
@@FedericoTerzi could you drop a link ?
@FedericoTerzi
3 жыл бұрын
Sure, here you go doc.rust-lang.org/book/
@ahmadalghooneh2105
3 жыл бұрын
@@FedericoTerzi yesterday I was working with Rust, there is one thing that make it worth learning and that is those memory concerned errors that I would get only in runtime with C++, i get them in rust in compile time! And that made me to change my mind about this language...
@FedericoTerzi
3 жыл бұрын
Glad you are starting to like the language! I can guarantee that after a while, Rust really starts to "click"
Why you people still saying that cpp is unsafe while there is now smart_pointers, RAII containers, etc ?
@FedericoTerzi
3 жыл бұрын
Mostly because not every cpp program is using them :)
@mahmoudtokura
4 жыл бұрын
Will you continue your Rust course for beginners' playlist?
@FedericoTerzi
4 жыл бұрын
Hey, yes I will. It will probably take a bit though as I have a lot going on at the moment :)
@SimonProductionsTM
4 жыл бұрын
I'm curious to see if Rust will ever dominate the REST API game now that big companies like Discord are switching to from Go to Rust. Do you think Rust will beat Go in popularity? :o
@FedericoTerzi
4 жыл бұрын
That's a tricky question. Short answer: Not anytime soon. Long answer: Indeed, there's a lot of movement in that area, but lots of great solutions are already available in that space (Go, Javascript, .Net Core, Python and a few others). In Web service environments, having a garbage collector or an increase of RAM usage doesn't play a big role. On the other hand, while being a wonderful language, Rust is definitely trickier to write than Go or Javascript, so even if you have a faster performance, it might not be worth the "cognitive overhead". It might be a good fit for very small and efficient microservices, but I don't think so for monoliths. One thing I can say though, is that Golang is ugly, and I mean REALLY ugly. Some concepts (namely corutines and channels) are wonderful, but the general syntax is terrible. I get the "we want to keep things simple" point, but in 2020 it's really awkward to not have Generics or bits of Functional programming in a modern language. Of course, I might be wrong. This area is still immature and only time will tell :) On the other hand, I'm pretty sure Rust will gradually replace most C++ in the future, as the upsides compared to the downsides are really too many.
@trotomas
4 жыл бұрын
@@FedericoTerzi rust is too slow to compile and companies want to run fast, by the way it is a really nice language
@FedericoTerzi
4 жыл бұрын
@@trotomas That's true, rust has a slow compilation process. But given that subsequent runs take much less time, do you really think that will be a big factor? I wouldn't say so, but I guess it depends on the company :)
@trotomas
4 жыл бұрын
@@FedericoTerzi too many factors to consider but is still a niche language (market share is too small for now) , by the way nice channel i'd suggest you to create design level video in rust (like how to implement clean architecture...) or even better how to write real world applications in rust, anyway good luck
@FedericoTerzi
4 жыл бұрын
@@trotomas Thank you! I'll make sure to explore those topics :)
@pixel7038
4 жыл бұрын
I love c++ and love the potential of rust. I think Rust doesn't have the amount of libraries as c++ but that's why we need more people to open source they're work from both communities.
@FedericoTerzi
4 жыл бұрын
Also keep in mind that in many situations you can interoperate Rust with c++ by writing a c wrapper. It's not always convenient but in many cases good enough! Then I've also seen the autocxx project that seems promising
@pixel7038
3 жыл бұрын
@@FedericoTerzi I wish I can see more tutorials on C wrappers
@FedericoTerzi
3 жыл бұрын
I'll consider it for one of the next videos then! In the meanwhile, the Rust book has a great introduction chapter: doc.rust-lang.org/1.9.0/book/ffi.html
@ralfiralf7811
2 жыл бұрын
I need to learn c++ for/at my College in the futur. And if i understood the main point correctly rust is similar but more "modern" since the feield i want to work ar requires speed and safty it seems liket the right choice. i want to work in the automotiv field would rust provide a benefit there?
@greenlamp9219
4 жыл бұрын
good video no cringy intro look forward to more of your content
@FedericoTerzi
4 жыл бұрын
Thanks :)
@arcticspacefox864
4 жыл бұрын
Next video be a beginner project in Rust?
@FedericoTerzi
4 жыл бұрын
Yes, that might be the topic of a future video :)
@arcticspacefox864
4 жыл бұрын
@@FedericoTerzi cool 🤙 enjoy your day 😄
@_myron
4 жыл бұрын
According to TIOBE index, C++ is the fastest growing language in popularity right now, believe it or not.
@FedericoTerzi
4 жыл бұрын
I read that news as well, but it doesn't seem very reliable... Please take a look at the hackernews thread for more information: news.ycombinator.com/item?id=24421061
@rodelias9378
3 жыл бұрын
Should I learn Rust in 2021?
@FedericoTerzi
3 жыл бұрын
Definitely! :)
@zhh174
3 жыл бұрын
I think every programmer should learn c or c++. Because it helps you to understand how computers work. I started with python and it was great. Then I learned c++. after learning c++ everything starts to make proper sense to me. after understanding, c/c++ properly programming becomes so easy in every language. But rust is also great. I am learning it and it is actually very easy.
@FedericoTerzi
3 жыл бұрын
I definitely agree with you, knowing how each part of the stack works is incredibly useful for a developer!
@zhh174
3 жыл бұрын
@@FedericoTerzi yes.
@shakilmakram6923
3 жыл бұрын
@@zhh174 you are right, alas no one ever told me that before :( , i got started with python, could not make much sense of it, then i tried Go, initially found it challenging but kept going for it, once i got the hang of Go, i looked back to python and everything started clicking. knowledge of Go helps me write better python that i ever thought i could. Now i started learning rust and i cloud immediately see, rust will help me write safer Go. Thats when it hit me, language comes and go but each language has something special that helps us being a better programmer.
@sharkpyro93
3 жыл бұрын
tanto in italia prima del duemilacredici si useranno ancora tecnologie del giurassico, sono stufo dei contesti enterprise, se si vuole lavorare con tecnologie nuove si è costretti in posti di lavoro in startup, dove una tech stack come quella di rust è considerata almeno
@FedericoTerzi
3 жыл бұрын
Concordo, se vuoi lavorare con queste tecnologie, l'ambiente startup è quello più indicato
@sharkpyro93
3 жыл бұрын
@@FedericoTerzi anche se tendenzialmente è più difficile passare i colloqui poichè non avendo grossi gruppi di sviluppo preferiscono andare "a colpo sicuro" per i propri sviluppatori..io mi sono appena spostato di lavoro e sono finito con tecnologie più vecchie del lavoro precedente, da java8/spring boot a java 6/jsf/primefaces, roba di 15 anni fa praticamente
@FedericoTerzi
3 жыл бұрын
Verissimo, purtroppo in Italia capita di frequente. Sono fiducioso che nel giro di qualche anno Rust inizi ad essere utilizzato anche qui, come poi è stato per Java. Infatti a inizio anni 2000 Java era considerato come una boccata d'aria fresca in un clima dove linguaggi come C++ e COBOL erano la regola, e molte aziende erano restie ad adottarla. Ora l'ambiente tech italiano è principalmente composto di soluzioni Java e dot Net, quindi le cose cambiano :) Poi c'è un altro approccio possibile, che sto personalmente testando in questo momento: lavorare da remoto per un'azienda estera. Ho infatti avuto la fortuna di ricevere un'offerta (part-time dato che sto finendo l'università) con un'azienda estera che stava rifacendo un loro prodotto in Rust, e da diversi mesi lavoro con loro... Ora, non so quanto questo sia ripetibile, specialmente in piena pandemia, ma quantomeno è possible! :)
@sharkpyro93
3 жыл бұрын
@@FedericoTerzi si piano piano cambieranno le cose anche se a rilento...ma come funziona il lavoro da remoto per aziende estere? Cioè come potrei agganciare e come funziona tutto il discorso contrattuale tasse ecc, perché ero interessato ma in materia ammetto la mia ignoranza
@FedericoTerzi
3 жыл бұрын
Dipende da caso a caso, in generale a meno che l'azienda non abbia una sede in Italia bisogna aprire una Partita IVA e lavorare come consulente. Devi quindi avere un commercialista e gestirti autonomamente tasse e contributi. Poi non hai le garanzie che avresti da dipendente, quindi niente malattia o ferie pagate (ma questo dipende dall'azienda). Ma dall'altra parte la paga è più alta (anche considerevolmente in base all'azienda) e se ci pensi questo è ragionevole, perchè tutte le sicurezze che non hai te le devi "creare" da solo. Questo percorso non si adatta a tutti e dipende principalmente da quali progetti hai, se vuoi ad esempio cercare di costruire qualcosa di imprenditoriale. Per quanto riguarda agganciarle, non ho abbastanza esperienza per risponderti :) Nel mio caso hanno visto un mio progetto Rust su Github che è diventato abbastanza popolare e quello è stato il mio aggancio. Tra un paio d'anni ti potrò dire se è stata una fregatura o meno :)
@azend889
3 жыл бұрын
Can you make a video talking about the relation between microsoft and Rust?
@FedericoTerzi
3 жыл бұрын
Sure, I'll think about it :)
@Corrado49
3 жыл бұрын
Today in the news you will see the answer to this
@divad1196
3 жыл бұрын
C++ is safe, C is not. If coders use pointers without knowing what they do yes it is unsafe. No question: Rust is good, there's reason to use any of C++ or Rust. But i am exhausted hearing C++ blamed for being "unsafe" because the developers. No, don't say "the best", we all make mistakes, that's how we get better. They try to have the most effeciency so they avoid safe tools like smart_pointers or at() methods. If you use a knife, don't blame it if you cut yourself.
@FedericoTerzi
3 жыл бұрын
I tend to agree with you, even though you should probably say "modern C++ is safe", rather than general C++. The biggest problem often comes from the legacy codebases and libraries that were built before smart pointers became a thing in C++...
@ИванПошековский
3 жыл бұрын
Rust is one company’s toy, if Mozilla cannot fund the project, it will close. Large companies are not interested in this language, because it has no significant advantages
@mcdaddy1334
4 жыл бұрын
VERY NICE!
@FedericoTerzi
4 жыл бұрын
Thanks!
@saramshshrestha7641
4 жыл бұрын
What are things that we can do with rust ? Backend only or more then this ?
@FedericoTerzi
4 жыл бұрын
You can do whatever you want with it :) My suggestions for a beginner project would be either a command-line utility, a game, or a web service (but you can really go crazy with rust, take a look at: github.com/rust-unofficial/awesome-rust
@WalkingGabrage
3 жыл бұрын
Mitico Federico
@comrade7206
3 жыл бұрын
im confused is it the game Rust or the programing language?
@wellhit7822
3 жыл бұрын
language
@comrade7206
3 жыл бұрын
@@wellhit7822 k
@victortaveirarodrigues8032
3 жыл бұрын
kkKkk
@hamedalavi7681
4 жыл бұрын
Like
@yuverris
4 жыл бұрын
as C++ have memory leaks natively basically the problem is the coder not the lang, "best engineers in the world" doesn't mean they know how to use it
@FedericoTerzi
4 жыл бұрын
Well, there is a high chance they do! At least, better than the average C++ programmer. The biggest problem of C++ is that it has been around for a very long time, and it still has to support a ton of (unsafe) legacy software and concepts, wheras Rust was designed with those problems in mind since the beginning. Then, of course, this is just my point of view :)
@dammi-i
3 жыл бұрын
your point of view but facts are facts I ber u never coded in C++ in your life. Rust is safe until u do `unsafe` in C++ everything is 100% safe until u do `new` now I can do a memory leak in Rust manually and say Oh Rust is a shit it have memory leaks, C++ doesn't have memory leaks so stfu, and "they know better than average programmers" is a loooooow argument I bet u didn't check the source code for chromium, why u didn't talk about "Progresql", mongodb, Bash Shell, Linux, Gnu, Redis, MySQL, Python, JavaScript which don't have memory leaks guess why ?, " cuz they know how to use C and C++" don't talk about a language that u never coded in it in your life
Пікірлер: 86