| ▲ | jacquesm 4 hours ago | |||||||
> Pure functions are a good theoretical exercise but they can't exist in practice. Well, they can. But not all the way up to the top level of your program. But the longer you can hold off from your functions having side effects the more predictable and stable your codebase will be, with as an added benefit fewer bugs and less chance of runtime issues. | ||||||||
| ▲ | DonHopkins 3 hours ago | parent | next [-] | |||||||
Yes, but they're "Hello world!" hostile, so traditional programming language pedagogy doesn't work well. Q: How many Prolog programmers does it take to change a lightbulb? A: Yes. | ||||||||
| ||||||||
| ▲ | raverbashing 2 hours ago | parent | prev [-] | |||||||
Yes I agree, pure functions are good building blocks (for the most part), but I don't think the current abstractions and ways of bridging the FP and Procedural world are good enough Also have you managed to eliminate the side effect of your IP register changing when your program is running? ;) | ||||||||