Sunday, April 24, 2011

FRP and Rx

















The sample program is following:

var obs1 = Observable.FromEvent<TextChangedEventArgs>(textBox1, "TextChanged").Select(x => ((TextBox)x.Sender).Text);
var obs2 = Observable.FromEvent<TextChangedEventArgs>(textBox2, "TextChanged").Select(x => ((TextBox)x.Sender).Text);

var obs3 = obs1.Zip(obs2, (x, y) => x + y);
obs3.Subscribe(x => {
  textBox3.Text = x;
});

I recognize that (x, y) => x + y implies TextBox3.Text = TextBox1.Text + TextBox2.Text and Zip method implies time merging.

Sunday, April 17, 2011

REST Application in Java

I build the web application in REST architecture and Java.
I want to use both struts2 rest plugin and apache wink but I don't know the manner.
For example, I don't know the description for web.xml.
I want to change the filter by file extension but I got an error.
Hmm...

Sunday, April 10, 2011

REST Architecture

I have some questions for REST architecture.

1. If we implement web application (for Web Browsers) in REST architecture and Java, we use Struts2 and REST plugin as the framework. And if we implement the CSV or XML file download function as web services, we use Apache CXF (or Apache Wink ?) as the framework.
And I want to change data format in the file name extension, for example, if you access http://.../persons/list.xml then the download data format is XML and if you access http://.../persons/list.html then the format is HTML. Can we implement that with using both Struts2 REST plugin and Apache CXF(or Apache Wink)?

2. If I realize 1. I design that the resource component returns the abstract model and the presenter component for each format changes the model to the data in each format.
But it can be possible that changing models to a format requires additional information than the abstract model.

Monday, April 4, 2011

What BTS/ITS do I use ?

I think using BTS/ITS for managing to build tools.
I know Trac and Redmine but I used Trac only.
I hear that Redmine has richer functions than Trac.
Is it good that I use Redmine?
Or do I use the other BTS/ITS?