|
I toyed with Rust when it was 0.6~ and I am looking forward to trying it again. Is there a recommended autocompletion tool?
|
# ¿ Jan 19, 2015 11:59 |
|
|
# ¿ Apr 29, 2024 05:18 |
|
Thanks whoever fixed the thread tag
|
# ¿ Jan 30, 2015 21:20 |
|
Rust's team is very open and welcoming to the point were they kicked a guy out for being too spicy. It's a shame they get blamed for what is an industry-wide problem. Now that I think about it what language design team actually have a woman in it?
|
# ¿ May 18, 2015 23:07 |
|
Redmark posted:I haven't followed Rust too closely, but didn't that guy have repeated and intense arguments with the core developers? Seemed like more a case of open personality conflict than being "too spicy". His arguments were technical as far as I recall.
|
# ¿ May 18, 2015 23:35 |
|
xgalaxy posted:What is everyone using for Rust dev in terms of IDE-like capabilities? I'd like to start looking at Rust more and I develop on both Windows and OSX machines. I see that there are Atom plugins, SublimeText plugins, VS Code plugins, and IntelliJ plugins. Which of these are the most mature and actively developed and supported? Is there any thing I'm missing? I use vim too but primarily on OSX. The IntelliJ plugin is very good. Also Rust Language Server (https://internals.rust-lang.org/t/introducing-rust-language-server-source-release/4209) is promising.
|
# ¿ Nov 12, 2016 20:53 |
|
Asymmetrikon posted:I think my least favorite thing about refactoring so far has been trying to isolate parts of a chain of iterators. The result of a .map().filter().whatever() has a gnarly result type. Let the compiler help you! The following will give you a compiler error with what you need: code:
Workaday Wizard fucked around with this message at 21:02 on Jan 3, 2017 |
# ¿ Jan 3, 2017 20:57 |
|
intellij-rust is a much more straightforward ide that doesn't require anything extra. makes development real easy.
|
# ¿ Jan 31, 2017 23:36 |
|
General_Failure posted:So IntelliJ rust is far enough along to be usable? It's good enough for me, a terrible programmer. The most important feature for me, quick navigation between files and definitions, works really well even with stuff in the standard library. I also find the code outline feature really helpful especially when reading third party code with many trait implementations. You should try it anyway. It won't take much to set up (get intellij, install plugin, point plugin to rust toolkit, voila) and it works with regular old Cargo projects.
|
# ¿ Feb 1, 2017 11:35 |
|
IIRC the if let thing is because it's sugar for match.
|
# ¿ Mar 2, 2017 12:50 |
|
xtal posted:You know what the tech community is really missing out on? Bureaucracy I don't see how having a documented change process is bad vv Or are you referring to something specific?
|
# ¿ Mar 3, 2017 00:42 |
|
Asymmetrikon posted:Has anyone used the Rust IntelliJ plugin with rustup? If so, how do you get it to find the standard library sources? It comes up with an option to download them, and I click on it and it doesn't error out or anything, and I can check that the rust-src component is installed and the rust sources are downloaded, but no matter what I do the plugin doesn't seem able to find them. Even if I manually point it at any of the folders in the source path, it says those are invalid. I didn't do anything special. Try building your project.
|
# ¿ Apr 23, 2017 11:13 |
|
ssergE posted:Is this if you do the "New Project" dialog in IDEA? If so, I had the same issue but found I could leave it blank and it sorted itself out automatically upon doing the initial indexing. I ran "Developer Command Prompt for VS 2017", dumped the variables with "set > env_file", then added the variables to my running configuration (.idea/workspace.xml). This way I was able to build and run directly from Intellij.
|
# ¿ Apr 25, 2017 15:51 |
|
Karate Bastard posted:That doesn't sound much like Scientology at all! The book is nice (check out the second edition first): https://doc.rust-lang.org/book/ There is also Rust by Example which is useful: https://rustbyexample.com/ Additionally you might find this guide useful later after you get the basics: https://github.com/kmcallister/rustic-symmetries e: The docs are quite useful and contain a lot of examples: https://doc.rust-lang.org/std/ PS: You can view the actual code from the documentation pages by clicking [src] at the top. e2: Don't forget to check out the super friendly user forum: https://users.rust-lang.org/ and IRC: #rust-beginners @ irc.mozilla.org Workaday Wizard fucked around with this message at 15:25 on Jun 30, 2017 |
# ¿ Jun 30, 2017 15:16 |
|
xtal posted:That's dumb as hell Not really. It makes writing small programs easier and if you don't use it nothing changed for you anyway.
|
# ¿ Jul 18, 2017 16:24 |
|
xtal posted:The cost of calling unwrap or expect once is not worth this oddity which is unique across all programming languages I've used. How do Java, C#, Python, etc. report unhandled exceptions?
|
# ¿ Jul 18, 2017 17:53 |
|
Hell yeah. This will get rid of a ton of headache.
|
# ¿ Oct 26, 2017 07:39 |
|
That quiz kicked my rear end. Good thing I stick to basics.
|
# ¿ Dec 3, 2018 09:48 |
|
Mirconium posted:I have a philosophical question for the thread: I can't speak for others but in my experience the libraries are getting better and more ergonomic. The major example for me personally is actix-web. I think the data science/math stuff is gonna take a longer time to improve since it's really hard to justify anything but Python for those tasks.
|
# ¿ Sep 2, 2019 10:31 |
|
street doc posted:Both loadenv and dotenv are pulling up my system environment variables, but not the .env in the drat folder. Wtf It might be a permissions issue. Check if the user running your application has access to .env file and that the file is in the current working directory. This could happen if you accidentally create the .env file while root.
|
# ¿ Mar 14, 2021 06:26 |
|
Hed posted:Sorry it took so long to reply. I decided to do some more research since I'm new to Rust and converting a program from Python. With a fresh set of eyes, I sat down and realized I hadn't namespaced the function. I popped in glob::glob() instead of glob() and everything immediately clicked! Just FYI you don't need `extern crate blah` for most cases anymore. You can just `use` whatever you want from the external crates directly. More info: https://doc.rust-lang.org/nightly/edition-guide/rust-2018/module-system/path-clarity.html
|
# ¿ May 2, 2021 23:28 |
|
Testing...Rust code:
|
# ¿ Jul 2, 2021 12:30 |
|
|
# ¿ Apr 29, 2024 05:18 |
|
Neat! Good stuff admins.
|
# ¿ Jul 2, 2021 12:31 |