Giter Club home page Giter Club logo

rustlings-commented-solutions's Introduction

🦀 Commented solutions for Rustlings 5.6.1

This repository contains commented solutions for the Ruslings exercises, adding brief notes on what was necessary to complete the challenges (except where too obvious).

Whenever relevant, I also added different ways that the code could be written (in many cases in a more idiomatic way).

Note on comments

I use the Better Comments VSCode extension.

While regular comments are either original to the files or used to include different solutions in the same code block, comments in the format below were used to display notes or explanations (notice the "*"):

// * This is an explanation

References

I used this excellent repository as a learning reference, and to compare my solutions to already existing ones:

https://github.com/wh5a/rustlings-solutions/

The rusting exercises, particulary the hints, offer many direct references to the documentation.

Exercise to Book Chapter mapping

Exercise Book Chapter
variables §3.1
functions §3.3
if §3.5
primitive_types §3.2, §4.3
vecs §8.1
move_semantics §4.1-2
structs §5.1, §5.3
enums §6, §18.3
strings §8.2
modules §7
hashmaps §8.3
options §10.1
error_handling §9
generics §10
traits §10.2
tests §11.1
lifetimes §10.3
iterators §13.2-4
threads §16.1-3
smart_pointers §15, §16.3
macros §19.6
clippy §21.4
conversions n/a

rustlings-commented-solutions's People

Contributors

dezoito avatar

Stargazers

Martin Contreras U avatar

Watchers

 avatar

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.