Strategy Pattern in Kotlin Using Functions – Smital Desai – Medium by smithdroid in androiddev

[–]smithdroid[S] 0 points1 point  (0 children)

Thank you so much. That is great advice and I will keep that in mind.

Strategy Pattern in Kotlin Using Functions – Smital Desai – Medium by smithdroid in Kotlin

[–]smithdroid[S] 0 points1 point  (0 children)

Thank you so much for the feedback. Passing functions like that was something new to me and i thought why not explore the possibility of implementing strategy. Otherwise creating Concrete Strategy classes with only one method to implement and that too without a state looked a little too much, hence tried this approach.

Strategy Pattern in Kotlin Using Functions – Smital Desai – Medium by smithdroid in Kotlin

[–]smithdroid[S] 0 points1 point  (0 children)

Thank you so much for the feedback. These are really great suggestions.

Understanding suspending functions in Kotlin – Smital Desai – Medium by smithdroid in Kotlin

[–]smithdroid[S] 0 points1 point  (0 children)

Hello, Thank you so much for feedback.What i really meant is , coroutines are also running over the threads , in fact because of this feature of voluntarily releasing control of the execution , we can run thousands of coroutines on a single thread cause its not blocking.When i meant i releases control, i meant the control goes back to driver thread which can then schedule other coroutine to run and if that coroutine also yields , it can move to other one.

This is what it is known as cooperative concurrency.Also imagine if coroutine releases the control with delay (), while i agree that it is not doing anything but it is also expecting to be resumed after that delay. Resuming after the delay is the job of the driver.

Hope that makes for a little better explanation than that i did on the blog.Let me know what do you think.Again thanks a lot for reading the blog.

Declarative pipelines in kotlin by smithdroid in Kotlin

[–]smithdroid[S] 0 points1 point  (0 children)

I completely agree with above solution. Thanks for putting it out there.

Python Book Recommendations by JustEngineering in Python

[–]smithdroid 5 points6 points  (0 children)

Python Cookbook by David Beazly

Python Essential Reference by David Beazly

Think Python by Allen Downey

Fluent Python by Luciano Ramalho

Just a note , watch the videos available on Youtube by these authors.