6
proggs
опубликовано 379 дн., 7 ч., 36 мин. назад продвинуто XaocCPSXaocCPS 381 дн., 8 ч., 37 мин. назад
Wednesday, August 19, 2009 5:12:42 PM GMT Monday, August 17, 2009 4:11:38 PM GMT

If you’re like me, you are already fed up with people throwing the term ‘DSL’ around without showing a good example of how it’s done and where they are used – not to mention giving a decent, human-readable description of DSLs that doesn’t allude to extraneous concepts (I’m talking about things like Oslo or MPS, mainly).

Okay, what on Earth is a DSL? A DSL is a way of defining domain-specific (you could say industry-specific, but it can be much narrower) logic using English instead of a programming language. The obvious benefit is that non-technical people can edit the DSL, without worrying about curly braces, semicolons, that sort of thing.

In this article, I’m going to show how to use the F# programming language to make a simple DSL that helps with software estimation. Just so you know, it’s a real-life example, with a more complex version of the DSL being used at our company. All right, let’s hit it!

Just to say upfront, this article doesn’t present book-perfect F# code, the reason being that it doesn’t really matter since F# code is our end-product. I can think of a dozen ways to improve the F# code presented, but, as I said, that’s not the purpose of this exercise.

DSL, F#

Комментариев нет, оставьте первый комментарий.

Чтобы послать комментарий, пожалуйста войдите или зарегистрируйтесь