So it's official now. Even if Jason Zander tries to put a positive spin of it for me it's pretty clear that the dynamic language experiment has ended at MS (at least for now). I would venture to guess that overall lack of interest, lack of tools support and no way to monetize this killed IronPython/Ruby.
There's always Boo i guess.
Grab it and send me your impressions.
Not much time for blogging lately. Sigh. Anyway, from my previous post it should be clear that i am working on a WP7 project. The app i am working on should be up in the marketplace at the end of October when the phones will be released.
Here are a couple of comments related to WP7 development :
- don’t treat it as a toy. If you approach the platform with the “desktop developer” mindset you will fail. Hard.
- think a lot about usability when designing the UI of a mobile app.
- understand the app lifecycle and the various performance tradeoffs.
- it’s Silverlight 3 with phone specific additions. You can use some stuff from Silverlight toolkit but don’t count on too many things working out of the box. Look into panorama & pivot controls. They are very useful in a lot of UI scenarios.
- the “runtime” (compact CLR + Silverlight) is pretty fast. For “regular” stuff you’ll never need to worry about performance.
Here's a clue about my latest development whereabouts
Had some bad experience with a OSS library in the context of extension methods. 2 rules were broken:
- the logic of a very important type in that library was implemented with extension methods.
- the extension methods were declared in DIFFERENT namespaces (!!!).
That, frankly, is just dumb. Extension methods are used for extending types for which you don’t have the code. Even if you break this rule remember to put the extension method in the same namespace of the extended type so that when somebody is importing the namespace of that type it has access to ALL extension methods automatically.
Add “/nosplash” as a command line argument to VS2010. This shaves off a few second from the loading time .
Change “localhost” to “127.0.0.1.” (notice the dot after 1). This should do the trick.
Just tried the latest Haiku release. Great stuff. Even in VirtualBox this stuff is super fast (reminds me when i first tried BeOS 10 years ago). Haiku is a remarkable OSS feat.
Get it from here
var container = new Dictionary<int, List<Tuple<int, string, int, Dictionary<int, string>>>> ();
I'm sure it's very fun to debug the code which is using this data structure.
I enjoy reading TheDailyWTF everyday because that site represents best the real world. And darn, from a developer perspective, we live in a bad bad world
View Presenter BusinessObject (aka VPBO) VPBO (for short) is an attempt to describe a pattern for layer structure and interaction inside of a system. It's like MVP but with a few tweaks. Notice that depending of the system, the entry point can be either the View ( in a regular ASP.NET WebForms app the request is routed to the view) or the Presenter ( in Windows Forms, WPF we call the presenter which instantiates the view).
Here's a diagram of interaction :
1. View . Responsibilities :
- describe the UI (obviously).
- basic control validation.
2. Presenter - the most important piece of the diagram. Responsibilities :
- invoke the business object(s) and get the data required by the view. Remember there is no model so you may need to invoke multiple business objects.
- data caching could be implemented here if it's necessary.
- using the view instance set the data in the view's controls.
- do logical data validation.
- pass to data back to BO to persist it.
3. Business Object. Responsibilities :
- logic goes here.
How is this different from MVP/different stuff ?
- first of all notice that there is no Model. Nor there is a interface that the View must implement. This means less code to write/change and worry about.
- from my point of view, with VPBO i'm trying to describe a way for a nice layered system implemented with the least amount of code.
- some stuff are missing compared with MVP: there isn't a way to test UI.
- should the presenter contain any kind of logic ? It can contain "logic" pertaining to his associated view. No business logic. Also this logic should be written without referencing UI controls so it can be unit tested.
- the presenter can be best described as a orchestrator. Get the BO data, display it, validate it, pass it back to BO.
- if the view is complex you are encouraged to create a master presenter along with multiple smaller presenter which handle specific UI functionality.The view knows only abour the master presenter. This represents a better way to mitigate complexity. Because "rich" UI requires a ton of code, moving that code from view to presenter(s) is a better way to mitigate complexity.
- the interaction between view and presenter can, basically, be "described" with 2 methods : Display and Save. Add more methods depending on your UI requirements. Also note that defining a interface is strictly optional.
Small sample using WPF here
I have decided to move my OSS projects to bitbucket.org to ease up on collaboration. I ended up choosing bitbucket because of Mercurial which is a nice DVCS (although TortoiseHg is not yet as nice as TortoiseSVN).
Official versions are :
- the desktop/server version that everyone knows.
- CoreCLR - the Silverlight version.
- the version from .NET Compact framework (which runs on windows mobile phones, Xbox 360 etc)
- the version implemented in the .NET Micro framework.
The more the merrier, i guess.
You can use Gmail as SMTP server to send emails. When i launched Topi last week i decided to use Gmail instead of the mail server of the hosting company (since Gmail is much more reliable). To configure it you can simply drop this into web.config (replace test with actual account data):
<smtp deliveryMethod="Network" from="email@example.com">
<network host="smtp.googlemail.com" port="587" defaultCredentials="false" userName="firstname.lastname@example.org" password="test"/>
Make sure you use port 587 because it won't work with the other one. Also i decided to use log4net to receive logging data for email so, since log4net Smtp appender doesn't support TLS authentification, i have added this to Microruntime.
My latest project is now live. Topi is a microblogging platform for the romanian market. It was a single man effort (except for some graphic design which was made by my wife) and i'm happy with the result.
So, if you speak romanian and you're interested in a Twitter like service, then please also look at Topi.