Sunday, January 22, 2006

Sharp and dynamic

While hacking some code generator app in c# I ran into some issues. Being a compiled language, extending some parts of the generator would require recompiling the app, so if I want to use it in my project that mean I'd have to drag the source code all around... I don't like the idea. I strongly think that all dev tools should be quickly extendable. I think that's the main reason more and more devs are turning on to python, ruby and other scripting language.
The problems is, I'm using c#, and I don't want to mix languages like that for the simple purpose of using a code generator... That's when something popped up in my head. I remember something, somewhere deep in the .NET System.CodeDom namespace that could dynamically compile c# code and run it in the actual assembly. Yeah! If I can do that I can run c# code as script!!!
Too bad Oleg Shilo thought about it before I did, here's the result http://www.csscript.net/.
I think this is opening a new world of possibility to the .net framework and .net dev tools. Imagine creating build script in c#, the only thing missing maybe is a couple of helper classes and methods...

Speaking of my code generator. You may ask why? Why another code generator, please! No! Not again! Let me explain...
All generator tools are based on the template to file pattern, or are optimized for this. Open a template, then parse it to a file, then use this file. I want to push this a step further, and I wont hide the fact that I'm porting some ruby's generator concepts. So the patterns should be, send the generator some arguments and the the files are generated and parsed directly in your app directory structured. Simple, clean and mostly FAST. But not very portable since you app directory structure is not mine... That why all the generator logic is one class that inherits Generator and overrides a run methods. In the methods you do what you have to do:


[Generator("test")]
public class TestGenerator : Generator
{
public override void Run(string[] args)
{
AddParameter("test", args[0]);

CreateDirectory("Temp");
ProcessTemplate("Test.vm", @"Temp\SomeTest.txt");
}
}


For now I'm using NVelocity template engine. I think this could get any more simple. You can pass parameters to the template and then create the structure and parse your templates or any other dependencies to the folder you want.
The generator is launch with this : generate test Hello.

And what if I could create a dynamic scripting language with the System.CodeDom stuff! humm..

33 Comments:

Anonymous Anonymous said...

Hi
Join for free. Most of 2 millions members.List of most popular hot girls in your area. Find today sex partner here from list of most hot girls in your area. Adult only.
hotgirls xanax sex sexcam phentermine xanax phentermine sex hotbabe sexforadult sex sexygirlsfree sexygirls sexfree adult hotgirlsonline freeadult sexvideo
viagra valium meridia adipex ativan xanax drugs valium tramadol viagra drug store free hosting viagra levitra cialis
Enjoy

3:27 p.m.  
Anonymous Anonymous said...

Hello .List of most popular hot girls in your area. Adult only.
hotgirls cialis xanax sex sexcam phentermine xanax phentermine sex hotbabe sexforadult sex sexygirlsfree sexygirls sexfree adult hotgirlsonline freeadult
/sexvideo--.blogspot.com>sexvideo

valium meridia ativan xanax drugs valium tramadol viagra drug store viagra levitra cialis
Check prices of these useful pills:
tramadol pharmacy search cialis soma ambien meridia ultram tramadol carisoprodol viagra
Enjoy

12:31 p.m.  
Anonymous Anonymous said...

Hi
xanax phentermine xanax xanax phentermine phentermine phentermine tramadol tramadol tramadol levaquin levaquin levaquin norvasc sex babe casino casino
lroulette blackjack lpoker phentermine
G'night

4:09 a.m.  
Anonymous Anonymous said...

"Lord, I have a problem!"
"What's the problem, Eve?"
"Lord, I know you've created me and have provided this beautiful garden and all of these wonderful animals and that hilarious comedy snake, but I'm just not happy."
"Why is that, Eve?" came the reply from above.
"Lord, I am lonely. And I'm sick to death of apples." "Well, Eve, in that case, I have a solution. I shall create a man for you."
"What's a 'man,' Lord?"
"This man will be a flawed creature, with aggressive tendencies, an enormous ego and an inability to empathize or listen to you properly, he'll basically give you a hard time. He'll be bigger, faster, and more muscular than you. He'll be really good at fighting and kicking a ball about and hunting fleet-footed ruminants, But, he'll be pretty good in the sack."
"I can put up with that," says Eve, with an ironically raised eyebrow.
"Yeah well, he's better than a poke in the eye with a burnt stick. But, there is one condition."
"What's that, Lord?"
"You'll have to let him believe that I made him first."
:D :D :D

_____________________________
shemale beauty sex

2:39 a.m.  
Anonymous Anonymous said...

College students filmed their own film, rather drunk students:-)
Links here:
clip free movie sex shemale tranny
free hairy movie pussy sex

o/.html>

oral porn sex star
amateur free hardcore sex
adult f free gallery group hardcore image sex
free group nasty sex tgp xxx
ebony free picture sex
clip free interracial movie sex
free interracial adult sex story
free interracial sex thumb
free lesbian porn movies
black free porn sex teenage videos.org
actress bollywood free movie porn sexy

-movie-porn-sex-video-video.html>clip clip free movie porn sex video video

clip free movie movie porn preview sex

10:23 p.m.  
Anonymous Anonymous said...

MESSAGE

1:04 a.m.  
Anonymous Anonymous said...

Hello


Bye

1:04 a.m.  
Anonymous Anonymous said...

received some mails at my blog - what to do? there are links in those letters:
bang downloading free gang porn
divx download free porn
amateur babes.co.uk cam sex web wired
absolute free anal sex
anal sex blow job
ass sex sexy sexy silver
adult asian sex
asian sex magazine
amateur interracial mature sex video woman
black mature sex video
anal gay sex story
amateur teen sex video
blonde teen sex bed
anal lesbian sex
hairy sex gallaries

6:37 p.m.  
Anonymous Anonymous said...

Hello guys, maybe i shoul sell my collection? to earn some extra cash. Here are some links from my base:
adult amateur free sex video
amateur free home movie sex
anal
ebony free hardcore sex video

ass fat free mature sexy video woman
free hassel movie no sex
asian chat free sex
amateur free mature sex
free gallery mature sex thumb
big beautiful tits
big fucking natural tits
big black dick free gay hardcore man sex video
black gay men having sex free
clip free gay sex teen
easy free pic sex teen
foot free lesbian links pic sex
free hairy sex video

7:16 p.m.  
Anonymous Anonymous said...

Happy to anounce my birthday movies:-)
black shemale sex video
anime pussy sex
black fucking pic pussy sex
army gallery gay hardcore sex
amateur group sex movie
blonde group sex
agency attached oral sex talk
free hardcore porn
free hardcore porn pictures brianna
adored diary of a porn star
asian cumshot
cumshot asian mpeg 4
april hunter blowjob
azlea anastasia blowjob
adult book cat name pasco pussy store
adult pussy fucking

6:14 p.m.  
Anonymous Anonymous said...

Happy to anounce my before wedding only men party:
amateur free group mature sex
anal back door free from porn sex
anal free gay sex video
ass babe free hot sexy video
adult asian free picture sexual
asian clip free sexy video
asian free porn sex video
free gallery mature sex thumb
bang brothers big tits
big fake tits
archive free gay sex story
black free gay sex thug
download free sex teen video

/free-lesbian-sex.pornonmovies.info/download-free-lesbian-picture-sex.html>download free lesbian picture sex

free amateur lesbian sex video
free hairy sex movie

6:04 p.m.  
Anonymous Anonymous said...

Hi all!. Alone on Valentine's Day? Adult live chat & Movie Pages Try to find partner in your area!
for fun

11:12 p.m.  
Anonymous Anonymous said...

Hi. Alone on Valentine's Day? Live adult chat
for fun

12:47 a.m.  
Anonymous Anonymous said...

Hi. Use these helpful search engines BD search & movie pages and try to find all you need in your area!
for fun

2:56 a.m.  
Anonymous Anonymous said...

Hi. Use this search engine for best result: BD search Find all you need in your area!
for fun

1:52 a.m.  
Anonymous Anonymous said...

Watiti.com
Join me and my circle of friends at http://www.watiti.com, an online social networking community that connects people from all over the world.

Meet new people, share photos, create or attend events, post free classifieds, send free e-cards, listen music, read blogs, upload videos, be part of a club, chat rooms, forum and much more!

See you around! Bring all your friends too!

Watiti.com

5:53 a.m.  
Anonymous Anonymous said...

Hi all!. Use these helpful search engines TFO search & phentermine and try to find all you need in your area!
Enjoy

11:40 a.m.  
Anonymous Anonymous said...

hot man photo

7:54 p.m.  
Anonymous Anonymous said...

Adquity.com

Classifieds for our community. Buy, sell, trade, date, events... post anything. Adquity Classifieds.

Adquity.com

2:54 a.m.  
Anonymous Anonymous said...

Hello. Use this search engine for best result: BDsearch Find all you need in your area!
for fun

6:47 p.m.  
Anonymous Anonymous said...

Watiti.com
Join me and my circle of friends at http://www.watiti.com,
an online social networking community that connects
people from all over the world.

Meet new people, share photos, create or attend
events, post free classifieds, send free e-cards,
listen music, read blogs, upload videos, be part of a
club, chat rooms, forum and much more!

See you around! Bring all your friends too!

Watiti.com

6:49 a.m.  
Anonymous Anonymous said...

Hi all! Check it out BD search & movie pages
for fun

1:23 p.m.  
Anonymous Anonymous said...

Hi

tramadol & live chat & movie pages

G'night

3:08 a.m.  
Anonymous Anonymous said...

michigan job web site

3:44 p.m.  
Anonymous Anonymous said...

http://www.adquity.com

Classifieds for our community. Buy, sell, trade, date, events... post anything. Adquity Classifieds.

http://www.adquity.com

9:19 a.m.  
Anonymous Anonymous said...

http://www.adquity.com

Classifieds for our community. Buy, sell, trade, date, events... post anything. Adquity Classifieds.

http://www.adquity.com

9:44 a.m.  
Anonymous Anonymous said...

Watiti.com
Join me and my circle of friends at http://www.watiti.com, an online social networking community that connects people from all over the world.

Meet new people, share photos, create or attend events, post free classifieds, send free e-cards, listen music, read blogs, upload videos, be part of a club, chat rooms, forum and much more!

See you around! Bring all your friends too!

Watiti.com

11:12 a.m.  
Anonymous Anonymous said...

Watiti.com
Join me and my circle of friends at http://www.watiti.com,
an online social networking community that connects
people from all over the world.

Meet new people, share photos, create or attend
events, post free classifieds, send free e-cards,
listen music, read blogs, upload videos, be part of a
club, chat rooms, forum and much more!

See you around! Bring all your friends too!

Watiti.com

5:42 p.m.  
Anonymous Anonymous said...

Watiti.com
Join me and my circle of friends at http://www.watiti.com,
an online social networking community that connects
people from all over the world.

Meet new people, share photos, create or attend
events, post free classifieds, send free e-cards,
listen music, read blogs, upload videos, be part of a
club, chat rooms, forum and much more!

See you around! Bring all your friends too!

Watiti.com

6:00 p.m.  
Anonymous Anonymous said...

Hi
It's a little sex for health...
ATTENTION!!!
Only for adults!
Persons by whom it was not executed 18 years, the entrance is strictly prohibited!
It costs(stands) spent time, besides free-of-charge registration(To become a member) and numerous frank video(Only for members).
Welcome to Adult Porno & Sex.
Here pages devoted to health are published.
It is the large search robot, which can help to receive this or that information and as to get this or that goods!
Tramadol Xanax Phentermine Skelaxin Viagra and all that is necessary.
Bye

10:43 a.m.  
Anonymous Anonymous said...

I wonder ,.............. were to find boyfriend to my sister?................... Joke:)
My online friends propose this link to use - Fast finder - As for me,........ I think life is now!

3:43 a.m.  
Anonymous Anonymous said...

For Greetings give sweets!
It's a little sex for health...
Welcome to sexy teens | movie pages | picture pages | webcam movie | adult friend finder.
Here pages devoted to health are published.
It is the large search robot, which can help to receive this or that information and as to get this or that goods!
Tramadol | Phentermine | Buy Xanax | Xanax and all that is necessary.
Bye...

10:20 a.m.  
Anonymous Anonymous said...

You won’t believe your eyes, see the World’s best girls HERE! ...... Try to find sexy partner in your area !
- JOIN FREE - After free registration you can have unlimited access to the huge adult source.
ATTANTION ! Adult only !...... http://prettygirls13.tripod.com

10:26 a.m.  

Post a Comment

<< Home