Code Monkey home page Code Monkey logo

hands-on-functional-programming-in-rust's Introduction

Hands-On Functional Programming in Rust

This is the code repository for Hands-On Functional Programming in Rust, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Functional Programming allows developers to divide programs into smaller, reusable components that ease the creation, testing, and maintenance of software as a whole. Combined with the power of Rust, you can develop robust and scalable applications that fulfill modern day software requirements. This book will help you discover all the Rust features that can be used to build software in a functional way.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

All code files are present in their respective folders.

The code will look like the following:

pub trait MotorController
{
  fn init(&mut self, esp: ElevatorSpecification, est: ElevatorState);
  fn poll(&mut self, est: ElevatorState, dst: u64) -> MotorInput;
}

In order to successfully read through this book and work out all the code samples, we expect readers to fulfill the following

  • We assume familiarity with the concepts from the first 10 chapters of Rust documentation (https:/​/​doc.​rust-​lang.​org/​book/​). Some of the material from these chapters is fairly advanced, so we will also explain that here when relevant. However, the knowledge of syntax and very basic features will be expected.
  • Clone the GitHub code repository and follow along. Tweak the examples and see what effects you can create.
  • Stay curious. Some of the keywords we mentioned could fill an entire book with unique content. Some of these topics presented are so pervasive that they have decent Wikipedia articles to explain and expand on the concepts. However, knowing the keyword is required to even know what to search for.

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781788839358

hands-on-functional-programming-in-rust's People

Contributors

adhithya21 avatar andrew-packtpub avatar initerworker avatar packt-itservice avatar packtutkarshr 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  avatar

hands-on-functional-programming-in-rust's Issues

Chapter05 - Wrong output and incomplete example

Chapter 05

  • The software application doesn't fit with the requirement and doesn't work.

Behavior

Inputs :

1
1
2

Outputs :

[ ]   Carriage at floor 1                                                                                                            
[ ]   Location          -123765.633135                                                                                               
[ ]   Velocity          -1557.509385                                                                                                 
[ ]   Acceleration      -9.800000                                                                                                    
[ ]   Force [up-down]   0.000000                                                                                                     
[ ]                                                                                                                                  
[ ]                                                                                                                                  
[X]                                                                                                                                                                               

Overall, the deliverables are supported by fairly maintainable code, and the project is going good.

  • I'm not sure about "going good." I used the repository to do my tests.

  • Another thing that is the absence of input text file reference in this Chapter05.
    -- Maybe the test process is important too!

  • I have a question about it. Why did you remove the tests folder?
    -- The end-to-end test was basic, but who knows.

Best regards,

Walter

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.