Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 6,124 | Comments: 45,475

filter by tags archive

Plain Old Code

time to read 2 min | 252 words

When J2EE came around, the notion of a container and managed objects / entities came into the fray, but those had such a high cost associated with them, that the Java community rebelled and now mainly advocates the Plain Old Java Objects. The .NET community has taken the same approach recently, with POCO or PONO being the term used.

This post is driven by my experiences with several of Microsoft's tools that tend to focus on "No Code Required". WebForms' 2.0 had a huge marketing focus on that, and MS CRM is being sold with the premise that you can extend it with just a GUI, so does many others tools from Microsoft (SSIS comes to mind).

I outlined the problems that I see with this model here, so I will not repeat it here, but I want to focus on code vs. GUI right now. I am aware of only a single such tool that provide a really good service, and that is the WinForms designer, and even that fails occasionally.

But what really gets me is the CRM's style of designers, where the customization is locked tight somewhere, where I cannot access it in any meaningful way.

Given the chance, I would define customization with code, probably a DSL, and probably something like this:

entity MyCustomerCustomer:
	CustomerNumber as int
	[Length(255)]
	Name as string
	Email as Email

screen MainView, for: MyCustomerCustomer:
	tab "Customer Properties":
		Display Name
		Display Email
		Display CustomerNumber, readonly

Hm, I seem to getting back to DSL no matter which way I go recently.


Comments

Dave

haml - http://haml.hamptoncatlin.com/

and

swiby - http://www.alef1.org/jean/swiby/

are two good sources for inspiration/ideas/examination

Jay R. Wren

you aren't REALLY writing a DSL for WinForms are you?

The Brail Html DSL (http://hrboyceiii.blogspot.com/2007/06/dsl-support-in-brail-part-i.html) could easily be extended to work with WPF XAML. With the need to support XAML designers such as Expression, a WPF XAML to boo/brail/xaml DSL could be created too.

I agree. I prefer the code. I have even found myself avoiding the WinForms designer and opting to write my own code under certain circumstances. Especially event handlers where the designer will continue to work.

Ayende Rahien

Jay,

That was actually for defining a new entity on the CRM, not for winforms

miles thompson

Just want to add that I agree. At a tech*ed event last year I was struck by how often the mantra 'no code required' was repeated. This is at an event aimed at - you guess it 'coders'.

Given that we're all computer programmers here why are you making such efforts to stop us from doing what we do best.

Microsoft marketing for AJAX.NET -> 'dont need to write a line of Javascript'. (but what if I want to customize it, and Javascript is something I understand and like).

Arpan Shah's response to a bunch of questions about Sharepoint - sure! Yeah you can do that. In fact if you use the auto-magic-list-conrtol [and, implicitially, if I make a few changes to the specificiation] you should be able to do it 'without any code at all'.

Great! Just what I didn't want.

Dru
Dru

Have you looked at the Django model object stuff

http://www.djangoproject.com

-d

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

  1. RavenDB 3.5 whirl wind tour: You want all the data, you can’t handle all the data - 10 hours from now
  2. The design of RavenDB 4.0: Making Lucene reliable - about one day from now
  3. RavenDB 3.5 whirl wind tour: I’ll find who is taking my I/O bandwidth and they SHALL pay - 2 days from now
  4. The design of RavenDB 4.0: Physically segregating collections - 3 days from now
  5. RavenDB 3.5 Whirlwind tour: I need to be free to explore my data - 4 days from now

And 14 more posts are pending...

There are posts all the way to May 30, 2016

RECENT SERIES

  1. RavenDB 3.5 whirl wind tour (14):
    29 Apr 2016 - A large cluster goes into a bar and order N^2 drinks
  2. The design of RavenDB 4.0 (13):
    28 Apr 2016 - The implications of the blittable format
  3. Tasks for the new comer (2):
    15 Apr 2016 - Quartz.NET with RavenDB
  4. Code through the looking glass (5):
    18 Mar 2016 - And a linear search to rule them
  5. Find the bug (8):
    29 Feb 2016 - When you can't rely on your own identity
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats