Archive for November, 2010

According to Richard Stallman

I have reasons for not translating this article into English, so please try to understand in Spanish.

http://wp.me/pS9EV-1T

Advertisements

Leave a comment »

Free Programming Logo

To design a logo is very useful to use Gimp, since it has sufficient features as to create an appropriate graph. In addition, it is free software.

Free Programming Logo

When I drew this, purported to represent the idea of adding contributions, simply writing code, so that the support structure must be free. I think the perspective view better reflects this idea.

Perspective

Licencia de Creative Commons
Free Programming Logo by Mark Roberts is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at programacionabierta.files.wordpress.com.

Leave a comment »

My first Groovy program

To break the ice with a new programming language is always good to write code that displays a message on the screen.

 def x, y, date, message
 message = "Test message: "; x = 3; y = 5;
 date = new Date()
 println message + "Testing a Groovy class"
 println "The sum of ${x} + ${y} is ${x + y}"
 println "The date is " + date

This shows the following output on the console:

Test message: Testing a Groovy class
The sum of 3 + 5 is 8
The date is Mon Nov 29 21:21:54 CET 2010

Leave a comment »

WebService Example

In http://mono-project.com/Writing_a_WebService we are told how to implement a Web Service, but also the code used is a very illustrative example. Suppose the file NumberService.asmx is made initially by an author duly named and who publicly is displayed as First.

<%@ WebService Language="C#" Class="MathService.MathService" %>

using System;
using System.Web.Services;

namespace MathService
{
        [WebService (Namespace = "http://tempuri.org/NumberService")]
        public class MathService : WebService
        {
                [WebMethod]
                public int AddNumbers (int number1, int number2)
                {
                        return number1 + number2;
                }
        }
}

First will take all appropriate copyrights for making their contribution at the time, so it is essential to identify the date and time of each new entry. Suppose, for example, that five days later a new author identified as Second provides a new method to First‘s Class.

<%@ WebService Language="C#" Class="MathService.MathService" %>

using System;
using System.Web.Services;

namespace MathService
{
        [WebService (Namespace = "http://tempuri.org/NumberService")]
        public class MathService : WebService
        {
                [WebMethod]
                public int AddNumbers (int number1, int number2)
                {
                        return number1 + number2;
                }

                [WebMethod]
                public int SubtractNumbers (int number1, int number2)
                {
                        return number1 - number2;
                }
        }
}

So the service has to be able to identify any changes carefully, so not a big company needed to make a contribution. In this case, the database used by the service should store in addition to identifying areas and the date of the transfer, modification made, ie

[WebMethod]
public int SubtractNumbers (int number1, int number2)
{
        return number1 - number2;
}

and their position and how it integrates with previous contributions.

Leave a comment »

Examples section

This section of the Blog is to illustrate a possible implementation of our collaborative environment. The idea is to tackle the code as if it were text, just as with Wikipedia, where contributions and/or modifications are to some extent recognized. Perhaps from contrast with actual examples will arise new ideas.

Leave a comment »