4 ms·
I find this extremely hard to read. I mean I can see the advantage, but there must be a better way?
by patates 8y ago
I find this extremely hard to read. I mean I can see the advantage, but there must be a better way?
- Const-me 8y agoI agree on readability, CSS is much more compact, and therefore easier to read. I think MS designed XAML to be mostly handled by tools not humans. Didn’t work because the tool (expression blend) is not quite good enough so humans have to deal with the source too. Experience helps for simple cases like this one but not for more complex cases like control templates or animations. I’ve wrote the above example because it shows a possible solution to the stated problem, i.e. how to introduce namespaces for styles without also introducing a full-blown programming language with scopes and variables. The exact syntax can be replaced making it more compact and easier to read. Compared to this mostly-immutable scoped dictionaries, way more things can potentially go wrong with code, regardless on the programming language.