4 ms·
Brilliant. Every language should have a book like this. I'm already learning a lot of little details about features I've had some passing experience on. Only re
by nstart 11y ago
Brilliant. Every language should have a book like this. I'm already learning a lot of little details about features I've had some passing experience on. Only request I have (which I generally have for stuff like this), is for real life use cases. Example would be args and *kwargs being used in decorators. Where do you use it? What's a real life example of it being used? How does that compare to the in built decorator functionality of Python? Answering this type of question helps people understand the technique and theory in equal measures as opposed to more theory than technique.
Thanks again for this :).
- n0us 11y agoI use decorators like that in Django where I want to reuse the same code to check something on the request object but the functions I am decorating expect keyword arguments
- nstart 11y agoI've been thinking of something like this for models especially. Where I have made my own models and worked with Flask, but now need to integrate the Django framework. Just a vague idea though. Haven't formed a clear picture of how I'll do it at all
- armandg 11y agoI usually search in code in github for IRL-examples. Sometimes it works just as good.
- satai 11y agoFor Java I can recommend Effective Java, that does similar stuff - expects you the basics and shows you idioms and "the right way". Now I search for a similar book for Haskell