August 31, 2007
Wicket is a GUI framework recently promoted to a top level apache project. I’ve only studied it through it’s apache pages and look at code examples. But I do hope to try it out in a project.
Spring MVC has state issues, WebFlow is xml-programming and JSP messes up the html for our designers. This one of more things Wicket claims to differentiate upon. So, what’s my immediate analysis/feeling of Wicket?
pro:
- pure html/xhtml. Paradise for designers! (The components, buttons, labels etc. are given unique ids)
- handles the state. (No more nasty HttpSession manipulation)
- no back-button issues
- more java, which is what I’m really good at
- less xml
- no jsp, only html and java (and design-stuff, whatever that is)
con:
- more java and code lines. Looks a lot like swing. You’d have to write new lots and lots of times. (Yes, I know, also listed as pro)
- uses session in the background, which might put restrictions on server capacity (I really don’t think this is a big issue at all, we tend to exaggerate this)
I think that about covers my quick analysis. Anyone have any experiences with it or don’t share my opinions, I’d like to know
1 Comment |
Java, gui |
Permalink
Posted by Ole Morten
August 30, 2007
If you’re not yet using agile methodologies and TDD, please please do, it’s really the way to go. To those of you who does, don’t hide behind it. Don’t get methodology blind!
Please stop confusing «do the simplest thing that could possibly work» with doing the fastest thing you can do. For heavens sake, the idea is not to stop using your wits, au contraire! For more, it’s a tool to avoid overdesigning and eliminate «what if I later on need this functionality?»-programming. You and me have wasted too many hours doing that.
My message? Always ask yourself why? you’re doing what you’re doing. Reflect and improve. To me, that’s agile. What’s your opinion?
Leave a Comment » |
agile, frust | Tagged: agile, cargo cult, smidig |
Permalink
Posted by Ole Morten
August 29, 2007
The language is made smart, and I can’t resist also pointing out a new ingenious language feature of C# 3.0 introduced to me at MSDN Live.
var result = new {myText="some string", myInteger=12345, myClass=new MyClass()}
The code snippet will create an instance with these three properties, implicitly declared public as a string, an integer and an object of type MyClass. Of course, Visual Studio 2008 provides auto completion for accessing these properties.
string theText = result.myText
MyClass myClass = result.myClass
It solves neatly the problem of temporary storage of data in a method. You won’t have to declare any more temporary class to store the data. Sweet!
Read this article for a preview of what more to come with C#3.0. By the way, wonder why they had to make the version numbers of .Net and C# so confusing? To use C# 3.0, you need .Net 3.5, not .Net 3.0. Oh well. It ships with Visual Studio 2008)
Leave a Comment » |
.Net |
Permalink
Posted by Ole Morten
August 29, 2007
27.aug I attended MSDN Live in Oslo. Although mainly a java and open source developer, I’ve worked with ASP.NET 2.0. I used Visual Studio 2005 and web parts, so I do have, if not a leg, at least a few toes in the .Net world as well.
There are some very good things coming with .Net 3.5 and C# 3.0. And the Linq is amongst the best. The introduction of SQL-like syntax in the OO-language first made me sick, but really it’s quite ingeniously the more I think about it. My objective as a programmer is to write easily read, maintainable, and testable code. Now I’m ashamed of my first reaction. Ashamed.
Try writing the following code object-oriented!
IEnumerable<MyClass> result =
from myClass in collection1
where property1 > criteria1
orderby property2 descending
select myClass
Probably looks messy if you are unfamiliar with writing with such a syntax. But if you reflect on the alternative, you’d have to use collections, comparators, ifs, loops and temporary containers. This is beautiful!
Linq is also a persistence API, which looks great as well, but that’s beyond what I wanted to emphasize here.
Scott Guthrie has written a lot about Linq to Sql. Read his blog for in deep examples and exploit the possibilities!
1 Comment |
.Net |
Permalink
Posted by Ole Morten
August 29, 2007
This 400p Microsoft 2004 book covers patterns and practices of system integration. The chapters are fairly independent. As long as you know the terms of integration patterns and solution, you may start reading at any chapter. I chose this book as an entry to learn integration, as preparation to a project, integrating for a financial solution. The book covers something amazingly similar, a Global Bank scenario. As a Microsoft book it, obviously, has chosen Biztalk Server in their code examples and deep dives. But hey! it works. The principles are still the same and terms/patterns as Gateway, Message Brokers, Message Bus, Pipes and Filters and Publish/Subscribe, are thoroughly described.
The Integration Topologies chapter of the book, bravely tries to compare the topologies of integration to a logical topologies and further down to physical topologies. This really didn’t work out for me at all.
Over all, the Global Bank scenario provides a very good example for learning integration, combining different patterns to a complete solution.
On a scale from 1 to 6, I must say… very good!
Read more at Microsoft Integration Practices and Patterns
Leave a Comment » |
.Net, integration |
Permalink
Posted by Ole Morten
August 29, 2007
As I currently have a lot of free time on my hands, I’m finally able to start my too-longly-planned blog. I’ll give my best to keep it short and concise, while writing enough to make it worth while reading!
When reading about or trying out a new product, every professional immediately makes up his personal opinion, with pros and cons. This applies to books, articles and work processes/methodologies encountered, as well. That’s exactly what I’ll try to capture in this blog. My highly subjective opinion. What else might I offer? Don’t be alarmed, I consider myself pragmatic and reflective. Please do provide your professional comments! Probably you’ll catch my interest and have me reading and commenting my blog as well!
Leave a Comment » |
personal |
Permalink
Posted by Ole Morten