Rui Carlos 359 Posted July 24, 2019 Report Share Posted July 24, 2019 Citação [...] Many moons ago, you may have been asked to write a recursive function that prints everything in a list, and you write code like so. And then someone else comes up and says, "Oh, I know. I have another way of doing it. Another approach: an iterative version." And now, you know that these are equivalent and it's not really two ideas but two faces of the same approach. You can turn one into the other. [...] Well, what I'd like you to do is now forget anything you knew before about how you would make this iterative, because you don't need that. It's actually a special case of defunctionalization which is what I'm going to be teaching you today. [...] Fonte: http://www.pathsensitive.com/2019/07/the-best-refactoring-youve-never-heard.html Transcript de uma apresentação também disponível em vídeo: https://www.youtube.com/watch?v=vNwukfhsOME Rui Carlos Gonçalves Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now