One of the things I didn't like in Ruby at all is the support for method overloading. You have no ways to support it in a straight forward way other than to define a single method that takes a variable number of arguments. def foo(*f) f.each { |a| puts a } end foo("Hello", "world") What the above does is that it converts the multiple parameters into a single array and passes it to the method call. I think this is really bad because method overloading is a very basic requirement. However, Ruby seemed to support a... lire la suite
One of the things I didn't like in Ruby at all is the support for method overloading. You have no ways to support it in a straight forward way other than to define a single method that takes a variable number of arguments. def foo(*f) f. each { | a| puts a end
Method calls using the C# ‘base’ keyword get compiled to an IL ‘call’ instruction, rather than the ‘callvirt’ that is normally used. This is the one case in C# where a virtual method can be invoked without virtual dispatch. The CLR allows it to be used generally for non-virtual calls, but it’s unverifiable in other cases (see section 3.
Overview Windows SharePoint Services (WSS 3. and Microsoft Office SharePoint Server (MOSS 2007) have some gotchas with serious implications that every SharePoint application developer needs to be intimately familiar with before deploying into production MOSS 2007 farms. In particular, Microsoft.
Programming Month: Io Mon, 12/20/2004 - 17: Dynamic languages" is a trendy term that tends to be used for programming languages that are flexible and fit well in an "agile" development environment. Behind the trend are some really interesting and poweful languages, of which Io is certainly an important one.
We recently opened up a new ASP. NET CodePlex Project that we will be using to provide previews (with buildable source code) for several upcoming ASP. NET features and releases. Last month we used it to publish the first drop of the ASP. NET MVC source code. This first drop included the source for the ASP.
In working on the Geeklog 2 codebase, much of work forms the basis for stuff I do at work, I finally figured it was time to add handling for CSRF to the codebase in a way that forces it's use without the developer having to explicitly do anything. In my experience security has, sadly, become one of the last things on the mind of PHP developers (kudos to you numerous exceptions out there) so finding a way to help the developers protect their application from CSRF in a way that avoids them from having to explicitly consider and handle it themselves was key.
We are very excited to announce the release of a new developer tool from Microsoft, Source Analysis for C#. This tool is known internally within Microsoft as StyleCop, and has been used for many years now to help teams enforce a common set of best practices for layout, readability, maintainability, and documentation of C# source code.
In Exchange Server 2003 we have a background service named Recipient Update Service (RUS) which update all users to have necessary exchange attributes; for example e-mail address. In Exchange Server 2007 we don't have a service for doing same updates for newly created objects. As a replacement to this functionality in Exchange Server 2007 (E2K7) we have a new component that behaves like a provider rather than a service, maybe we can call this "Recipient Update Provider" .
When using a typed contract, incoming messages on the server are shredded on your behalf to be turned into method calls and parameters. Ordinarily, the particular method call selected for an application messages will have the same parameterized contract as the message. This allows the transformation between messages and parameters to be made with a high degree of fidelity.
The symfony framework has always been bundled with a functional testing framework and it is certainly one of its main strengths. What is a functional test? Functional tests goal is to test the integration of all your application layers: from the routing to the controller, templates, and database calls.
This piece of code is part of a personal bigger project that I am working on and I think there are interesting thing in it and I wanted to share it with you. I am trying to use generics and type inference to imagine new kind of method prototype. With all the stuff around Linq like lambda expressions, simple method calls have become extremely powerful.
I got some interesting comments to my previous post on "beautiful code". Some were pretty strong disagreements. So am I wrong? Did I get carried away? Did my critical faculty go on vacation somewhere nice and sunny? I admit that sometimes I deliberately look at the positive and ignore the negative.
Most of these Ruby on Rails related links are right out of my bookmarks. I checked for 404s and added more recent entries, but this list is far from complete. New blogs, sites, tutorials and tools are released on a daily basis. Just leave a comment or contact me if you want your link(s) or anything related added, or have spotted any broken links.
Most of these Ruby on Rails related links are right out of my bookmarks. I checked for 404s and added more recent entries, but this list is far from complete. New blogs, sites, tutorials and tools are released on a daily basis. Just leave a comment or contact me if you want your link(s) [.
Algo/Méthodes > Des failles sérieuses dans Ruby
I’m still working on the next article in my series looking at PHP on servers, so in the mean time, check out this simple way to emulate Ruby’s nice way of handling separate getter, setter and state query methods in PHP: class Example { private $canCache = false; private $cacheXml = [.
So I’ve begun drinking the kool-aide. Extension methods are frighteningly addictive and don’t even get me started on LINQ to Objects. Now I can take a class which is missing some functionality that would make it just right for a particular problem and add it without having to change the underlying class, subclass, create a wrapper or some other painful process.
A beta of Visual Studio 2008 SP1 was released on Monday and the ADO. NET Entity Framework (EF) is now in the box! You can download and install the Beta here. The EF Extensions library has been updated to work with the beta and includes several public and internal changes. Source code is available at http:
When you use the “GetWebTemplate” web method provided through webs. asmx web service, you’ll notice that the custom list templates you might have created is not available in the collection returned. This is because the OM call that happens behind-the-wires, calls the SPWeb. ListTemplates collection object.
Being able to post data on web forms from your own apps will give you the ability to write tools, services,and provide automation, by interacting with resources already available on the web. This is a very brief example on how this can be accomplished in Ruby, using Net: HTTPand this POST form example.