Mobify Developer Blog Mobify

Get great mobile design and development tips in your inbox, right when we publish them.

A Python guide to handling HTTP request failures

A lot of things can go wrong when requesting information over HTTP from a remote web server: requests timeout, servers fail, government operatives cut undersea cables. You get the picture.

Identifying and handling failures helps build fault tolerant systems that stay up even when services they rely on are down. A nice side effect is your phone is less likely to beep in the middle of the night with a message from your coworkers talking in all caps.

This guide will introduce you to the common ways HTTP requests fail and how to handle the failures.

Read the full article →

How to Use SQLAlchemy Magic to Cut Peak Memory and Server Costs in Half

We do a lot of A/B testing at Mobify, and that means a lot of analysis of the results. We collect and store data from many websites and need to be able to run analyses multiple times as we improve and modify our techniques.

Much of this work is done in Python, using SQLAlchemy for database access and Pandas for analysis. This post is about how we took an initial script that used a simple approach to reading data and reduced the peak memory requirements.

Read the full article →

DevOps 101: Best Practices for Optimizing and Automating Your Infrastructure

DevOps 101: Best Practices for Optimizing and Automating Your Infrastructure

Whether you're coming across the term for the first time, or you've been listing it on your LinkedIn profile for a couple of years now, it's likely that you are still faced with the question: What exactly do we mean by DevOps?

Whatever your situation, the good news is that if you like automating things and want to see what's going on with those tech hipsters and their fancy conference T-Shirts, you've come to the right place to learn more!

In this post I'll attempt to outline some of the common themes across the best environments practising DevOps, and communicate some of the top DevOps practices you can bring to your own dev environment.

Read the full article →

5 Advanced Mobile Web Design Techniques You’ve Probably Never Seen Before

5 Advanced Mobile Web Design Techniques You’ve Probably Never Seen Before

Until recently, creating mobile web designs that look and feel like native apps has pretty much been an impossible dream. There are plenty of creative workarounds to try and bring that native ‘feel’ to mobile web browsing, but so far we've struggled to bridge the gap between native and the web.

However, a slew of new, high-powered smartphones is allowing designers to finally unleash complex, performant, native-feeling smartphone UI patterns — designed and built for the web. These patterns are blurring the lines between native apps and the web.

Take — their new adaptive website is an interesting example of how to provide a great user experience at different screen-sizes, while also targeting different device capabilities. This has led to some truly advanced mobile designs that work extremely well on recent devices.

In this post, you’ll find five awesome design patterns from that you’ve likely never seen before while browsing the web on a smartphone.

Read the full article →

12 Must-Read RWD Resources (September Digest)

12 Must-Read RWD Resources (September Digest)

Here at Mobify, we spend a fair share of our time collecting and sharing the most interesting resources on how to create amazing responsive web experiences. Hell, you might even call it a passion of ours!

In this post, I wanted to highlight some of the best RWD stories that got us excited this past month.

(If I missed any cool ones, let me know in the comments. Or if you've written something that you think should be included, post it as well!)

Let's dive in!

Read the full article →