Live data from Hacker News

Grid Style Sheets – Replace CSS with a Constraint-Solver

gridstylesheets.org

91–99 of 99 posts

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#91

As GUI dev who worked with Apple's AutoLayout extensively I can confidently say constraint-based layout is a trap. It looks like more intuitive way to go on simple examples, but complexity spikes quickly as number of controls goes up. It's more complicated, more resilient to changes (harder to maintain), easy to get wrong, hard to understand and debug, bugs generally look uglier (what would be minor misplacement in C…

I saw the headline , didn't even read the article and came here to say this and saw your comment. I've been struggling with auto-layout for about six months now. I finally get it but there's a certain impedance mismatch between how you want your elements to be laid out and what constraints are required to achieve the same result. Humans beings aren't wired to intuitively think like a constraint solver. I'm not an exp…

Yes. Even though I understand the math and the concepts for iOS's constraint based layout, I have found it amazingly difficult to use in practice. In IB, if you set one thing wrong suddenly many of your view's just disappear ... "undo" (or just starting over from scratch) is frequently employed. Debugging is a nightmare ... some cases I never figured out:

http://stackoverflow.com/questions/28550692/auto-layout-of-v...

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#92
post #62
post #40

Earlier quoted context omitted.

> 'cause if you're on my team, i'll slap you Because you're so macho, right? And anything you don't understand shouldn't be used. [EDIT] I find the sample code quite readable -- as long as one understands that it does more than constraints in that example, and that you of course have to read on the symbols to get them, like you'd have to read on Ruby's @, C's * and &, on regular expressions, etc. But this macho talk…

Way to overreact to some shallow taunting. You read a lot of things into this that aren't there.

Look at how he/she tacks some feminist pandering onto the end of the post. It's just one step away from accusing the original commenter of creating a hostile work environment.

This is the exact type of person you don't want on your team: thin-skinned, easily offended and expecting the same level of mollycoddling we pour onto children (another problem in itself).

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#94

As GUI dev who worked with Apple's AutoLayout extensively I can confidently say constraint-based layout is a trap. It looks like more intuitive way to go on simple examples, but complexity spikes quickly as number of controls goes up. It's more complicated, more resilient to changes (harder to maintain), easy to get wrong, hard to understand and debug, bugs generally look uglier (what would be minor misplacement in C…

My wife and I had a big fight several years back because of photoshop. She was a photographer and she wanted to know the constraints of an image in inches and resolution. I told her that those didn't count for screen use and to just use the height and width in pixels. She had not understood until she googled it and watched a youtube video.

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#95
post #79
post #37

Earlier quoted context omitted.

You are a minority. Perhaps not here (HN) because "I disable Javascript" seems to be a pretty trendy thing to say (:P), but in the world at large you are. It's bad enough we have to build websites that work on IE8. We have to worry about screen readers and other accessibility problems, but we also have to worry about a fraction of users that disable a fundamental browser feature literally every site uses? Nah. It'll…

You have to make your site accessible to search engines, so as long as you're not doing something weird like using javascript for styling and layout, just treating users who have disabled javascript as search engines should work just fine.

Google has been working pretty aggressively at learning to crawl JS-framework-powered apps lately. I'd still play it safe and serve up HTML when possible, but JS isn't the SEO black hole it once was.

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#96

Earlier quoted context omitted.

Actually there is oftentimes a static "non js" tracking-image embedded within a -tag. Oftentimes this totally gets forgotten btw. And it is not only GA - it is Adobe Analytics, Heap, every conversion-tracker by Facebook and Adsense and the likes. SO yeah - we (so called) web analysts know that and even have ideas/means to track the number of people that disable js by default or that block every form of (browser based…

How would one block this?

It's typically an image hosted on a 3rd party domain that's on every anti-tracking plugin's filter list. (uBlock, Ghostery, Disconnect, ...)

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#97
post #13

If your layout system's site looks like complete arse on a major browser like IE, your layout system deserves to be ignored.

+1. Unusable on IE. Screenshot for those not on Windows: http://i.imgur.com/oFoAbAS.png

Looked even worse on my tablet http://i.imgur.com/tP5YSTu.png

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#98
post #96

Earlier quoted context omitted.

How would one block this?

It's typically an image hosted on a 3rd party domain that's on every anti-tracking plugin's filter list. (uBlock, Ghostery, Disconnect, ...)

Thanks. I guess anyone that does not enable javascript is running a anti-tracking plugin anyway...

Re: Grid Style Sheets – Replace CSS with a Constraint-Solver

#99
post #89

Earlier quoted context omitted.

Yes but that 0.001% are within the influencial 1% of users. I've literally had people see what webpages look like in my browser and then ask for no script installed. I didn't understand why until a few minutes ago but I do now.

> Yes but that 0.001% are within the influencial 1% of users. No, they just believe so about themselves.

Possibly. I do not claim to have ever driven social media traffic or made a trending hashtag or a viral video or even shared a "top 10 reasons why" article with anyone. However, I do get people asking what devices to buy/what programs to use/how to do stuff quite often.
Post reply on HN