Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
despite its faults, xaml is a fun word to pronounce

Adbot
ADBOT LOVES YOU

Shaggar
Apr 26, 2006
xaml owns and mvvm owns and if you dont like them you're terrible. also java owns and c# owns but not the dumb bad-habit stuff like duck typing

Toady
Jan 12, 2009

xaml haha

Tiny Bug Child
Sep 11, 2004

Avoid Symmetry, Allow Complexity, Introduce Terror

Toady posted:

xaml haha

homercles
Feb 14, 2010

Shaggar posted:

xaml owns and mvvm owns and if you dont like them you're terrible. also java owns and c# owns but not the dumb bad-habit stuff like duck typing
mvvm totally that's what i meant, mvvm is nice i wish microsoft had thought of it before they hard designed xaml to get in its way

i stopped playing with that a good 3-4 years ago maybe it's improved?

Dr. Honked
Jan 9, 2011

eat it you slaaaaaaag

Otto Skorzeny posted:

i'm Hype for the hobbit (the second trailer was Neato)

i am excite

Shaggar
Apr 26, 2006

homercles posted:

mvvm totally that's what i meant, mvvm is nice i wish microsoft had thought of it before they hard designed xaml to get in its way

i stopped playing with that a good 3-4 years ago maybe it's improved?

xaml is gr8. idk what major changes have been but probably the nicest one was in .net 4 your basic poco properties notify the ui automatically w/out having to implement inotifypropertychanged

Shaggar
Apr 26, 2006
if you could write xaml for the web it would rule so hard

ninjeff
Jan 19, 2004

Shaggar posted:

in .net 4 your basic poco properties notify the ui automatically w/out having to implement inotifypropertychanged

link

Shaggar
Apr 26, 2006
idk where i read that but it worked when i tried it. only for simple properties though.

Shaggar
Apr 26, 2006
also iirc if you do implement inpc (so you can do notifications for complex property changes) then the automatic stuff stops working. Its probably some compiler magic thats implementing the inpc cruft for you on the most basic of pocos

ninjeff
Jan 19, 2004

Shaggar posted:

also iirc if you do implement inpc (so you can do notifications for complex property changes) then the automatic stuff stops working. Its probably some compiler magic thats implementing the inpc cruft for you on the most basic of pocos

cool i'll give that a shot on monday, thanks shaggar :tipshat:

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
xaml is a Good Idea. i dont know what the implementation is like because I dont get to be windows-only.

Toady
Jan 12, 2009

code:
<Window x:Class="ExampleCS.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ExampleCS"
    Loaded="Window1_Loaded"
    >
  <StackPanel>
    <TextBlock HorizontalAlignment="Center" 
          FontWeight="Bold">
      BlogEditor
    </TextBlock>
    <StackPanel Orientation="Horizontal" 
           HorizontalAlignment="Center">
      <ListBox Name="entryListBox" 
          Height="300" 
          SelectionChanged="entryListBox_Changed"/>
      <Grid Width="500" Margin="5">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="50" />
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="*" />
          <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">Title:</TextBlock>
        <TextBox Grid.Row="0" Grid.Column="1" Name="titleText" />
        <TextBlock Grid.Row="1" Grid.Column="0">Url:</TextBlock>
        <TextBox Grid.Row="1" Grid.Column="1" Name="urlText" />
        <TextBlock Grid.Row="2" Grid.Column="0">Date:</TextBlock>
        <TextBox Grid.Row="2" Grid.Column="1" Name="dateText" />
        <TextBlock Grid.Row="3" Grid.Column="0">Body:</TextBlock>
        <TextBox Grid.Row="3" Grid.Column="1" 
            Name="bodyText" 
            TextWrapping="Wrap" />
        <Button Grid.Row="4" 
                  Grid.ColumnSpan="2" 
                  Grid.Column="1"
            Click="updateButton_Click">
          Update
        </Button>
      </Grid>
    </StackPanel>
  </StackPanel>
</Window>
lol

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
???

looks fine to me man. not sure what u lolin at.

Toady
Jan 12, 2009

ok write verbose xml for interfaces in 2012 then

Shaggar
Apr 26, 2006
oh god not structured data. it even has a loving schema??? holy poo poo theres no way i, a "web" developer can gently caress this up. this is unacceptable.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Toady posted:

ok write verbose xml for interfaces in 2012 then

show me the nice terse way you create grids then

Shaggar
Apr 26, 2006
*posts 10 megs of jquery*

Shaggar
Apr 26, 2006
oh and heres the css framework to go with it.

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

rotor posted:

show me the nice terse way you create grids then

in the gui duh

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Hard NOP Life posted:

in the gui duh

yeah, there is (was?) at least two guis that emit xaml

also KDE has a cool thing where you use illustrator to author yo poo poo then export it as svg and BAM you got a gui son

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
basically what i'm saying is that this thing where you split design work from engineering as much as possible is a good idea. i dont care what the intermediate format is, as long as I can just agree on names with some arty dude with a lip ring and then have a pretty gui in a couple weeks.

Shaggar
Apr 26, 2006
yeah vs has a gui xaml editor and then theres expression blend or w/e for designers. but really its xml w/ published schemas so anyone can write their own ui for it; both for generating xamls and for consuming them as part of a compiled product.

Shaggar
Apr 26, 2006

rotor posted:

basically what i'm saying is that this thing where you split design work from engineering as much as possible is a good idea. i dont care what the intermediate format is, as long as I can just agree on names with some arty dude with a lip ring and then have a pretty gui in a couple weeks.

i dont really like to be limited by, like, boxes maaaan... put everything in a stackpanel and just go with the flow

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
imagine a world where every data format is based on sexprs

trex eaterofcadrs
Jun 17, 2005
My lack of understanding is only exceeded by my lack of concern.

Otto Skorzeny posted:

imagine a world where every data format is based on sexprs

♫ ... its easy if you try
imagine there's no C++
no hell below us... ♫

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano
i did some python today after doing clojure for a couple of months and its rly fuckin ugly omg :pwn:

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

rotor posted:

???

looks fine to me man. not sure what u lolin at.

the only lolly thing about it to me is the grid definition, with the textboxes following the definition and not inside it, but i'm pretty sure i dont have to write that poo poo in notepad so i really dont care that much.

and using any format, verbose xml or othewise, is probably going to work just fine for 99% of the time. like, unless your making software for some microcontroller with 7 bytes of ram.

and besides, computer time is cheap, the less work hu-mans have to do, the better.

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Milkie Galore posted:

i did some python today after doing clojure for a couple of months and its rly fuckin ugly omg :pwn:

it's a good match for your FACE then !!!! :twisted:

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
naw im just playin

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome
u know we bros rufo

Toady
Jan 12, 2009

rotor posted:

show me the nice terse way you create grids then

i drag my controls out in interface builder like a sane human being

windows developers manually edit their xaml, and they bitch constantly about the editor and how intellisense fucks up because of the dynamic typing

it's pretty funny

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Toady posted:

windows developers edit their xaml by hand, and they bitch constantly about the editor and how intellisense fucks up because of xaml's dynamic typing

no they dont?

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

rotor posted:

show me the nice terse way you create grids then

let the cia do it and pass out heroin needles

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Otto Skorzeny posted:

imagine a world where every data format is based on sexprs

xml is just bad sexprs

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

Cocoa Crispies posted:

let the cia do it and pass out heroin needles

nicely done.

Toady
Jan 12, 2009

rotor posted:

no they dont?

i know the propaganda is that xaml is supposed to be handled by visual designers, but most developers eventually hand-edit xaml, mostly to fix broken output (e.g. blend's margin positioning and other layout guesses it makes). it is how windows development works, sorry to burst the bubble

Zombywuf
Mar 29, 2008

Toady posted:

code:
<Window x:Class="ExampleCS.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ExampleCS"
    Loaded="Window1_Loaded"
    >
  <StackPanel>
    <TextBlock HorizontalAlignment="Center" 
          FontWeight="Bold">
      BlogEditor
    </TextBlock>
    <StackPanel Orientation="Horizontal" 
           HorizontalAlignment="Center">
      <ListBox Name="entryListBox" 
          Height="300" 
          SelectionChanged="entryListBox_Changed"/>
      <Grid Width="500" Margin="5">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="50" />
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="25" />
          <RowDefinition Height="*" />
          <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">Title:</TextBlock>
        <TextBox Grid.Row="0" Grid.Column="1" Name="titleText" />
        <TextBlock Grid.Row="1" Grid.Column="0">Url:</TextBlock>
        <TextBox Grid.Row="1" Grid.Column="1" Name="urlText" />
        <TextBlock Grid.Row="2" Grid.Column="0">Date:</TextBlock>
        <TextBox Grid.Row="2" Grid.Column="1" Name="dateText" />
        <TextBlock Grid.Row="3" Grid.Column="0">Body:</TextBlock>
        <TextBox Grid.Row="3" Grid.Column="1" 
            Name="bodyText" 
            TextWrapping="Wrap" />
        <Button Grid.Row="4" 
                  Grid.ColumnSpan="2" 
                  Grid.Column="1"
            Click="updateButton_Click">
          Update
        </Button>
      </Grid>
    </StackPanel>
  </StackPanel>
</Window>
lol

Are you you windows guys still specifying the heights of your widgets manually?

Also, dynamic attributes that you have to parse to reference other elements by absolute position?

Was xaml invented in a time machine?

Adbot
ADBOT LOVES YOU

Toady
Jan 12, 2009

no you see, xaml is never seen thanks to gui designers

except when the designer hands it over to the programmer who has to hand-edit anyway

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply