Mostrando postagens com marcador programming. Mostrar todas as postagens
Mostrando postagens com marcador programming. Mostrar todas as postagens

26 de julho de 2007

UML and stuff

Today I've spend most of my time at work trying to find a good open-source tool for CBD-OO design by means of the good old UML2.0.

I've came across these ones:

ArgoUML: which is kinda of cool. It is Java based, but runs nicely on my laptop. It has reverse engineering and it is intuitive. The major drawbacks are the lack of component and deployment diagrams. It also allows to import/export models in XMI 1.1. However it is not fully interoperable with models from other tools like Poseidon.

StarUML: This has great potential. It has a Rational Rose feel and look, but it is less intuitive than the previous one... Hopefully the next releases will handle that.
It's a tool that I would definitely use for home brew projects.

and Poseidon UML community edition: which is the one we use at the company but nowadays isn't free any more. One must pay a rent annually.
This one is an extension of the ArgoUML and has a new set of functionalities fully compliant with UML 2.0. There is also the Professional and the Embedded Editions, but those cost big bucks!

I think I'm gonna use StarUML for a while, to see how it goes.



28 de junho de 2007

portugalCode

Existe um novo fórum de/sobre programação para profissionais, estudantes, freelancers e afins. Este fórum é Português e em Português.
Vale a pena espreitar!

portugalcode.com/

Concurso de Software Livre Nacional/ Portuguese Free Software Contest

The Portuguese Free Software Contest is organized by the Computer Science Association of University of Évora (NEEI), in collaboration with several personalities in the free software world.

It's major goals are the promotion of the free software in Portugal and the interworking (knowledge and experience sharing) between the Portuguese community of developers who embrace the free software philosophy.


It's is a great initiative, and hopefully it is just the beginning.

here



26 de junho de 2007

You've got to love maths

I spend some of my free time doing some math/computational brainteasers from the Euler Project. Well I could watch some porn instead, but I prefer to exercise my computing skills while trying to optimize the algorithm/answer for a given problem.
I've started with C, but when the values involved exceeded the 64 bits, I had to choose between using a C library like miracl which offers arithmetic operations with 1024 bits, or using Perl and the CPAN module BigInt.

I decided to give Perl a chance. Until now, all my answers respect the 1-minute rule so no problems with that. Also since my Perl knowledge is pretty bad, it is a good opportunity to get more acquainted with the language.

today I've spend some time in problem #28. The solution is quite easy, but between finding the equations for each semi-diagonal and getting the final result in 3 lines of code I got really upset. Now, I will try to compute the result with brainfuck.

yeahhhh!!

25 de junho de 2007

If you have brain damage ...

... probably you've been around programming "brainfuck"!!

Well, don't get all excited I'm not insulting you. I've just discovered this esoteric language today, and it is already in my todolist as one of the things to learn when I have the time.

So lets check the typical hello world example:
++++++++++
[>+++++++>++++++++++>+++>+<<<<-] The initial loop to set up useful values in the array >++. Print 'H'
>+. Print 'e'
+++++++. Print 'l'
. Print 'l'
+++. Print 'o'
>++. Print ' '
<<+++++++++++++++. Print 'W'
>. Print 'o'
+++. Print 'r'
------. Print 'l'
--------. Print 'd'
>+. Print '!'
>. Print newline


Sooooo pretty!!
if I learn this, I will definitely impress the ladies!