πŸ—» James Van Dyne

✈️Trips πŸ—ΊοΈMaps ✏️️Blog πŸ”—οΈοΈLinks πŸƒRuns πŸ‘‰Now
  • 🏑Home
  • ✈️Trips
  • πŸ—ΊοΈMaps
  • ✏️Blog
  • πŸ”—οΈLinks
  • πŸƒRuns
  • πŸ‘‰Now
  • ✏️Articles
  • πŸ“€οΈReplies
  • πŸ’¬Status
  • πŸ”–οΈοΈBookmarks
  • πŸ—ΊCheckins
  • πŸ“…The Week
  • πŸ–₯Tech
  • 🌲Sustainability
  • πŸƒRunning
  • 🧠Thoughts
  • πŸ‡―πŸ‡΅Japan
  • πŸ’‘TIL
  • β›°Tanzawa
  • 🏑Home
  • ✏️Articles
  • πŸ“€οΈReplies
  • πŸ’¬Status
  • πŸ”–οΈοΈBookmarks
  • πŸ—ΊCheckins
  • πŸ“…The Week
  • πŸ–₯Tech
  • 🌲Sustainability
  • πŸƒRunning
  • 🧠Thoughts
  • πŸ‡―πŸ‡΅Japan
  • πŸ’‘TIL
  • β›°Tanzawa
  • Checkin to Starbucks

    Starbucks 35.40105948758166 139.4417372864494
    Aug 03, 2019
    by James
    in Fujisawa, Kanagawa, Japan
    A nice morning trip to Starbucks with the family. Leo has had his first yogurt and banana at Starbucks.
    πŸ”—permalink
  • Recent End to End Testing Preferences with Django

    Aug 02, 2019
    by James

    When testing in Django there's two basic ways to make an End-to-End test for your view: use the test client to send a request to the server or create a fake request object and manually call your view function.

    One isn't "better" than the other, but I've come to prefer using the mock client over the fake request for the following reasons:


    1. Client tests hit the entire stack of code before executing your view allowing you to catch any conflicts with a middleware or settings and your view.

    2. Url Path tests come for free. When testing with fake request objects you can put any path you'd like in there and it will execute missing that bad merge where your url config change removing an endpoint.

    3. It's (slightly) easier to reason about. If I'm writing a test to confirm X happens when Y is posted I make Y and post it rather than making an object that pretends Y was posted.

    4. It removes the friction to refactor your views. As long as the url stays the same, you can rename and move your view however you'd like without changing any of the tests. This makes it easier to create a more consistent codebase e.g. some views use the verb "save" while others use "register".

    πŸ”—permalink
  • Jul 31, 2019
    by James

    Another post dinner walk to watch some trains.

    πŸ”—permalink
  • Jul 26, 2019
    by James

    Checked in at デニーズ ζΉ˜ε—ε°εΊ—. Gave in and let Leo have his first fry.

    πŸ”—permalink
  • Checkin to Denny's (デニーズ)

    Denny's (デニーズ) 35.39638951434699 139.4668459765965
    Jul 26, 2019
    by James
    in Fujisawa, Kanagawa, Japan
    Gave in and let Leo have his first fry.
    πŸ”—permalink
  • Jul 24, 2019
    by James

    It was a hot one today πŸ₯΅Lovely after dinner walk to watch the trains come and go.


    πŸ”—permalink
  • Jul 24, 2019
    by James

    Checked in at Shake Shack. Went for a single this time. But it’s nice and warm outside. Perfect burger weather.

    πŸ”—permalink
  • Checkin to Shake Shack

    Shake Shack 35.686149 139.700635
    Jul 24, 2019
    by James
    in Shibuya, Tokyo, Japan
    Went for a single this time. But it’s nice and warm outside. Perfect burger weather.
    πŸ”—permalink
  • Jul 24, 2019
    by James

    Checked in at Starbucks (Starbucks Coffee)

    πŸ”—permalink
  • Checkin to Starbucks

    Starbucks 35.688891 139.702477
    Jul 24, 2019
    by James
    in Shinjuku, Tokyo, Japan
    πŸ”—permalink
Previous 201 of 363 Next
Reply by email
Powered by
πŸ”Tanzawa

← An IndieWeb Webring πŸ•ΈπŸ’β†’
Photo of James Van Dyne James Van Dyne Japan

Web developer living in Japan.