for type in AllTypesBased of IController("Practicum.Web"): component type.FullName, type: lifestyle Transient
On Tue, Oct 21, 2008 at 2:00 PM, Colin Gemmell <pythonandchips@...> wrote:
Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm having.
I've got a very simple boo script that runs through the MVC app and
another dll that holds services etc.
when the web-site runs i keep getting a "No component for supporting
the service Practicum.Web.Controllers.LoginController" error. I've
looked at the ControllerBuilder and both the login controller and its
dependancies are in there but it is not resolving it at all.
The code im using is as follows:
//global.asax.cs file
public class MvcApplication : System.Web.HttpApplication
{
public IControllerFactory Factory;
public IWindsorContainer Container;
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default",
// Route name
"{controller}/{action}/{id}",
// URL with parameters
new { controller = "Login", action = "Login", id = ""
} // Parameter defaults
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
Container = new WindsorContainer();
BooReader.Read(Container, "Support files/windsor.boo");
Factory = new WindsorControllerFactory(Container);
ControllerBuilder.Current.SetControllerFactory(Factory);
}
}
practicumweb = Assembly.Load("Practicum.Web")
for type in practicumweb.GetTypes():
if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
Component(type.Name, System.Web.Mvc.Controller, type)
practicumcore = Assembly.Load("Practicum.Core")
for type in practicumcore.GetTypes():
if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
and type is not typeof(Practicum.Core.Service.IService):
Component(type.Name, Practicum.Core.Service.IService, type)
//default page load on the Default.aspx.cs file in site root. I havn't
changed this at all
public void Page_Load(object sender, System.EventArgs e)
{
HttpContext.Current.RewritePath(Request.ApplicationPath);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}
//login controller
[HandleError]
public class LoginController : Controller
{
private readonly IService _service;
public LoginController (IService CustomService)
{
_service = CustomService;
}
public ActionResult Login()
{
return View();
}
}
The CustomService currently has nothing in it and derives from IService.
If anyone can help that would be great.
Cheer
Colin G
-- "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." -Martin Fowler et al, Refactoring: Improving the Design of Existing Code
Can any of you Binsor/ASP.Net MVC gurus help with a problem I'm having.
I've got a very simple boo script that runs through the MVC app and
another dll that holds services etc.
when the web-site runs i keep getting a "No component for supporting
the service Practicum.Web.Controllers.LoginController" error. I've
looked at the ControllerBuilder and both the login controller and its
dependancies are in there but it is not resolving it at all.
The code im using is as follows:
//global.asax.cs file
public class MvcApplication : System.Web.HttpApplication
{
public IControllerFactory Factory;
public IWindsorContainer Container;
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default",
// Route name
"{controller}/{action}/{id}",
// URL with parameters
new { controller = "Login", action = "Login", id = ""
} // Parameter defaults
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
Container = new WindsorContainer();
BooReader.Read(Container, "Support files/windsor.boo");
Factory = new WindsorControllerFactory(Container);
ControllerBuilder.Current.SetControllerFactory(Factory);
}
}
/////boo script
import Practicum.Web
import System.Web.Mvc
import Practicum.Core
import System
import System.Reflection
import Castle.Windsor
import Castle.Core
practicumweb = Assembly.Load("Practicum.Web")
for type in practicumweb.GetTypes():
if typeof(System.Web.Mvc.Controller).IsAssignableFrom(type):
Component(type.Name, System.Web.Mvc.Controller, type)
practicumcore = Assembly.Load("Practicum.Core")
for type in practicumcore.GetTypes():
if typeof(Practicum.Core.Service.IService).IsAssignableFrom(type)
and type is not typeof(Practicum.Core.Service.IService):
Component(type.Name, Practicum.Core.Service.IService, type)
//default page load on the Default.aspx.cs file in site root. I havn't
changed this at all
public void Page_Load(object sender, System.EventArgs e)
{
HttpContext.Current.RewritePath(Request.ApplicationPath);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
}
//login controller
[HandleError]
public class LoginController : Controller
{
private readonly IService _service;
public LoginController (IService CustomService)
{
_service = CustomService;
}
public ActionResult Login()
{
return View();
}
}
The CustomService currently has nothing in it and derives from IService.
If anyone can help that would be great.
Cheer
Colin G
> I'm still not completely sure of when you would create a stub and
> when you would create a mock? Or whether it matters if you decide to
> develop one over the other. I read that mocks are behaviour based and
> stubs are state based, is that correct? Doesn't correct state imply
> correct behaviour? and vice versa. Would you need to test for both,
> is it just safer to do so?
I'd recommend XUnit Test Patterns and Jimmy Bogard also has some blog
entries on it.
If you want to hear the pro-mocking view I'd see mockobjects.com or
the document "Mock Roles, Not Objects" which has a lot of value.
Anybody with any sense uses sealions for collections.
I should know, I used to be one in a past life.
But that is another story..............
dagda1@...
To: glasgow_altdotnet_usersgroup@yahoogroups.com From: john.kane84@... Date: Tue, 21 Oct 2008 08:45:36 +0000 Subject: [glasgow_altdotnet_usersgroup] Re: Help with Ruby code
Hey sorry,
Should probably explain more. In ruby the Block construct, which is equivalent to an anonymous delegate or lambda is heavily used.
Any method call can take a block, whether it uses it or not; there are methods for determining whether a block was passed in.
The heavyness of their use is evident from the fact that they typically don't use for loops, instead they would call a block (or lambda) on each item in a list. Because of duck typing most data structures can be trated as lists. Its like there is an implicit IEnumerable interface.
so instead of
foreach (egg in eggs) { do_something_with_an_(egg); }
The rubyist would do either
eggs.each {|egg| do_something_with_an_(egg)}
or if its mulitline
eggs.each do |egg| do_something_with_an(egg) and_something_else(egg) end
Both syntaxes are equivalent, think of the do syntax as a delegate and the {|egg| ...} as a shorter lambda. The method each takes a lambda and yields it on the items of eggs.
I apologise for the odd number of references to eggs.
John
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "John Kane" <john.kane84@...> wrote: > > Hey, > > tasks.map {|t| t.to_s}.join(', ') > > Its just like Linq! > > tasks = GetTasks(); > IEnumerable<string> strings = tasks.Select(t => t.ToString()); > var SingleString = strings.Join(', '); > > --- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan > <dagda1@> wrote: > > > > > > Can any Rubyists in the audience help me witht he following code: > > @nant = ".\\lib\\NAnt\\nant.exe" > > > > def nant(build_file = 'ncontinuity2.build', *tasks) tasks_to_run = > tasks.map {|t| t.to_s}.join(', ') sh "#{@nant} -f:#{build_file} > -t:net-3.5 -D:sign=false -D:testrunner=NUnit > -D:common.testrunner.enabled=false -D:environment=uat > -D:common.testrunner.failonerror=true -D:build.msbuild=true > #{tasks_to_run}"end > > > > If you take the method signature:def nant(build_file = > 'ncontinuity2.build', *tasks)I am guessing giving the build_file > argument a value means it is the default value?Also does *tasks mean > that that argument can take any number of arguments like params in C#? > > > > I would also like to know more detail on the following > line:tasks_to_run = tasks.map {|t| t.to_s}.join(', ') > > > > I can gues it is joining all the values of *taks and placing a comma > in between but what does the |t| mean, is it each value in the foreach? > > > > What does t.to_s mean? > > > > I am OK with sh command which is obviously the shell command. > > Cheers > > Pauldagda1@ > > __________________________________________________________ > > Catch up on all the latest celebrity gossip > > http://clk.atdmt.com/GBL/go/115454061/direct/01/ > > >
Hey sorry,
Should probably explain more. In ruby the Block construct, which is
equivalent to an anonymous delegate or lambda is heavily used.
Any method call can take a block, whether it uses it or not; there are
methods for determining whether a block was passed in.
The heavyness of their use is evident from the fact that they
typically don't use for loops, instead they would call a block (or
lambda) on each item in a list. Because of duck typing most data
structures can be trated as lists. Its like there is an implicit
IEnumerable interface.
so instead of
foreach (egg in eggs)
{
do_something_with_an_(egg);
}
The rubyist would do either
eggs.each {|egg| do_something_with_an_(egg)}
or if its mulitline
eggs.each do |egg|
do_something_with_an(egg)
and_something_else(egg)
end
Both syntaxes are equivalent, think of the do syntax as a delegate and
the {|egg| ...} as a shorter lambda. The method each takes a lambda
and yields it on the items of eggs.
I apologise for the odd number of references to eggs.
John
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "John Kane"
<john.kane84@...> wrote:
>
> Hey,
>
> tasks.map {|t| t.to_s}.join(', ')
>
> Its just like Linq!
>
> tasks = GetTasks();
> IEnumerable<string> strings = tasks.Select(t => t.ToString());
> var SingleString = strings.Join(', ');
>
> --- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
> <dagda1@> wrote:
> >
> >
> > Can any Rubyists in the audience help me witht he following code:
> > @nant = ".\\lib\\NAnt\\nant.exe"
> >
> > def nant(build_file = 'ncontinuity2.build', *tasks) tasks_to_run =
> tasks.map {|t| t.to_s}.join(', ') sh "#{@nant} -f:#{build_file}
> -t:net-3.5 -D:sign=false -D:testrunner=NUnit
> -D:common.testrunner.enabled=false -D:environment=uat
> -D:common.testrunner.failonerror=true -D:build.msbuild=true
> #{tasks_to_run}"end
> >
> > If you take the method signature:def nant(build_file =
> 'ncontinuity2.build', *tasks)I am guessing giving the build_file
> argument a value means it is the default value?Also does *tasks mean
> that that argument can take any number of arguments like params in C#?
> >
> > I would also like to know more detail on the following
> line:tasks_to_run = tasks.map {|t| t.to_s}.join(', ')
> >
> > I can gues it is joining all the values of *taks and placing a comma
> in between but what does the |t| mean, is it each value in the foreach?
> >
> > What does t.to_s mean?
> >
> > I am OK with sh command which is obviously the shell command.
> > Cheers
> > Pauldagda1@
> > _________________________________________________________________
> > Catch up on all the latest celebrity gossip
> > http://clk.atdmt.com/GBL/go/115454061/direct/01/
> >
>
Hey,
tasks.map {|t| t.to_s}.join(', ')
Its just like Linq!
tasks = GetTasks();
IEnumerable<string> strings = tasks.Select(t => t.ToString());
var SingleString = strings.Join(', ');
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
<dagda1@...> wrote:
>
>
> Can any Rubyists in the audience help me witht he following code:
> @nant = ".\\lib\\NAnt\\nant.exe"
>
> def nant(build_file = 'ncontinuity2.build', *tasks) tasks_to_run =
tasks.map {|t| t.to_s}.join(', ') sh "#{@nant} -f:#{build_file}
-t:net-3.5 -D:sign=false -D:testrunner=NUnit
-D:common.testrunner.enabled=false -D:environment=uat
-D:common.testrunner.failonerror=true -D:build.msbuild=true
#{tasks_to_run}"end
>
> If you take the method signature:def nant(build_file =
'ncontinuity2.build', *tasks)I am guessing giving the build_file
argument a value means it is the default value?Also does *tasks mean
that that argument can take any number of arguments like params in C#?
>
> I would also like to know more detail on the following
line:tasks_to_run = tasks.map {|t| t.to_s}.join(', ')
>
> I can gues it is joining all the values of *taks and placing a comma
in between but what does the |t| mean, is it each value in the foreach?
>
> What does t.to_s mean?
>
> I am OK with sh command which is obviously the shell command.
> Cheers
> Pauldagda1@...
> _________________________________________________________________
> Catch up on all the latest celebrity gossip
> http://clk.atdmt.com/GBL/go/115454061/direct/01/
>
Uuuh, no help from me. But you could always post here:
http://stackoverflow.com/tags/ruby ;) You'll be suprised how quickly
your question will get asked.
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
<dagda1@...> wrote:
>
>
> Can any Rubyists in the audience help me witht he following code:
> @nant = ".\\lib\\NAnt\\nant.exe"
>
> def nant(build_file = 'ncontinuity2.build', *tasks) tasks_to_run =
tasks.map {|t| t.to_s}.join(', ') sh "#{@nant} -f:#{build_file}
-t:net-3.5 -D:sign=false -D:testrunner=NUnit
-D:common.testrunner.enabled=false -D:environment=uat
-D:common.testrunner.failonerror=true -D:build.msbuild=true
#{tasks_to_run}"end
>
> If you take the method signature:def nant(build_file =
'ncontinuity2.build', *tasks)I am guessing giving the build_file
argument a value means it is the default value?Also does *tasks mean
that that argument can take any number of arguments like params in C#?
>
> I would also like to know more detail on the following
line:tasks_to_run = tasks.map {|t| t.to_s}.join(', ')
>
> I can gues it is joining all the values of *taks and placing a comma
in between but what does the |t| mean, is it each value in the foreach?
>
> What does t.to_s mean?
>
> I am OK with sh command which is obviously the shell command.
> Cheers
> Pauldagda1@...
> _________________________________________________________________
> Catch up on all the latest celebrity gossip
> http://clk.atdmt.com/GBL/go/115454061/direct/01/
>
I struggled to find the following command to install rake:
gem install rake
Happy dayz!!!
This is my first attempt at Ruby or indeed Rake.
I think it needs a bit of work :-)
dagda1@...
To: glasgow_altdotnet_usersgroup@yahoogroups.com From: chrisvmcdermott@... Date: Sun, 19 Oct 2008 20:36:31 +0000 Subject: [glasgow_altdotnet_usersgroup] Re: Nant to Rake
Yeah nice find Paul.
My team use Rails migrations to manage the database schema so it would be nice to wrap up the whole build and release process in rake. Currently we shell out using the <exec> command in nant to run the rake db:migrate command in our release target.
Chris
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Colin Gemmell" <pythonandchips@...> wrote: > > I like this a lot more than nant. Been writing my first batch of > scripts lately and it aint been a plesant experiance. > > Was thinking about a possible DSL for writing build scripts with but > this looks good and may save the trouble. > > Nice find Paul. > > Colin G > > --- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Dave. The Ninja" > <david@> wrote: > > > > Excellent Paul, I am planning the same. > > > > Death to XML!!! > > > > > > ---------------------------------------------------------- > > > > "My Ju Ju is stronger than your Ju Ju" > > > > On 19 Oct 2008, at 09:08, Paul Cowan <dagda1@> wrote: > > > > > This is going to show me the way out of NAnt. > > > > > > It means you can slowly ease your way out of NAnt and into Ruby. > > > > > > > http://codebetter.com/blogs/david_laribee/archive/2008/10/17/transitioning-from-nant-to-rake.aspx > > > > > > NAnt has serve me very well but I can move away from NAnt's Xml > > > syntax and learn Ruby at the same time. > > > > > > Sounds good to me. > > > > > > dagda1@ > > > > > > > > > For the best free wallpapers from MSN Click here! > > > > > >
Click here for FREE customisable desktop wallpapers. Get them Now!
I've been talking to some American developers I know and they have
never heard of ALT.NET. They have heard of the tools but never knew
they were under the ALT.NET banner.
Their first port of call is the MSDN, or books written by people who
go to MSDN, there is some information there but it's not tagged as ALT.NET.
<craig.nicol@...> wrote:
>
> One of the discussions to come out of the pub this week was where's
the best
> place to get information on alt.net (or potential alt.net)
technologies, and
> I know the answer is always blogs, but is it worth creating a
directory of
> useful blogs on the links page of the group (or indeed on the
> scotalt.netsite). Which blogs and other sites would you put on it?
>
> I've got into the habit of sharing the interesting stuff (mainly,
but not
> always programming) via Google Reader at this e-mail address, and
forwarding
> it to my twitter, and you can see which programming feeds I read at
this
> Google Reader feed if you're interested :
> https://www.google.com/reader/shared/user/01260198319981336196/label/p
rogramming
>
> Anyone else like to share their sources?
>
> C
>
> --
> skype: callto:craignicol
-- "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." -Martin Fowler et al, Refactoring: Improving the Design of Existing Code
I've been talking to some American developers I know and they have
never heard of ALT.NET. They have heard of the tools but never knew
they were under the ALT.NET banner.
Their first port of call is the MSDN, or books written by people who
go to MSDN, there is some information there but it's not tagged as ALT.NET.
<craig.nicol@...> wrote:
>
> One of the discussions to come out of the pub this week was where's
the best
> place to get information on alt.net (or potential alt.net)
technologies, and
> I know the answer is always blogs, but is it worth creating a
directory of
> useful blogs on the links page of the group (or indeed on the
> scotalt.netsite). Which blogs and other sites would you put on it?
>
> I've got into the habit of sharing the interesting stuff (mainly,
but not
> always programming) via Google Reader at this e-mail address, and
forwarding
> it to my twitter, and you can see which programming feeds I read at
this
> Google Reader feed if you're interested :
> https://www.google.com/reader/shared/user/01260198319981336196/label/p
rogramming
>
> Anyone else like to share their sources?
>
> C
>
> --
> skype: callto:craignicol
-- "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." -Martin Fowler et al, Refactoring: Improving the Design of Existing Code
I don't use any mocks anymore, instead I use stubs. In the tests that are concerned with the interaction between the dependency and method/system under test I will try and assert on the return. If this isn't possible, say for a Save/UPdate call, I will then use the AssertWasCalled extension method.
I would use a Stub over a Mock in every given situation. So far anyway. I have been down the road of using Strict Mocks, and it was a very painful experience.
On Mon, Oct 20, 2008 at 8:51 PM, Paul Cowan <dagda1@...> wrote:
I only really have experience of Rhino.Mocks.
One of the problems of mocking is we have so many names for similar things.
Since the advent of Rhino.Mocks 3.5 and indeed the AAA syntax over the record and playback model, I very rarely if ever use mocks.
I would want to use mocks if I want to test that a mocked method is called.
I use Stubs to control the input and output of data into the system under test.
You can confusingly assert that stubs were called.
TDD is based on writing tests before you write your code. The test initially fails and then the code is written to pass the tests.
The code written might have dependencies to resources (external to
the application) and dependencies to other classes that haven't been written yet.
To get around that for testing purposes mocks and stubs are created. Dependency injection is used to 'fill in the gaps' for the test cases
for the missing dependencies of the class thats being tested.
Doing it that way means when the proper 'dependent' classes are developed you can add them in to the application very easily without effecting the test cases.
Stubs are used in place of classes that haven't been developed yet and which access external resources. They are normally used to validate state. IsNameValid, etc...
While Mocks are used to test behaviour of the class to ensure it
calls the correct methods of the 'soon to be developed' class dependencies (of the class being tested).
*phew*
I'm still not completely sure of when you would create a stub and when you would create a mock? Or whether it matters if you decide to
develop one over the other. I read that mocks are behaviour based and stubs are state based, is that correct? Doesn't correct state imply correct behaviour? and vice versa. Would you need to test for both,
is it just safer to do so?
It's all theory at the moment and it's theory pulled from a number of sources. If anyone could tell me if I'm on the right track then I'd appreciate it.
Read amazing stories to your kids on Messenger Try it Now!
-- "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." -Martin Fowler et al, Refactoring: Improving the Design of Existing Code
To: glasgow_altdotnet_usersgroup@yahoogroups.com From: derek.smyth@... Date: Mon, 20 Oct 2008 19:41:53 +0000 Subject: [glasgow_altdotnet_usersgroup] TDD, Mocks, Stubs, IoC, DI, getting it straight.
Hi folks,
May I ask, have I got this right....
TDD is based on writing tests before you write your code. The test initially fails and then the code is written to pass the tests.
The code written might have dependencies to resources (external to the application) and dependencies to other classes that haven't been written yet.
To get around that for testing purposes mocks and stubs are created. Dependency injection is used to 'fill in the gaps' for the test cases for the missing dependencies of the class thats being tested.
Doing it that way means when the proper 'dependent' classes are developed you can add them in to the application very easily without effecting the test cases.
Stubs are used in place of classes that haven't been developed yet and which access external resources. They are normally used to validate state. IsNameValid, etc...
While Mocks are used to test behaviour of the class to ensure it calls the correct methods of the 'soon to be developed' class dependencies (of the class being tested).
*phew*
I'm still not completely sure of when you would create a stub and when you would create a mock? Or whether it matters if you decide to develop one over the other. I read that mocks are behaviour based and stubs are state based, is that correct? Doesn't correct state imply correct behaviour? and vice versa. Would you need to test for both, is it just safer to do so?
It's all theory at the moment and it's theory pulled from a number of sources. If anyone could tell me if I'm on the right track then I'd appreciate it.
Read amazing stories to your kids on Messenger Try it Now!
I've been talking to some American developers I know and they have
never heard of ALT.NET. They have heard of the tools but never knew
they were under the ALT.NET banner.
Their first port of call is the MSDN, or books written by people who
go to MSDN, there is some information there but it's not tagged as ALT.NET.
<craig.nicol@...> wrote:
>
> One of the discussions to come out of the pub this week was where's
the best
> place to get information on alt.net (or potential alt.net)
technologies, and
> I know the answer is always blogs, but is it worth creating a
directory of
> useful blogs on the links page of the group (or indeed on the
> scotalt.netsite). Which blogs and other sites would you put on it?
>
> I've got into the habit of sharing the interesting stuff (mainly,
but not
> always programming) via Google Reader at this e-mail address, and
forwarding
> it to my twitter, and you can see which programming feeds I read at
this
> Google Reader feed if you're interested :
> https://www.google.com/reader/shared/user/01260198319981336196/label/p
rogramming
>
> Anyone else like to share their sources?
>
> C
>
> --
> skype: callto:craignicol
Hi folks,
May I ask, have I got this right....
TDD is based on writing tests before you write your code. The test
initially fails and then the code is written to pass the tests.
The code written might have dependencies to resources (external to
the application) and dependencies to other classes that haven't been
written yet.
To get around that for testing purposes mocks and stubs are created.
Dependency injection is used to 'fill in the gaps' for the test cases
for the missing dependencies of the class thats being tested.
Doing it that way means when the proper 'dependent' classes are
developed you can add them in to the application very easily without
effecting the test cases.
Stubs are used in place of classes that haven't been developed yet
and which access external resources. They are normally used to
validate state. IsNameValid, etc...
While Mocks are used to test behaviour of the class to ensure it
calls the correct methods of the 'soon to be developed' class
dependencies (of the class being tested).
*phew*
I'm still not completely sure of when you would create a stub and
when you would create a mock? Or whether it matters if you decide to
develop one over the other. I read that mocks are behaviour based and
stubs are state based, is that correct? Doesn't correct state imply
correct behaviour? and vice versa. Would you need to test for both,
is it just safer to do so?
It's all theory at the moment and it's theory pulled from a number of
sources. If anyone could tell me if I'm on the right track then I'd
appreciate it.
That would be good!
I've been talking to some American developers I know and they have
never heard of ALT.NET. They have heard of the tools but never knew
they were under the ALT.NET banner.
Their first port of call is the MSDN, or books written by people who
go to MSDN, there is some information there but it's not tagged as
ALT.NET.
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Craig Nicol"
<craig.nicol@...> wrote:
>
> One of the discussions to come out of the pub this week was where's
the best
> place to get information on alt.net (or potential alt.net)
technologies, and
> I know the answer is always blogs, but is it worth creating a
directory of
> useful blogs on the links page of the group (or indeed on the
> scotalt.netsite). Which blogs and other sites would you put on it?
>
> I've got into the habit of sharing the interesting stuff (mainly,
but not
> always programming) via Google Reader at this e-mail address, and
forwarding
> it to my twitter, and you can see which programming feeds I read at
this
> Google Reader feed if you're interested :
>
https://www.google.com/reader/shared/user/01260198319981336196/label/p
rogramming
>
> Anyone else like to share their sources?
>
> C
>
> --
> skype: callto:craignicol
> sip:craignicol@...<sip%3Acraignicol@...>
> http://twitter.com/craignicolhttp://craignicol.wordpress.com
>
Hi, was doing some Python development over the weekend and I know
someone posted a question about a good IDE to develop in. Not sure if
it was recommended but I used Wing Python IDE Personnal and it's very
good (not free but cheap as chips).
http://www.wingware.com/products
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Craig Nicol"
<craig.nicol@...> wrote:
>
> If you're interested in testing in Python, you could do worse than
follow
> this blog :
>
http://www.voidspace.org.uk/python/weblog/arch_d7_2008_07_26.shtml#e10
00which
> has the great quote:
> *As far as I can tell, dependency injection just screws with your
interface.
>
> (Which is of course true unless you start using interceptors)
> *
> The author is involved in one of the first commercial apps for
IronPython (a
> python-based spreadsheet), so he knows what he's talking about.
>
> C
>
> On Wed, Oct 15, 2008 at 22:51, dsmyth2001 <derek.smyth@...>wrote:
>
> > Paul there is a book on manning publication on IronPython that
has a
> > chapter covering unit testing in Python.
> >
> > Here is a snippet.
> >
> > "Working with mock objects is one place where we see the
advantage of
> > using a dynamically typed language. In a statically typed
language,
> > the compiler won't let us run any code unless the types match
those
> > declared in the production code. This means that the objects we
use
> > in tests must be real objects, or objects that inherit from the
> > expected type. In a dynamically typed language we can take
advantage
> > of duck typing."
> >
> >
> > Just found a class library that allows duck typing in C# if
anyone is
> > interested.
> > http://www.deftflux.net/blog/page/Duck-Typing-Project.aspx
> >
> >
> > On a side note I'm going to use the phrase "duck typing" all day
> > tomorrow at every possible opportunity.
> >
> >
> >
> >
> > --- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
> > <dagda1@> wrote:
> > >
> > >
> > > I like the code katat idea, especially as nobody (apart from
> > yourself) has much python experience.
> > >
> > > I personally would like to see what TDD would be like the
> > perspective of a dynamic language.
> > >
> > > I think it would make mocking sooo easy by just adding methods
to
> > the object.
> > >
> > > >> Just to end my barrage of this mailing listDon't be daft
craig,
> > not enough people barrage this mailing list and in fact it is very
> > quiet on the whole.I would like to hear from some people who are
> > curious about ALT.NET without asking much about it.
> > >
> > > CheersPauldagda1@
> > >
> > >
> > >
> > > To: glasgow_altdotnet_usersgroup@: craig.nicol@: Tue, 14 Oct
> > 2008 14:36:30 +0100Subject: [glasgow_altdotnet_usersgroup]
Python /
> > IronPython questions anyone?
> > >
> > >
> > >
> > >
> > >
> > > Hi all,Just to end my barrage of this mailing list, I was just
> > wondering if there were any topics in particular people were
> > interested in looking at for the Python session in a couple of
weeks.
> > If there's anything specific, I'll see if I can find/create
examples
> > to work on that highlight those issues, otherwise it'll just be a
> > matter of going through a few Code Kata to show the pythonesque
> > solutions.Cheers,C-- skype: callto:craignicol
> > sip:craignicol@ http://twitter.com/craignicol
> > http://craignicol.wordpress.com
> > >
> > >
> > >
> > >
> > >
> > >
> > >
_________________________________________________________________
> > > Make a mini you and download it into Windows Live Messenger
> > > http://clk.atdmt.com/UKM/go/111354029/direct/01/
> > >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
>
> --
> skype: callto:craignicol
> sip:craignicol@...<sip%3Acraignicol@...>
> http://twitter.com/craignicolhttp://craignicol.wordpress.com
>
I suppose if you jog or perhaps run you could make Haymarket to
The Rutland in 5 minutes. But I suspect it will take the rest of us a more
leisurely (and less sweaty) 10 to 15 minutes.
From:
glasgow_altdotnet_usersgroup@yahoogroups.com
[mailto:glasgow_altdotnet_usersgroup@yahoogroups.com] On Behalf Of Chris
Canal Sent: 20 October 2008 12:46 To: glasgow_altdotnet_usersgroup@yahoogroups.com Subject: [glasgow_altdotnet_usersgroup] ANN: ALT.NET Edinburgh Beers
Night - 7:30 3rd Nov.
I'm pleased to announce that the Edinburgh
ALT.NET Beers Night will
take place at 7:30 on the 3rd of November.
The location will be the Rutland, which I'm told is 5 minutes away
from Haymarket, so it should be easy for anyone travelling through to
get too. You can find more information about getting to the Rutland
here: http://www.edinburghpubguide.co.uk/PubDetails/Rutland_86.html
As with the Glasgow nights, this is an open discussion and is open to
everyone and anyone to come along and participate.
So clear your diary, drag the developer next to you and I look forward
to seeing you there.
PS. Colin, can you post this of Scottish Developers?
> So clear your diary, drag the developer next to you and I look
forward
> to seeing you there.
Definitely the more the merrier, should be an interesting discussion.
I'm pleased to announce that the Edinburgh ALT.NET Beers Night will
take place at 7:30 on the 3rd of November.
The location will be the Rutland, which I'm told is 5 minutes away
from Haymarket, so it should be easy for anyone travelling through to
get too. You can find more information about getting to the Rutland
here: http://www.edinburghpubguide.co.uk/PubDetails/Rutland_86.html
As with the Glasgow nights, this is an open discussion and is open to
everyone and anyone to come along and participate.
So clear your diary, drag the developer next to you and I look forward
to seeing you there.
PS. Colin, can you post this of Scottish Developers?
Yeah nice find Paul.
My team use Rails migrations to manage the database schema so it would
be nice to wrap up the whole build and release process in rake.
Currently we shell out using the <exec> command in nant to run the
rake db:migrate command in our release target.
Chris
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Colin Gemmell"
<pythonandchips@...> wrote:
>
> I like this a lot more than nant. Been writing my first batch of
> scripts lately and it aint been a plesant experiance.
>
> Was thinking about a possible DSL for writing build scripts with but
> this looks good and may save the trouble.
>
> Nice find Paul.
>
> Colin G
>
> --- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Dave. The Ninja"
> <david@> wrote:
> >
> > Excellent Paul, I am planning the same.
> >
> > Death to XML!!!
> >
> >
> > ------------------------------------------------------------
> >
> > "My Ju Ju is stronger than your Ju Ju"
> >
> > On 19 Oct 2008, at 09:08, Paul Cowan <dagda1@> wrote:
> >
> > > This is going to show me the way out of NAnt.
> > >
> > > It means you can slowly ease your way out of NAnt and into Ruby.
> > >
> > >
>
http://codebetter.com/blogs/david_laribee/archive/2008/10/17/transitioning-from-\
nant-to-rake.aspx
> > >
> > > NAnt has serve me very well but I can move away from NAnt's Xml
> > > syntax and learn Ruby at the same time.
> > >
> > > Sounds good to me.
> > >
> > > dagda1@
> > >
> > >
> > > For the best free wallpapers from MSN Click here!
> > >
> >
>
I like this a lot more than nant. Been writing my first batch of
scripts lately and it aint been a plesant experiance.
Was thinking about a possible DSL for writing build scripts with but
this looks good and may save the trouble.
Nice find Paul.
Colin G
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Dave. The Ninja"
<david@...> wrote:
>
> Excellent Paul, I am planning the same.
>
> Death to XML!!!
>
>
> ------------------------------------------------------------
>
> "My Ju Ju is stronger than your Ju Ju"
>
> On 19 Oct 2008, at 09:08, Paul Cowan <dagda1@...> wrote:
>
> > This is going to show me the way out of NAnt.
> >
> > It means you can slowly ease your way out of NAnt and into Ruby.
> >
> >
http://codebetter.com/blogs/david_laribee/archive/2008/10/17/transitioning-from-\
nant-to-rake.aspx
> >
> > NAnt has serve me very well but I can move away from NAnt's Xml
> > syntax and learn Ruby at the same time.
> >
> > Sounds good to me.
> >
> > dagda1@...
> >
> >
> > For the best free wallpapers from MSN Click here!
> >
>
i'm of the opinion that this group has ran its course.
its time to move on to bigger and better. its served the purpose of getting
some liked minded people together. although if your mind is like mine god help
u.
the king is dead, long live the king
-----Original Message-----
From: Craig Nicol <craig.nicol@...>
Sent: 10/17/2008 12:18:15 PM
To: glasgow_altdotnet_usersgroup@yahoogroups.com
<glasgow_altdotnet_usersgroup@yahoogroups.com>
Subject: [glasgow_altdotnet_usersgroup] alt.net & programming blogs
One of the discussions to come out of the pub this week was where's the best
place to get information on alt.net (or potential alt.net) technologies, and
I know the answer is always blogs, but is it worth creating a directory of
useful blogs on the links page of the group (or indeed on the
scotalt.netsite). Which blogs and other sites would you put on it?
I've got into the habit of sharing the interesting stuff (mainly, but not
always programming) via Google Reader at this e-mail address, and forwarding
it to my twitter, and you can see which programming feeds I read at this
Google Reader feed if you're interested :
https://www.google.com/reader/shared/user/01260198319981336196/label/programming
Anyone else like to share their sources?
C
--
skype: callto:craignicol
sip:craignicol@...<sip%3Acraignicol@...>
http://twitter.com/craignicolhttp://craignicol.wordpress.com
One of the discussions to come out of the pub this week was where's the best place to get information on alt.net (or potential alt.net) technologies, and I know the answer is always blogs, but is it worth creating a directory of useful blogs on the links page of the group (or indeed on the scotalt.net site). Which blogs and other sites would you put on it?
I've got into the habit of sharing the interesting stuff (mainly, but not always programming) via Google Reader at this e-mail address, and forwarding it to my twitter, and you can see which programming feeds I read at this Google Reader feed if you're interested : https://www.google.com/reader/shared/user/01260198319981336196/label/programming
One of the discussions to come out of the pub this week was where's the best place to get information on alt.net (or potential alt.net) technologies, and I know the answer is always blogs, but is it worth creating a directory of useful blogs on the links page of the group (or indeed on the scotalt.net site). Which blogs and other sites would you put on it?
I've got into the habit of sharing the interesting stuff (mainly, but not always programming) via Google Reader at this e-mail address, and forwarding it to my twitter, and you can see which programming feeds I read at this Google Reader feed if you're interested : https://www.google.com/reader/shared/user/01260198319981336196/label/programming
all sounds very exciting.
keep up the good work!
-----Original Message-----
From: Chris Canal <dhtmlgod@...>
Sent: 10/17/2008 9:11:50 AM
To: glasgow_altdotnet_usersgroup@yahoogroups.com
<glasgow_altdotnet_usersgroup@yahoogroups.com>
Subject: [glasgow_altdotnet_usersgroup] Re: MVC last night
I wish I had gone along :( Damn girlfriends, lol.
40+ people! That's crazy! I'm nailing out the details of organising
an ALT.NET meeting in Edinburgh on 3rd November. As soon as
everything is worked out I'll post the full details, hopefully there
will be a good turn out. Will also fire you the details Colin.
Thanks
Chris
PS. Colin, I don't mind doing other talks on: MVC, IoC/AOP (with
Castle), DSL, TDD, etc. I would actually quite like to do one on
migrating a WebForms application to ASP.NET MVC.
--- In glasgow_altdotnet_usersgroup@yahoogroups.com, "Colin Angus
Mackay" <colin@...> wrote:
>
> Hi Paul,
>
> I've processed the feedback from last night's event and one thing
> shocked me. A lot of Edinburgh folk in the audience are not prepared
> to travel!?! (I'll leave the deduction of the reasons for this as an
> exercise for the reader).
>
> I'm working on an NHibernate thing with Chris and VBUG at the moment,
> so hopefully we should have something to announce shortly.
>
> dnrTV (http://www.dnrtv.com/default.aspx?showNum=126) have an episode
> this week on rolling your own IoC container which I've not seen yet.
> I think this is an excellent idea because it will help demystify the
> concept which I think may be a barrier to many people.
>
> We have a TDD(ish) talk coming up in Glasgow next month, so spread
> the word: http://www.eventbrite.com/event/176073641/altnet
>
> Looking forward to all the exciting developments afoot.
>
> Regards,
> Colin.
>
> --- In glasgow_altdotnet_usersgroup@yahoogroups.com, Paul Cowan
> <dagda1@> wrote:
> >
> >
> > I write this waiting in the airport awaiting travel to the Germanic
> lands.
> >
> > John McDowall if you are reading this, then you should be working :-
> ).
> >
> > I was at the MVC talk in Edinburgh last night and I was shocked at
> the attendance.
> >
> > About 40+ people were there which shows a significant amount of
> people out there are at the very least interested at an alternative
> view of things.
> >
> > Maybe MVC is the gateway to getting our devs away from the drag
> and drop crap.
> >
> > We need to do more to start pumping the message.
> >
> > As MVC is microsoft endorsed and with JQuery being already released
> with MVC beta we can start to illustrate that there are better
> cleaner and more maintainable ways of writing code.
> >
> > We just need to slip in:
> >
> > TDD
> > Nhibernate (without doubt the best ORM)
> > IOC
> >
> > Then we can say the job is done.
> >
> > Mr. Ninja has some interesting plans a foot.
> >
> > Anybody interested should attend waxy's on Thursday night at 7 pm.
> >
> > We might have to kull this group and rebirth it something more
> Scottish and appealing to more.
> >
> > Although as an Irish man that last sentence does not sound right on
> many levels.
> >
> > I'm not sure if we can rename the group, if not we will start again
> with less of "the weedge" about it.
> >
> > Thoughts?dagda1@
> > _________________________________________________________________
> > X Factor: latest video, features and more. Click here!
> > http://clk.atdmt.com/GBL/go/115454063/direct/01/
> >
>