Code Monkey home page Code Monkey logo

learnm's Introduction

起初这是一个如何使用LINQ来组合业务代码的教学项目。其基本理念源自Railway Oriented Programming,我个人十分喜欢F#,不过由于在小城市生态不好招到相关人才,我改用C#LINQ来做一个简化版的ROP,虽然写起来不如F#干爽,但是好歹算是能用的土枪土炮了。

这种函数式的编程**,可以大幅提高业务代码的可读性和可维护性。这种编程**横跨各个编程语言,在F#C#RustTypeScriptPython等等编程语言中,均有相似实现。

Get Started

任务1

  • 要求用户输入的整数a
  • 要求用户输入的整数b
  • 输出a + b

任务2

现在需求变更,改成:

  • 要求用户输入的整数a,要求a > 10
  • 要求用户输入的整数b, 要求b < 100
  • 输出a + b

示例

这里列出部分编程语言ROP风格的代码示例:

  • C#
  • Rust
  • Python

learnm's People

Contributors

newbienewbie avatar caixinweiomo avatar

Stargazers

lyj990513 avatar JimWU avatar

Watchers

James Cloos avatar  avatar  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.