Post B6KRCMFUjxt1blW3G4 by fen@yiff.life
(DIR) More posts by fen@yiff.life
(DIR) Post #B6KQUEFv66Xk4mfl4K by Sylvhem@eldritch.cafe
0 likes, 1 repeats
I want to give another try at learning code. Do you know if there is any ressources on how to learn Rust as a non-programmer?And please, please, please, don’t tell me I should start with a “simpler” programming language, like Python instead. I gave Python several tries over the years and it never managed to be as fun or retain my attention as well as C did when I was a teenager. My original plan was to get back into C for that very reason, but I figured it would be probably better to start with a compiled language a tad more modern.Boost appreciated.
(DIR) Post #B6KQZkAlrHdQVqtTWa by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@welshpixie XD
(DIR) Post #B6KQfpynBKecGACFKi by Siph@meemu.org
0 likes, 0 repeats
@Sylvhem if you are somewhat familiar with programming concepts already, I can recommend Rustlings. I didn’t use it myself, but I used Ziglings to learn Zig which is the same concept adapted for a different language, and it was very fun to me.
(DIR) Post #B6KQlfdiXQtFvd7Wk4 by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@Siph Thank you! That’s a really good advice, I’m going to check out Rustlings.
(DIR) Post #B6KQyAKiFLBCb7BnDU by ddr@pony.social
0 likes, 0 repeats
@Sylvhem I've got some time, I could just sit down with you for an hour or two over a screen share + voice chat and teach you the basics. (I don't know any more myself.) Hopefully with that boost you could get going on yourself after. 🙂
(DIR) Post #B6KR1laiB7Tp1JODc8 by Siph@meemu.org
0 likes, 0 repeats
@Sylvhem also: C is not going away anytime soon, and the standard has recently gotten updated. Going back into it would not be a bad choice either
(DIR) Post #B6KR1lmlSJ7Zch1qOu by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@Siph Yeah, I still want to learn C at some point. I’ve really had some fond memories of it.But more and more free software I use are coded in Rust, and I figured that by learning that first, I could probably take a look at their code and try to compile it myself when I’ll have some skills.
(DIR) Post #B6KR9WaJr5y4nNuCHY by Siph@meemu.org
0 likes, 0 repeats
@Sylvhem that’s fair! and systems programming languages like this teach you fairly transferable programming skills in general, so I think if you start being more familiar with Rust, looking at C code shouldn’t be too difficult for you
(DIR) Post #B6KRCMFUjxt1blW3G4 by fen@yiff.life
0 likes, 0 repeats
@Sylvhem i can't vouch for its contents or quality, but there is this Rust book written in Simple English. might not be exactly what you're looking for, but I found a bunch of people online saying it's a bit better to learn Rust with no programming background https://dhghomon.github.io/easy_rust/Chapter_1.htmlthe official Rust book is the most complete, up-to-date and with the highest quality, but it does assume a bit of technical knowledge https://doc.rust-lang.org/book/
(DIR) Post #B6KRCMkKtIYZ9PwgKW by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@fen Thank you!
(DIR) Post #B6KREzezBK82Q1hD7Y by mdstevens0612@mas.to
0 likes, 0 repeats
@Sylvhem Boosted, but I wouldn't describe C as un-modern, just... Opinionated. There are lots of people who are Very Normal™ about C because it is purely procedural rather than Object Oriented. If you're still interested in learning C, I super highly recommend CS50's Intro To Computer Science. Free through EdX and even if you only do the C part, it's really, really good.As for Rust... I'll leave that to Rust lovers. They will make themselves known.
(DIR) Post #B6KRHHIYZeYrhaIIsK by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@ddr Thank you, that’s very kind of you! I think I want to start with text-based ressources, but I’ll keep your offer in mind :).
(DIR) Post #B6KRjGuTbyngbcNaMK by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@mdstevens0612 Thank you! I still want to properly learn C at some point, so that’ll be useful :).
(DIR) Post #B6KRka4tpYGaLOsYLo by Sylvhem@eldritch.cafe
0 likes, 0 repeats
@liw Thank you, I’ll give it a read :).
(DIR) Post #B6KTB6pQmsMROwrCnw by Nocta_Senestra@eldritch.cafe
0 likes, 0 repeats
@Sylvhem Pour moi si t'as déjà touché du C et tout t'es déjà une programmeuse, tu pourrais utiliser le Rust Book par exemple.Les trois ressources qui sont les plus partagées (la plupart des personnes apprennent avec une des trois, en fonction de ton style d'apprentissage):- The Rust Programming Language (généralement appelé "Rust Book", plus "cours théorique" même s'il y a quelques exos): https://doc.rust-lang.org/stable/book/- Rust by Example (des bouts de code pour introduire des concepts): https://doc.rust-lang.org/stable/rust-by-example/- Rustlings (des exos interactifs): https://rustlings.rust-lang.org/Sinon ce que je conseille perso c'est de lire les chapitres 1 à 10.2 du Rust Book (pas 10.3) + le chapitre 13 puis d'apprendre Bevy Engine et de s'amuser avec (il y a un bouquin en rédaction pour Bevy, WIP, sneak peek: https://bevy.org/learn/book/intro/ )
(DIR) Post #B6KTmcLkYSgfsSrLTE by ddr@pony.social
0 likes, 0 repeats
@Sylvhem Just ping me wherever, I'll just say no if I'm busy. 😁I personally find it's easier to start with the text-based resources if I have someone to puzzle through how things fit together with.
(DIR) Post #B6KU5iCT1mm3WXceNk by MirroMirra@mstdn.party
0 likes, 0 repeats
@Sylvhem learn Gotdot from Playable Workshop on YTYou'll learn GDscript which is like Python but with static typing, That's your window into Rust
(DIR) Post #B6KVBNhiFDMZeFVKzo by gemelen@mammut.moe
0 likes, 0 repeats
@Sylvhem I want to add on another aspect than the resources - if that suits you, try to join any discussion channel dedicated to the programming language and its ecosystem. The ability to ask questions about your findings and problems to the real people, and to answer from your own freshly gained experience helping others tremendously changes learning and connects you to the relevant community.It doesn't matter much what exact channel you use, it's up to you, be it an IRC channel, Discord, Web forum, fediverse - you name it.
(DIR) Post #B6KWLVDXGUPNnfmNpQ by lkundrak@metalhead.club
0 likes, 0 repeats
@Sylvhem "rust by example" is good and starts at a spot that should be somewhat comfortable for non-programmers. https://doc.rust-lang.org/stable/rust-by-example/hello.htmlin general, the most important resource that turns non-programmers into programmers is called "reading a lot of other people's actual code." the second one is practice
(DIR) Post #B6KWjR50IfLnuxCWYq by federicomena@mstdn.mx
0 likes, 0 repeats
@Sylvhem Rustlings is good; https://exercism.org/tracks/rust has a lot of material and mentors. Finally, the forum at https://users.rust-lang.org/ is a good place to ask.
(DIR) Post #B6KXH66EoHOeh8pTjU by herzenschein@furry.engineer
0 likes, 0 repeats
@SylvhemThe Rust tutorial I recommend the most is https://dhghomon.github.io/easy_rust/I feel like the didactics of the three main recommendations from the Rust project are very lacking in comparison. They assume you already come from another programming language and fail to explain the common questions that a Rust beginner would have. In contrast, Easy Rust feels like it was done by a teacher or technical writer.Now, Easy Rust also assumes some prior knowledge like knowing what types are, but it's a much lower requirement than the other three.
(DIR) Post #B6Ka3R6MEDKfdi3wrw by gaelle@eldritch.cafe
0 likes, 0 repeats
@Sylvhem i followed the Rust Roguelike Tutorial and had a lot of fun with it :)
(DIR) Post #B6Ka71Hi9mK4jD59O4 by hattifattener@wandering.shop
0 likes, 0 repeats
@Sylvhem A digression, but if C tickled your brain in a pleasant way, you could also go the other direction and spend some time with assembly language. maybe ARM or RISCV or go retro and write some code for old 8bit micros. It's not a directly salable skill but having a feel for the lower levels can be good sometimes even in an HLL. Like what is a stack frame and so on. It gives you some appreciation for what the language allows you to not worry about. And it's potentially fun.
(DIR) Post #B6KdMA2gB7Lg5yxjrk by VioB@eldritch.cafe
0 likes, 0 repeats
@Sylvhem Perso, je vois pas trop de raisons de pas te remettre au C si t'as pas d'objectfs précis en terme de projets. C'est vraiment un des meilleurs moyens de prendre de bonnes habitudes en algorythmie, formalisme et synthaxe.Pour te donner une idée, même avec une licence en info, les deux seuls langages dont je me sers c'est Python (si tu veux te mettre à la prog orientée objet c'est une plutôt bonne entrée mais clairement je commencerais pas par ça); et le PHP natif, cad utilisé en itératif exactement comme du C, ce qui en fait un langage très proche, bien qu'un rien ésothérique par moments (ce qui m'empêche de te le conseiller).(bon et je fais aussi du SQL aussi mais c'est spécifique aux de bases de données)
(DIR) Post #B6KeFF8Qwe5Jokv3SK by Code_Lyo_ko@eldritch.cafe
0 likes, 0 repeats
@Sylvhem C is cool, you don't have to start with higher level language :D join us, and learn C directly~Also, there are ressources to learn programming that are language-agnostic, meaning it doesn't talk about any particular programming language and can be applied to any. Of course you still have to learn your language of choice.
(DIR) Post #B6Kp9oIkNpVYdtM5jc by josh@masto.byrd.ws
0 likes, 0 repeats
@Sylvhem You can try watching some Let's Get Rusty videos on YouTube. They helped me.
(DIR) Post #B6L4Gty3DIxLYUVwmG by goedelchen@mastodontech.de
0 likes, 0 repeats
@Sylvhem Not a complete tutorial, but maybe also interesting:https://philippflenker.com/hecto/ (The original in C is https://viewsourcecode.org/snaptoken/kilo/)
(DIR) Post #B6LOsxSIgya2Sb5TYe by sous_mon_masque@eldritch.cafe
0 likes, 0 repeats
@Sylvhem J'ailu le rust book y a longtemps, ca avait l'air tres pédagogique.Bon, j'ai pas été loin, j'ai fait d'autres trucs, mais là comme ça au hasard c'est peut-etre une piste encore valable.