Discover and read the best of Twitter Threads about #AFTER

Most recents (9)

I often teach about Decorators in Python.

Many know how to use them, but few can write them.

These are tricky because nested functions make our brains hurt.

Here are some hints for grokking them.

1/ Image
In short, decorators allow you to inject orthogonal behavior before or after a function is executed.

But my favorite decorator definition is related to the construction and will help you easily create them: A callable that takes a callable and returns a callable.

2/
What do I mean by "orthogonal"?

A function should do one thing. If you want to add caching or logging, it really isn't related to the function (and could be applied to multiple functions). It is "orthogonal" behavior.

3/
Read 13 tweets
I often teach about Decorators in Python.

Many know how to use them, but few can write them.

These are tricky because nested functions make our brains hurt.

Here are some hints for grokking them.

1/
In short, decorators allow you to inject orthogonal behavior before or after a function is executed.

But my favorite decorator definition is related to the construction and will help you easily create them: A callable that takes a callable and returns a callable.

2/
What do I mean by "orthogonal"?

A function should do one thing. If you want to add caching or logging, it really isn't related to the function (and could be applied to multiple functions). It is "orthogonal" behavior.

3/
Read 13 tweets
Last week I taught a course that covered Decorators in Python.

Many know how to use them, but few can write them.

These are tricky because nested functions make our brains hurt.

Here are some hints for grokking them.

1/
In short, decorators allow you to inject orthogonal behavior before or after a function is executed.

But my favorite decorator definition is related to the construction and will help you easily create them: A callable that takes a callable and returns a callable.

2/
What do I mean by "orthogonal"?

A function should do one thing. If you want to add caching or logging, it really isn't related to the function (and could be applied to multiple functions). It is "orthogonal" behavior.

3/
Read 12 tweets
1. #Economics of #GoatFarming. The prize of certain goats is a subject of constant bickering on local goat market. Unconvinced, some immediately quit the idea of #GoatFarming & thrilled some plunge with no due consideration whatsoever. BUT, Where is the Money.
#ZimAgricRising
1.1 To start, you simply need to define the objective of your goat enterprise.This will inform the breeding systems to be deployed, hence the costs of the animals to be introduced and later the value of the products that you will sale.
#Warning: LongThread Ahead.#ZimAgricRising
1.2. Making the above fundamental decision is crucial. It is a different ball game altogether when you produce pure breeds (goat seed production) Vs Cross breeding to produce mainly commercial goats for meat/milk production.
#ZimAgricRising #GoatFarming #GoatEconomics
Read 17 tweets
I didn’t write this I it’s entirety & not sure who did - but WOW does it speak to my heart!

Worth a read & definitely #TooGoodNotToShare

Pl don’t wait to read it later!

Barely the day started & it's already six in the evening.

Barely arrived on Monday & it's already Friday.
Barely the month has started and is more than half over..

The year just began & one sixth is almost over

And already 30, 40, 50 or 60 years of our lives have passed

And we realize that we lost our parents, some friends & acquaintances

And we realize it's too late to go back.
So... Let's try, despite everything, to enjoy the remaining time...

Let's keep looking for activities that we like...

Let's put some color in our grey...

Let's smile at the little things in life that put balm in our hearts.
Read 8 tweets
#After Prayer Walk Pix

My Personal Prayer Walk (Within the confines of my area )diary this 21st day of June.

Today was about the Holy Spirit. (my Dependable Guide, Counsellor, Ally).

•For the Holy Spirit to guide you, He first speaks to you.
•If you cant hear what the Holy ImageImageImage
Spirit is saying to you, you cannot be led
•If you cannot be corrected, you cannot be directed.
•It takes light to know where you are going.
•The Apostles were baptized in Acts 2, they were filled in Acts 4 so as to be in a state where He could direct them.
It takes an infilling of the Holy Spirit to make one submissive to His authority.
•Every greatness is traceable to the accuracy of divine guidance.

•Some of us today are at a point in life where the Holy Spirit cannot correct us.
•Until your meekness is tested and passed,
Read 6 tweets
After, the movie, suffered from a lot of the same problems the book had. Namely, a lack of plot and absolutely no reason our two main characters should like each other or behave the way they do. #After #snarkathon
There are things the movie does better than the book, mostly by virtue of being a movie: strip the content way down, get us out of Tessa's head, montage a bunch of the repetitive stuff. #After #snarkathon
There are choices the movie made to water down Todd's pile of shit: Hardin doesn't punch around town, he doesn't keep their bloody sex sheets, he doesn't ruin a yogurt place, the bet is softened, the mom is more understanding, and Zed is all but removed from the story. #After
Read 6 tweets
I really like Steph? I mean, I also liked her in the book until the very end when everyone ended up being horrible. #After #snarkathon
Is everyone just staring at them staring deeply in each other's eyes? Cool party, bros. #After #snarkathon
Has college changed a lot since I was there? How common is truth or dare and interrogating strangers about their sexual history? #After #snarkathon
Read 4 tweets
She's wearing a ponytail at the beginning of the movie to signal innocence and virginity. I'm so good at movies. #After #snarkathon
I've just been sitting here in disbelief that Selma Blair is the awful mom in #After. #snarkathon.
This movie is already better by allowing non-white people to exist. #After #snarkathon
Read 3 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!