HNHacker News
TopNewBestAskShowJobs

mpetrovich

254 karma · joined May 29, 2016

petro.blog
submissionscomments
mpetrovich··on A suggestion on how to spend a day at home
Same here, could someone eggsplain?
mpetrovich··on The Food Lab: Why Does Pepperoni Curl?
This needs a [NSWH], aka Not Safe When Hungry.

In all sicilianness, the author just wanted an excuse to binge on home-baked pizza. Ugh. Disgusting. I'd do the same.

Next article in the series: "Why does bacon make everything taste better?"

mpetrovich··on Pills: A simple responsive CSS grid for humans
Besides lack of good cross-browser support until recently, I think there are a few reasons why flexbox is still less popular than float- or margin-based grids:

- Steeper learning curve and less accessible than adding a class like "col-3" or "grid--1/2". The latter is almost self-explanatory.

- Requires an existing or new CSS class to bind the styles to. If it's a new class, you have to figure out a good name (which isn't always easy, naming things is hard).

- Requires editing CSS/Less/Sass, which (depending on your setup) can require waiting for it to compile. The wait time for compiling/bundling HTML is usually negligible.

- Traditional grid systems just work, and they work well enough for most things. When you have more important & interesting problems than a CSS grid system, there's a bias towards shipping what works and moving on.

That being said, flexbox is really powerful and a great tool for many things. But for many simple layouts, traditional grid systems can get the job done just fine without requiring much initial investment. On interdisciplinary teams where non-frontend devs can contribute, end-user simplicity is sometimes more important than language sophistication.

mpetrovich··on Pills: A simple responsive CSS grid for humans
At NextBigSound.com, we've found that a nestable fractional-based grid is generally easier, faster, and more flexible to work with than traditional N-column grids:

    <div class="grid--1/2 grid--2/3@M">
        <div class="grid--1/3"></div>
        <div class="grid--1/3"></div>
        <div class="grid--1/3"></div>
    </div>
    <div class="grid--1/2 grid--1/3@M"></div>
mpetrovich··on The Metamorphosis - What is it like to be an animal?
Nope. http://m.hoax-slayer.com/man-dog-face.shtml
← PreviousPage 3 of 3