r/programming • • May 28 '14

"Compression-oriented programming" - Casey Muratori's blog

http://mollyrocket.com/casey/stream_0019.html
125 Upvotes

67 comments sorted by

View all comments

4

u/WhyComplicateThingz May 28 '14

I can't help but wonder how much game devs would benefit from a UI framework. Laying out UI elements in code just seems so 90's. While his transformations surely improved the code--and actually start making it resemble a typical UI framework--markup languages take it to a whole new level of compressed clarity. Like XAML:

<StackPanel>
    <Button Click="do_auto_snap">Auto Snap</Button>
    <Button Click="do_reset_orientation>Reset Orientation</Button>
</StackPanel>

This allows styling and layout to be nicely decoupled from hit-testing and behaviors.

7

u/[deleted] May 28 '14

The author probably loathes that, try view source on the blog page.

7

u/MrDOS May 28 '14

That's... I don't care what generated that, that's hideous.

4

u/[deleted] May 29 '14

I don't even get why there is JavaScript. It's a static blog.

2

u/[deleted] May 29 '14

well, bunch of absolute positioned divs are pretty useless when it comes to laying out webpage.