TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust language is too hard to learn and use, says user survey

24 pointsby code_chimpover 6 years ago

5 comments

saidajigumiover 6 years ago
Perhaps more relevant than this click-baity editorialization, the Rust 2018 Survey itself and HN thread from a few days ago:<p><a href="https:&#x2F;&#x2F;blog.rust-lang.org&#x2F;2018&#x2F;11&#x2F;27&#x2F;Rust-survey-2018.html" rel="nofollow">https:&#x2F;&#x2F;blog.rust-lang.org&#x2F;2018&#x2F;11&#x2F;27&#x2F;Rust-survey-2018.html</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18544213" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18544213</a>
rafaelvascoover 6 years ago
Well, it is very hard or near impossible to make a sofisticated language&#x2F;compiler such as Rust and not expose quite a bit of that complexity to the programmer. I&#x27;ve been reading the 2018 docs and I agree to every deliberate decision they made. But they can be and mostly are a drag during development. But once one grows accostumed to it, it flows really well. The compiler forces you to be careful with your architecture and code decisions and thats really good; A problem is that, when you&#x27;re reading code made by proficient rust coders and you&#x27;re just getting started you most likely won&#x27;t understand quite a bit of it. Which is not true for most other languages.
Junk_Collectorover 6 years ago
While the article is a little sensationalist, I do agree with the point that the tangential tools needs work. The most frustrating part of working with Rust for me has been dealing with getting an IDE up and running to the point that I often just resort to Notepad++ and command line which switching to a different computer. If they had an out of the box IDE configuration that you could just install and go with little investment, I imagine it would go a long way toward adoption.<p>Think of it like the popularity of Anaconda, which is a just a collection of pre-configured available python packages.
评论 #18572720 未加载
dpc_pwover 6 years ago
That&#x27;s an overly pessimistic interpretation of the survey. :D<p>With soon to be released &quot;Rust 2018 Edition&quot;, quite a bit of mechanism are even easier to use on day to day basis.<p>I suspect that a lot of people that &quot;can&#x27;t get into Rust&quot;, are just bringing a baggage of OOP habits. I suspect it, because Rust (or rather struggles to structure my Rust code), were the main catalyst that made me fully realize why and how OOP is terrible and was causing my problems all along, even before Rust.<p>In a language like Java you can get pretty far, producing a typical OOP mess: with object referencing each other at will, creating a total spaghetti (graph of objects), full of race conditions, terrible performance, objects not being freed for weird reasons, race conditions, unclear ownership semantics etc. You only hit a wall much later, when it&#x27;s no longer possible to grow or even maintain your terrible, buggy codebase, that was supposed to be so pristine and great, because you followed all the OOP-best practices. But until that wall, you feel quite productive, designing your classes and class hierarchies, and feeling great about yourself.<p>In Rust, compiler demands proof that your code makes sense and is well structured, with clear ownership relationship, lack of race conditions etc. Like any data-oriented paradigm, that is a death blow to a typical OOP approach. People start playing with `Rc&lt;RefCell&lt;T&gt;&gt;`s and then give up, and think it&#x27;s Rust&#x27;s fault. I&#x27;ve seen topics like that on r&#x2F;rust and elsewhere, so it makes me belive it happens quite often.<p>Just to be clear: I&#x27;m not saying that there are no other reasons that are going to make it a challenge to get into Rust. But IMO, OOP habits are single biggest mistake, and you must leave them at the door when approaching Rust.<p>IMO, some data-centered development paradigms should be a common part of Rust introduction. A lot of people in the industry are clear that OOP is trash, but because of inertia it is still the dogmatic and popular way that common-developer things about designing software.<p>More on the topic of why OOP is so bad, and what to do instead: <a href="https:&#x2F;&#x2F;dpc.pw&#x2F;the-faster-you-unlearn-oop-the-better-for-you-and-your-software" rel="nofollow">https:&#x2F;&#x2F;dpc.pw&#x2F;the-faster-you-unlearn-oop-the-better-for-you...</a>
评论 #18573591 未加载
jlund3over 6 years ago
With a comparison of how hard or how long it takes to become proficient with a language, this article is pretty meaningless. From anecdotes I&#x27;ve heard from others about Rust and my own (limited) experience with the language, I suspect they are on to something, but this article contributes nothing that convinces me that Rust is hard to learn.
评论 #18572735 未加载