Hacker Newsnew | comments | show | ask | jobs | submit | chubs's comments login

Could they get the same effect by giving villagers cast iron cookware?

I read this story a few months ago, it had a few more details then.

They tried giving them iron cookware, but they didn't like the weight. They then tried putting a random piece of iron in with their cooking, but not many kept up with doing it. That's where the idea to shape the iron like a lucky fish came from, and it seems to be working.


It's more efficient (cost-wise) to give the smallest quantity of iron that releases it. And it can be used in pots of different sizes

Probably but that'd be more expensive.

1 HTML page (of course), 1 JS file (discounting analytics), 2 CSS, and some assets. As it should be! So many sites overdo it with frameworks. Good to see MS improving these days.

-----


Reading through the code, it's extremely tidy. Very confidence inspiring :)

-----


Wow CSS is unfriendly, you really realise how poor it is once you learn other layout systems (android's XML and iOS auto layout, etc).

Wish there was another standard that could co-exist side by side on the web, something simple enough to be implemented reliably by the browser vendors.

-----


> Wish there was another standard that could co-exist side by side on the web, something simple enough to be implemented reliably by the browser vendors.

That standard exists. It's called flexbox. It was designed to solve exactly this problem (among many others), and does.

That said, as I never tire of mentioning, vertical centering was a part of the design of CSS 2.1. The technique is called "absolute centering". See CSS 2.1 10.6.4 [1]: "If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values."

[1]: http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-hei...

-----


But then what happened to it?

wtf?

do...do they know...how many manhours could've been saved...?

-----


Nothing happened to it. It gets used by front-end developers every single day. I personally can't follow the CSS complaints. It is easier to learn than any other front-end dev language in one's toolkit.

-----


Yeah, everyone did a really bad job of evangelizing absolute centering back in the day, leading to lots of angry Web developers and awful hacks like the inline-block/vertical-align trick. It should have been the first example given for "position: absolute"…

-----


How do Android's XML and iOS's auto layout compare to Microsoft's WPF? I used the latter around 10 years ago and found it pretty nice.

-----


Exactly. I haven't done HTML layout since circa 2000. I tried WPF about 8-9 years ago and well, it was just simple to get layouts right. I'm sure there's some reasonable reason for it, I just don't understand why browsers couldn't do similar, or just rip off WPF.

-----


I haven't used WPF in about that time myself, but Android's XML is a roughly similar experience. No idea about iOS's auto layout.

-----


I've heard that android's XML layout is terrible (from an android developer) and that iOS auto layout is borderline magic (from an iOS developer).

Personally, I don't find css to be that bad at all, but I work in it at least a little everyday so it might just be stockholm syndrome.

-----


as someone who's done both (and web) -- Android's XML layout is easily the best of Android, iOS, and web, while iOS's AutoLayout is a complete mess that basically only works because there are still so few iOS screen sizes. Android coding in general is a pain compared to iOS, but they definitely got the declarative layout system right.

-----


iOS developer here. AutoLayout is definitely not borderline magic, and some people hate it.

It is inefficient. It is awkward to set up in code, so many people write their own syntactic sugar around it. It crashes hard when it isn't 100% sure what to do with its constraints. Working with multi-line text is still a pain, so you often run into clipped text on iOS if you dare to increase the font size. etc.

-----


Anonymous downvoters, AutoLayout may work great for you, but it is definitely controversial among iOS developers (more so than e.g. ARC). Nothing wrong with pointing that out.

-----


Hey thanks for the reply. I don't work on mobile apps at all, so I really wasn't aware. It's definitely interesting to see your point of view,

-----


What if Mark Z framed it as 'free facebook + some educational site access' instead of 'free internet', then he could sidestep all these complaints easily?

"The perfect (NN) is the enemy of the good (free fb+wiki)".

I imagine farmers could improve their lives by sharing information on regional facebook groups. Best of luck with it Mark, although i know you'll likely never read this :)

-----


Love it! Thanks. I'll recommend it to some friends who are into blogging.

-----


That would be incredible.

-----


Is this related to China DDOS'ing the NY Times and Github a few days ago?

-----


Given how long it takes to formulate something like this, it's more likely to be a response to the Sony hack.

-----


Unlikely; these things usually take some time to do (advisors provide feedback, multiple edit sessions likely, reviewed by lawyers, etc). I can't see them pulling this out so quickly...though I guess it's certainly possible just seems unlikely to me.

I wonder if there is any data out there to show how long executive orders typically take from conception to execution.

-----


Probably, and I hate knee-jerk reactions like this.

-----


I don't think it's a knee-jerk reaction. For me it's easier to believe that this EO was signed deliberately to make every important security researcher guilty by default. It's hard to go against a government that can always punish you for what you have already done.

-----


Good example of how to use mantle, too!

-----


Cheers! I've always been a little skeptical of Mantle but it works for now. Might move to Core Data a few versions from now (I like NSFetchedResultsControllers).

-----


Hi, technical question from a long-time iOS developer here, i hope you can put my concerns at ease:

How, when you're running JS on a different thread to the iOS main thread, do you avoid race conditions? A simple example:

* Say a button's event handler pushes a new view controller onto the navigation stack, what's to stop the user from tapping the button twice very quickly before the JS thread gets a chance to service the first tap, eg it may be garbage collecting or busy elsewhere, and once it's free again it runs the handler twice and pushes two view controllers onto the navigation stack?

Looks great by the way, i'll certainly check it out.

-----

More

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: