Refreshing Artem's VS templates?

71 views
Skip to first unread message

Jeremy D. Miller

unread,
May 16, 2013, 9:00:02 AM5/16/13
to fubumv...@googlegroups.com
So I'm coming around to Artem's point of view on the VS template vs. "fubu new" even though I strongly lean toward "fubu new" for my own usage.

Artem,

Do you think it would take much time to refresh the templates that you and Jaime did for the post 1.0 models and default conventions? What would we even do?

Thinking we'd almost do something exactly like Nancy's: http://www.hanselman.com/blog/OneASPNETNancyTemplatesForVisualStudio.aspx, but possibly add another option for a barebones "ajax services only" project.




Jaime Jhon

unread,
May 16, 2013, 2:27:43 PM5/16/13
to fubumv...@googlegroups.com
Hello guys,
Lately I'm off the Fubu loop, kinda missing it, but you know how work is.

The original template repo can be found here: https://github.com/emiaj/FubuMvcSparkProjectTemplate

If you are willing to wait for my lazyness I could update it to something alike to the Nancy templates in the upcoming days.
Otherwise, if you are in a hurry, I've no problems on giving commit rights or transferring ownership  to somebody else.

Kind regards,
Jaime.







--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fubumvc-deve...@googlegroups.com.
To post to this group, send email to fubumv...@googlegroups.com.
Visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





--
Jaime Febres Velez

Artem Smirnov

unread,
May 17, 2013, 2:59:47 PM5/17/13
to fubumv...@googlegroups.com
I volunteer to 1) update the existing template's code so that it works with the latest stable Nugets; 2) Convert this and any other templates into vsix and put them on the
Visual Studio Gallery. Bonus: document the conversion process in a "For Dummies" style.

To be honest, I don't know how to make a self-hosting template, so this is on someone else. 

Jeremy D. Miller

unread,
May 17, 2013, 3:03:24 PM5/17/13
to fubumv...@googlegroups.com
Artem,

I bet we could easily get some help from the MS guys if we needed it.  The NancyFx guys offered to give us some tips as well.

Thank you Artem,

Jeremy

Artem Smirnov

unread,
May 21, 2013, 1:23:09 PM5/21/13
to fubumv...@googlegroups.com
What's the current version of:
			Actions.IncludeTypes(x => x.Name.EndsWith("Handler"));
			HtmlConvention<AppHtmlConventions>();
?

Jaime Jhon

unread,
May 21, 2013, 1:24:32 PM5/21/13
to fubumv...@googlegroups.com
I think HtmlConventions are regular registries, so, Import<AppHtmlConvention>() would do it.

Jeremy D. Miller

unread,
May 21, 2013, 1:31:14 PM5/21/13
to fubumv...@googlegroups.com
Can we not do that at all?  The default, OOTB is just "look in the assembly containing this FubuRegistry for classes suffixed "Endpoint" or "Endpoints".

Actions.Include(x => {

}); // or something very similar to customize the action handling?

I think I'd like to keep the template to the OOTB conventions as much as possible, but I'm happy to be wrong if the group feels differently.

The handler conventions are just a drop in bottle now.


If you have a separate HtmlConventionRegistry, it's just:


Import<AppHtmlConventions>().

Artem Smirnov

unread,
May 21, 2013, 1:43:47 PM5/21/13
to fubumv...@googlegroups.com
Ok, I'll change them to endpoints then.

One problem that I foresee with implicit conventions is that it's hard to figure out how to change them. Like, everybody knows that in MS MVC a controller class should end with "Controller", but nobody knows how to change it.

How about I include a couple of default conventions, but comment them out? This is supposed to be a template for newcomers after all, so a little bit of guidance won't hurt..

Jeremy D. Miller

unread,
May 21, 2013, 1:48:05 PM5/21/13
to fubumv...@googlegroups.com
I like that. My only concern is overwhelming a newbie user with the sheer number of switches and levers that you could use to customize fubumvc. I know that hurt us in the early days before there were enough default conventions to really go.
- Jeremy

Artem Smirnov

unread,
May 21, 2013, 1:51:55 PM5/21/13
to fubumv...@googlegroups.com
Nothing like that. One or two samples for Actions and Routes just to get them started. They'll figure the rest using your friend Intellisense.

Artem Smirnov

unread,
May 31, 2013, 7:34:19 AM5/31/13
to fubumv...@googlegroups.com
Upgraded the templates, changed Handlers to Endpoints, and removed some obsolete registration stuff. If anybody could take a look at it and approve, I'll upload the new template to the Gallery.

Jeremy D. Miller

unread,
May 31, 2013, 8:04:22 AM5/31/13
to fubumv...@googlegroups.com
Do you have to embed the nugets directly into the template?  That's my first reaction.
 
Jeremy D. Miller
The Shade Tree Developer
jeremy...@yahoo.com



From: Artem Smirnov <uluho...@gmail.com>
To: fubumv...@googlegroups.com
Sent: Fri, May 31, 2013 6:34:23 AM
Subject: Re: [fubumvc] Refreshing Artem's VS templates?

Upgraded the templates, changed Handlers to Endpoints, and removed some obsolete registration stuff. If anybody could take a look at it and approve, I'll upload the new template to the Gallery.


On Tuesday, May 21, 2013 8:51:55 PM UTC+3, Artem Smirnov wrote:
Nothing like that. One or two samples for Actions and Routes just to get them started. They'll figure the rest using your friend Intellisense.

On Tuesday, May 21, 2013 8:48:05 PM UTC+3, Jeremy Miller wrote:
I like that. My only concern is overwhelming a newbie user with the sheer number of switches and levers that you could use to customize fubumvc. I know that hurt us in the early days before there were enough default conventions to really go.
- Jeremy


On May 21, 2013, at 12:43 PM, Artem Smirnov <uluho...@gmail.com> wrote:

Ok, I'll change them to endpoints then.

One problem that I foresee with implicit conventions is that it's hard to figure out how to change them. Like, everybody knows that in MS MVC a controller class should end with "Controller", but nobody knows how to change it.

How about I include a couple of default conventions, but comment them out? This is supposed to be a template for newcomers after all, so a little bit of guidance won't hurt..

On Tuesday, May 21, 2013 8:31:14 PM UTC+3, Jeremy Miller wrote:
Can we not do that at all?  The default, OOTB is just "look in the assembly containing this FubuRegistry for classes suffixed "Endpoint" or "Endpoints".

Actions.Include(x => {

}); // or something very similar to customize the action handling?

I think I'd like to keep the template to the OOTB conventions as much as possible, but I'm happy to be wrong if the group feels differently.

The handler conventions are just a drop in bottle now.


If you have a separate HtmlConventionRegistry, it's just:


Import<AppHtmlConventions>().

On May 21, 2013, at 12:23 PM, Artem Smirnov <uluho...@gmail.com> wrote:

What's the current version of:
			Actions.IncludeTypes(x => x.Na me.EndsWith("Handler"));
			HtmlConvention<AppHtmlConventi ons>();
?

On Friday, May 17, 2013 10:03:24 PM UTC+3, Jeremy Miller wrote:
Artem,

I bet we could easily get some help from the MS guys if we needed it.  The NancyFx guys offered to give us some tips as well.

Thank you Artem,

Jeremy
On May 17, 2013, at 1:59 PM, Artem Smirnov <uluho...@gmail.com> wrote:

I volunteer to 1) update the existing template's code so that it works with the latest stable Nugets; 2) Convert this and any other templates into vsix and put them on the
Visual Studio Gallery. Bonus: document the conversion process in a "For Dummies" style.

To be honest, I don't know how to make a self-hosting template, so this is on someone else. 

On Thursday, May 16, 2013 9:27:43 PM UTC+3, Jaime Febres wrote:
Hello guys,
Lately I'm off the Fubu loop, kinda missing it, but you know how work is.

The original template repo can be found here: https://github.com/ emiaj/ FubuMvcSparkProjectTemplate

If you are willing to wait for my lazyness I could update it to something alike to the Nancy templates in the upcoming days.
Otherwise, if you are in a hurry, I've no problems on giving commit rights or transferring ownership  to somebody else.

Kind regards,
Jaime.

On Thu, May 16, 2013 at 8:00 AM, Jeremy D. Miller <jeremy...@yahoo.com> wrote:
So I'm coming around to Artem's point of view on the VS template vs. "fubu new" even though I strongly lean toward "fubu new" for my own usage.

Artem,

Do you think it would take much time to refresh the templates that you and Jaime did for the post 1.0 models and default conventions?  What would we even do?

Thinking we'd almost do something exactly like Nancy's:  http://www.hanselman.com/ blog/ OneASPNETNancyTemplatesForVisu alStudio.aspx, but possibly add another option for a barebones "ajax services only" project.



--
Jaime Febres Velez

Artem Smirnov

unread,
May 31, 2013, 10:01:17 AM5/31/13
to fubumv...@googlegroups.com
Do you mean the *.nupkg files? No, you don't, if you create a vsix. Especially if you want it to contain several templates. Then they'll have to exist on the vsix level. 

What you probably want to know is whether we can have the template get the latest NuGets, rather than hardcode the version numbers. The answer is no.

Artem Smirnov

unread,
Jun 16, 2013, 4:24:31 PM6/16/13
to fubumv...@googlegroups.com
Just uploaded the new template, sorry for the delay.

I also updated the rake task with creating a vsix, see https://github.com/uluhonolulu/FubuMvcSparkProjectTemplate/blob/master/rakefile.rb#L44 (that was my first rake task btw). Later, if/when somebody creates another template, we could package them all into the same vsix.

Jeremy Miller

unread,
Jun 20, 2013, 12:32:03 PM6/20/13
to fubumv...@googlegroups.com
Artem,

Thank you for doing this.  I'm still working through "fubu new" tomorrow and this weekend.  At the same time I''d like to get into your templates and see what we can do to get this up to the VS library.
Reply all
Reply to author
Forward
0 new messages