Open in app

Sign In

Write

Sign In

Yeray Diaz
Yeray Diaz

623 Followers

Home

About

May 9, 2018

What the mock? — A cheatsheet for mocking in Python

It’s just a fact of life, as code grows eventually you will need to start adding mocks to your test suite. What started as a cute little two class project is now talking to external services and you cannot test it comfortably anymore. That’s why Python ships with unittest.mock, a…

Unit Testing

10 min read

What the mock? - A cheatsheet for mocking in Python
What the mock? - A cheatsheet for mocking in Python
Unit Testing

10 min read


Aug 29, 2017

Asyncio Coroutine Patterns: Errors and cancellation

This is the second part of a two part series on coroutine patterns in asyncio, to fully benefit from this article please read the first installment: Asyncio Coroutine Patterns: Beyond await In the first part of this series we concluded that asyncio is awesome, coroutines are awesome and our code…

Python

11 min read

Asyncio Coroutine Patterns: Errors and cancellation
Asyncio Coroutine Patterns: Errors and cancellation
Python

11 min read


Published in

Python Pandemonium

·May 3, 2017

Asyncio Coroutine Patterns: Beyond await

Asyncio, the concurrent Python programmer’s dream, write borderline synchronous code and let Python work out the rest, it’s import antigravity all over again… Except it isn’t quite there yet, concurrent programming is hard and while coroutines allow us to avoid callback hell it can only get you so far, you…

Python

10 min read

Asyncio Coroutine Patterns: Beyond await
Asyncio Coroutine Patterns: Beyond await
Python

10 min read


Feb 20, 2016

AsyncIO for the Working Python Developer

I remember distinctly the moment where I thought, “Wow, that’s slow, I bet if could parallelize these calls it would just fly!” …

Python

13 min read

AsyncIO for the Working Python Developer
AsyncIO for the Working Python Developer
Python

13 min read


Apr 19, 2015

Django/Rails cheat sheet

Hey, Django dev, come here for a sec! I heard you’re on Rails now, looking for some quick answers? Yeah, I’m your man, got them right here. ORM I’m gonna be straight with you, Django’s ORM is nicer than Rails’s. There, I said it. Now that it’s out of my system…

Django

6 min read

Django/Rails cheat sheet
Django/Rails cheat sheet
Django

6 min read


Apr 14, 2015

How do I Django in Rails?

You are seasoned Django developer. You are master of the models. Ruler of the views. King of the templates. But fate has brought you to Rails now, and you feel clumsy, slow, googling every step of the way. You’re asking yourself how do I Django in Rails? I’ve been there…

Django

5 min read

How do I Django in Rails?
How do I Django in Rails?
Django

5 min read


Published in

Offset HQ

·Mar 27, 2015

Week Eight

Wait, we’ve launched? Nice! It’s been busy around here, real people are making real Stacks and we’ve been at our best to keep up. A whooping total of 600+ invite requests, 344 users and a nice round grand total of 150 Stacks! Slowly but surely we’ve been bug fixing and…

2 min read

Week Eight
Week Eight

2 min read

Yeray Diaz

Yeray Diaz

623 Followers

Freelance Software Engineer, London, UK. Twitter: @yera_ee

Following
  • World Web Technology Pvt. Ltd.

    World Web Technology Pvt. Ltd.

  • Farooq (SF Ali) 📊🅿️Ⓜ️

    Farooq (SF Ali) 📊🅿️Ⓜ️

  • Simon Harrison

    Simon Harrison

  • Shabeer Ayar

    Shabeer Ayar

  • Tae Oh

    Tae Oh

See all (72)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams