Giter Club home page Giter Club logo

a-very-brief-intro-to-rust's People

Contributors

arunmichaeldsouza avatar ashleygwilliams avatar cg-cnu avatar cpeterso avatar gustavokatel avatar hhnr avatar jfsantos avatar mschmo avatar pandapaul avatar pointlessone avatar steveklabnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a-very-brief-intro-to-rust's Issues

Outright confusing example of test cases

In the example test function, it demonstrates your complete lack of understanding for how Option<> works in Rust. You supply the argument some of the time, in the form of what should be the "contained" type, and in another test, you leave it out altogether. Not to mention that the input type for the tested function does not take an Option<>.

Missing semicolons

There is a missing semicolon at the end of the line defining str1 in the first example of concatenation, and str2 in the second.

There is also a missing semicolon at the end of whos definition in the "Option" example, and in the testing example.

Incorrect comment type

You appear to be using the documentation (///) comment type in your examples, rather than the correct regular (//) comments. You should only use /// when documenting your code so it can be parsed by rustdoc.

A bit confused about why the trailing comma gets called out

Thanks for these slides!

In slide 15 the comment mentions a trailing comma.

This looks like maybe it's something you mention in the talk, but as someone just reading the slides without that context I don't know what it means. What does it mean?

Maybe a third bullet to explain it? Or an * at the end?

signed/unsigned is kind of confusing and maybe worth explaining

Hey hey!

I am very much a beginner rustacean who comes and looks around at rust bookmarks once a month or so and really appreciate this resource

A few months ago (oh god, it was six months ago) I focused really hard on Rust for a few days and made a bit of small progress, and one of my small breakthroughs was realizing that "signed" and "unsigned" weren't some super advanced CS thing (maybe about like.. cryptography?) but actually kind of simple/understandable. Maybe I'm the only one who is thrown off by this term, bc all of the rust resources I looked at treated it as kind of obvious... but I think an introductory resource like this might as well cover that base. I think a helpful way to do it would be to give some examples on the slide that introduces them. Something like:

u32: unsigned 32-bit integer (for example, 4 or 5)
i32: signed 32-bit integer (for example, -4 or positive 7)

(feel free to run with that or anything else)

Thanks for making this!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.