你如何设计功能性程序? [英] How do you design a functional program?

查看:143
本文介绍了你如何设计功能性程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我的编程生涯的第一天开始,我开始面向对象编程。然而,我有兴趣学习其他范例(这里我曾经在这里说过的一些事情是一件好事,但我没有时间去做)。我想我不但准备好了,但有时间,所以我将用F#启动功能编程。



然而,我不知道如何结构更少的设计应用程序。我习惯于OO编程中的一类文件和类名词/功能动词的想法。您如何设计和构建功能应​​用程序?

解决方案

阅读 SICP



另外,还有一个 PDF版本


From day 1 of my programming career, I started with object-oriented programming. However, I'm interested in learning other paradigms (something which I've said here on SO a number of times is a good thing, but I haven't had the time to do). I think I'm not only ready, but have the time, so I'll be starting functional programming with F#.

However, I'm not sure how to structure much less design applications. I'm used to the one-class-per-file and class-noun/function-verb ideas in OO programming. How do you design and structure functional applications?

解决方案

Read the SICP.

Also, there is a PDF Version available.

这篇关于你如何设计功能性程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆