News for hackers. Stuff that matters.
Re:Web Starter Kit by marknutter on Thursday June 19, 2014 @02:20PM (#7917504)
> The web is now hamstrung by the HTML/CSS layout model more than anything else

Really? Because I find it far more intuitive and flexible than working with xibs, for instance.

Re:Web Starter Kit by Tloewald on Thursday June 19, 2014 @03:49PM (#7917954)
HTML/CSS aspires to being as flexible (and intuitive) as xibs. What do you think flexbox (coming real soon now, almost there, you can use it in IE11...) is? It's basically the view model that xibs have supported since 1989 (or whenever it was NeXTStep first shipped).
Re:Web Starter Kit by adamnemecek on Thursday June 19, 2014 @02:53PM (#7917688)
Well, xibs solve a bit more complex issue.
Re:Web Starter Kit by marknutter on Thursday June 19, 2014 @02:59PM (#7917717)
That being?
Re:Web Starter Kit by adamnemecek on Thursday June 19, 2014 @03:10PM (#7917765)
I mean with Xib, you can e.g. specify how the window should behave when you are resizing it since you are specifying layout constraints as opposed to having to hardcode the layout. With CSS, your only recourse is media queries but those are a lot less fine-grained. Look into http://gridstylesheets.org (and more specifically http://gridstylesheets.org/guides/ccss/) which is kinda the love child of CSS and Xib (or the technology that inspired the layout technology).
Re:Web Starter Kit by marknutter on Thursday June 19, 2014 @03:34PM (#7917889)
I still don't understand why the issue is more complex for native mobile apps than it is for web mobile apps? Don't they all have to accommodate for the same screen sizes?
Re:Web Starter Kit by adamnemecek on Thursday June 19, 2014 @03:51PM (#7917962)
It's not that it's more complex, it's that you can do things with native layouts that you'd have to use JS to achieve on mobile.
Re:Web Starter Kit by marknutter on Thursday June 19, 2014 @04:19PM (#7918087)
Good thing browsers run JS, eh?
Re:Web Starter Kit by adamnemecek on Thursday June 19, 2014 @04:40PM (#7918178)
Programming is all about abstraction management. Doing layouts with JS is using the wrong abstractions. CSS was originally conceived for doing document layouts but it's less suitable for web-application layout. We can leave the discussion here, if the article I posted didn't convince you, nothing probably will.
Re:Web Starter Kit by marknutter on Thursday June 19, 2014 @05:32PM (#7918426)
Well, I'm somewhat still arguing in the context of the OP's assertion that "the hackery required to attempt to imitate native mobile apps is horrific". I not only disagree that it's horrific, but actually think it's pretty darn good. I agree with you that it's not perfect, but perfect is the enemy of good.
Re:Web Starter Kit by ggamecrazy on Thursday June 19, 2014 @03:30PM (#7917868)
Are you talking about Auto Layout? You can write the same thing programmatically, in fact it's quite nice, though not as obvious as modifying frames.
Re:Web Starter Kit by adamnemecek on Thursday June 19, 2014 @03:43PM (#7917927)
I was. But you are still hooking into the same layout API as if you'd use IB.