Click here to Skip to main content
15,893,814 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why am I having such a hard time learning Rust? Pin
PIEBALDconsult10-Jul-22 7:56
mvePIEBALDconsult10-Jul-22 7:56 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Cpichols11-Jul-22 1:49
Cpichols11-Jul-22 1:49 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Kirk 1038982111-Jul-22 4:02
Kirk 1038982111-Jul-22 4:02 
GeneralRe: Why am I having such a hard time learning Rust? Pin
honey the codewitch11-Jul-22 4:06
mvahoney the codewitch11-Jul-22 4:06 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Kirk 1038982111-Jul-22 4:18
Kirk 1038982111-Jul-22 4:18 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Joss45111-Jul-22 5:10
Joss45111-Jul-22 5:10 
GeneralRe: Why am I having such a hard time learning Rust? Pin
dwight1000011-Jul-22 5:19
dwight1000011-Jul-22 5:19 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Dweeberly11-Jul-22 5:55
Dweeberly11-Jul-22 5:55 
Rust 'be hard'. Most of the syntax is similar to other languages like c, c++, c#, java, etc...
However, most modern languages have been built around hiding and managing memory for you (ex: c#). The thinking is if you don't have to worry about memory management then you can spend more time on the logic. This generally works pretty well. However, Rust was designed to be a "System's language" (i.e. something you could write an OS, or driver or other system component in ... or a web browser, which is basically a self-contained OS these days). While having a familiar syntax, Rust thwacks you in the head and sometimes kicks you in the ...um... "lower mid-section" when it comes to memory management. For years we've been training ourselves to ignore memory management, but Rust put's it front and center in an almost assembly level way. The paradigm is flipped. Get the memory management right and the logic will follow. It's less that you are getting old and more that you've been indoctrinated into ignoring memory management. It's like changing a door that has been 'push' for 20 years to a 'pull' door. Consider your 'container system strangeness'. What are you 'containing'? In Rust you really only have references to memory, and you have to be perpetually aware of the ownership of those references. In C# I can conceptually 'add an object to a List'. I can't really do that in Rust. First no objects, second I can only really transfer ownership or copy memory, sure there's syntax to make it look otherwise, but that veneer of syntax is very thin. ... at least that's been my experience
GeneralRe: Why am I having such a hard time learning Rust? Pin
honey the codewitch11-Jul-22 6:54
mvahoney the codewitch11-Jul-22 6:54 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Bertrand Mouton11-Jul-22 11:17
Bertrand Mouton11-Jul-22 11:17 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Stuart Dootson12-Jul-22 3:00
professionalStuart Dootson12-Jul-22 3:00 
GeneralRe: Why am I having such a hard time learning Rust? Pin
honey the codewitch12-Jul-22 3:46
mvahoney the codewitch12-Jul-22 3:46 
GeneralRe: Why am I having such a hard time learning Rust? Pin
Stuart Dootson12-Jul-22 4:06
professionalStuart Dootson12-Jul-22 4:06 
JokeRe: Why am I having such a hard time learning Rust? Pin
Chad3F13-Jul-22 15:47
Chad3F13-Jul-22 15:47 
GeneralCCC OTD Pin
Pete O'Hanlon7-Jul-22 21:41
mvePete O'Hanlon7-Jul-22 21:41 
GeneralRe: CCC OTD Pin
pkfox7-Jul-22 22:57
professionalpkfox7-Jul-22 22:57 
GeneralRe: CCC OTD Pin
Pete O'Hanlon7-Jul-22 22:59
mvePete O'Hanlon7-Jul-22 22:59 
GeneralRe: CCC OTD Pin
pkfox7-Jul-22 23:09
professionalpkfox7-Jul-22 23:09 
GeneralRe: CCC OTD - We have a winner Pin
Pete O'Hanlon8-Jul-22 0:32
mvePete O'Hanlon8-Jul-22 0:32 
GeneralRe: CCC OTD - We have a winner Pin
englebart8-Jul-22 2:53
professionalenglebart8-Jul-22 2:53 
GeneralRe: CCC OTD - We have a winner Pin
jmaida8-Jul-22 9:42
jmaida8-Jul-22 9:42 
GeneralRe: CCC OTD - We have a winner Pin
FreedMalloc8-Jul-22 11:51
FreedMalloc8-Jul-22 11:51 
GeneralRe: CCC OTD - We have a winner Pin
englebart9-Jul-22 15:46
professionalenglebart9-Jul-22 15:46 
GeneralSound of the Week Pin
Sander Rossel7-Jul-22 20:48
professionalSander Rossel7-Jul-22 20:48 
GeneralRe: Sound of the Week Pin
musefan7-Jul-22 22:48
musefan7-Jul-22 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.