Skip to main content

Questions tagged [functional-programming]

For questions relating to teaching the functional programming paradigm. A few examples of languages which support this paradigm are Haskell, Scheme, Lisp, Racket, OCaml, Clojure, ML, and Erlang.

Filter by
Sorted by
Tagged with
2 votes
3 answers
86 views

How can I teach Functional Programming and Verification

I have been told to teach a Functional Programming and Verification course that specifies the following topics: Correctness of imperative programs Verification according to Floyd or Hoare ...
alper's user avatar
  • 23
1 vote
2 answers
173 views

Should an undergraduate course on Programming Languages precede or succeed the course on Compiler Construction?

I am an undergraduate CS student half way through my degree. I have started taking an online(Youtube) course on Programming Languages. The course contents include the following topics: First-class ...
Taimoor Zaeem's user avatar
15 votes
5 answers
6k views

Which book should I choose to get into the Lisp World?

I am an undergraduate computer science student. I have completed two out four years of my degree. I have not had an interaction with any Lisp family of languages. I have strong background in C, Java, ...
Taimoor Zaeem's user avatar
4 votes
3 answers
418 views

What sort of programming assignments do you give in an FP course?

I teach programming to a science/engineering students. Here is a typical sequence of assignments for a beginning programming class: Arithmetic and conditionals: does ...
Victor Eijkhout's user avatar
2 votes
2 answers
101 views

Do you know online courses with Haskell for Theory of Computation?

I taught Theory of Computation last Fall and I believe it would be more interesting for students to add some coding implementations. Are you aware of any online course or textbooks in which Haskell (...
Drimades Boy's user avatar
5 votes
3 answers
189 views

What is a real-world (production-code) example of a function having default arguments?

I want to teach students about default function arguments. I have a bad habit of cooking-up contrived examples. To prove that I am not a student cheating on their homework, I shall provide you with ...
Samuel Muldoon's user avatar
2 votes
1 answer
71 views

Logo course scaffolding

Good afternoon, colleagues! We're planning a year-long intro course to computer science for middle schoolers and going to use Logo as a main language but also looking for alternatives available to 5-...
paus's user avatar
  • 233
3 votes
1 answer
100 views

Problem book for Haskell course

I need a set of problems for beginner Haskell course represented as a problem book or workbook. Can you help me find any to give them as a homework on weekly basis? I was able to find only one book in ...
paus's user avatar
  • 233
5 votes
5 answers
220 views

Discrete function is also a math function?

Here is a table of the Staten Island subway: ...
147pm's user avatar
  • 151
5 votes
3 answers
138 views

How to introduce Kotlin in a Programming Languages course

I'm teaching an upper-division college Programming Languages course, in which students have learned some Scheme, Haskell, and Go. Students' strongest language is Java, which we use in most of our ...
Ellen Spertus's user avatar
-1 votes
1 answer
89 views

What are Macros in programming language am little bit confuse . why we use them for which perpose? [closed]

What are macros in programming language ? And we use these macros and for which perpose.I saw a YouTube video and also read from a link but am cofused about why we use them.
Iram Shah's user avatar
  • 113
6 votes
0 answers
163 views

Small to medium scale exercises about Haskell's higher abstractions

Short version: Where can I find highly varying, small or medium-sized exercises and examples on the use, identification and instance declaration of Haskell's abstractions such as applicatives, monads, ...
jhu's user avatar
  • 181
3 votes
1 answer
119 views

Statistics on functional programming in CS1

This question got me thinking about cs1 and functional programming. Do there exist anywhere statistics on what portion of schools teach cs1 using a functional paradigm? I know that some schools do, ...
Ben I.'s user avatar
  • 34.3k
12 votes
6 answers
2k views

Why isn't Functional Programming Taught First?

We've recently gone through the process of selecting an intern from a local university to join our team for the summer. We are using F# and almost exclusively using functional programming techniques ...
Aaron M. Eshbach's user avatar
3 votes
2 answers
165 views

Functional Programming - using F sharp

I learnt a lot (like kept hearing about it) about functional programming after coming to this community. I had heard of it before but was unaware of its importance. Then, I started including ...
Jay's user avatar
  • 1,884
8 votes
2 answers
679 views

Mini-Projects that can be covered in an 1 hour Haskell tutorial

I am supposed to be holding a tutorial session in an Undergraduate Haskell Course, which is also supposed to be a first course in programming for a few of the students. Ideally, the tutorial should be ...
Agnishom Chattopadhyay's user avatar
6 votes
1 answer
392 views

Does teaching an intro course with a functional language really help level the playing field?

On another question, Ben. I claimed: By utilizing a functional language in your first course, you get to have a classroom full of kids who have a much more similar footing. And when you move on,...
Ellen Spertus's user avatar
65 votes
12 answers
27k views

How to answer "functional programming is useless"?

I'm a TA for several Bachelor level functional programming courses at my university. In every edition we have problems with some students that have the idea that functional programming is useless, ...
user avatar
3 votes
2 answers
160 views

How to introduce Scala to a team of Java developers without being boring?

I work in a startup where each week, a member of the team does a short presentation (30-60 min) on a subject in front of the others. It is a very informal and relaxed session, but now it is my turn ...
user avatar
38 votes
11 answers
14k views

Learning fundamental differences between functional programming and Object Oriented Programming

I've been trying to learn the differences between Functional Programming and OOP, but I can't seem to find a comparison of the two. A Google search did not yield any chart or table showing such a ...
ItamarG3's user avatar
  • 6,312
8 votes
4 answers
768 views

What 'procedural' habits to break when teaching 'functional' programming?

I have a class undergraduate students (2nd and 3rd year) who have had at least two terms of college/university level programming courses using a procedural programming language (typically C++), and ...
Gypsy Spellweaver's user avatar
8 votes
4 answers
666 views

How should the paradigm shift associated with functional programming be approached?

As a student primarily experienced with imperative and object-oriented languages, my first few hours learning Haskell at university were a bit of a struggle. There's a real shift involved in terms of ...
Adam Williams's user avatar
5 votes
1 answer
159 views

Significant algorithm from CS for DrRacket that emphasize cons, car, and cdr

When my students move up to junior year, they make a series of transitions: from programming to theoretical computer science, and from imperative to functional programming. We use DrRacket, and one ...
Ben I.'s user avatar
  • 34.3k
11 votes
4 answers
2k views

Scheme vs Haskell for introducing functional programming

So, I am not interested in which language is better, because that is a matter of opinion. What I care about is whether making a switch from Scheme to Haskell will directly help me accomplish my goals....
Ben I.'s user avatar
  • 34.3k