
We don’t need a ternary operator
A staple of compact code, the ternary operator ?: feels like it’s earned a place any programming language. I use it often; you should use

A staple of compact code, the ternary operator ?: feels like it’s earned a place any programming language. I use it often; you should use

You’ve baked a fresh batch of gingerbread cookies. A bunch of little men, snowmen, stars, and bells are cooling on some trays. You clean up

Our favourite hobbies, like baking cookies or painting pictures, take time. Let’s ask a question though, does it take longer to bake one cookie or
Let’s get into some technical details about how a layout engine works. We assume that we have a tree of elements that comprise the UI.

Images require various sizing modes to fit in a responsive layout. Here we’ll look at the relationship between the element and visual and the basic

A box model describes how to measure an element for layout. It defines what size is and how it relates to the content, margin and

A good UI design must accommodate the various device formats and resolutions that users have. Element placement cannot be absolute, but rather be constrained and

Layout determines how children are positioned and sized within their parent element. There are three approaches to placing child elements within a parent: Additive: The

Devices have various physical resolutions and densities. One phone may be 10cm wide and have 800pixels across, while another may be 8cm wide and have

Elements have either a natural size, a dependent size, or combination of the two. The size of an element influences its placement. The user and