Archive

Posts Tagged ‘programming’

Use List(T) ForEach method instead of foreach

April 29th, 2009 Petros No comments

If you have the right .NET version you can use:

Categories: tips Tags: , ,

Hello world in Ruby

April 27th, 2009 Petros No comments

This is Hello World in Ruby:

Categories: hello-world Tags: ,

Learn many programming languages or few?

January 18th, 2009 Petros 1 comment

The post written by my fellow programmer Kostas, reminded me of how many times I am troubled by the following thought: Is it better to stick to one or two programming languages or try to learn as many different languages and frameworks as possible?

Read more…

Reporting bugs

August 29th, 2008 Petros No comments

I am sure most programmers and me know by now the 101 rule: Maintain a bug database if you develop software. This post is not about this. I assume you know and practice it already. I want to talk about what a bug report should include and I encourage you to train the people who will report bugs to follow this advice.

Read more…

Categories: tips Tags: , ,

Developing for yourself first

May 4th, 2008 Petros No comments

As a professional programmer for over a decade, the applications I am proud for having developed can be counted on one hand. I always wondered why. As I was thinking about it, a pattern was revealed. All these applications were developed by me in order to solve a problem that I had.

What this really means, is that I was the first user for these applications. I knew exactly what the problem was, and I also knew what the best solution should be.

Developing other applications where I am not really a user, means I only have my accumulated knowledge over the years about the business domain, the knowledge of other people, my assumptions and my ability to continue writing code even if I am bored to death. I can tell you this is really difficult to handle. Developing in order to solve something you really don’t care about. Developing an application based on assumptions you make is a time bomb ready to explode.

Most successful and usually small companies, started out solving their own problem first and then offered their solution to the public. There are always people out there that want a solution to the same problem as yours.

I think this is a recipe for success even if you don’t have a lot of money to begin with.

Regular expression online tool

April 10th, 2008 Petros No comments

I think regular expressions is something every programmer should be familiar with. I am not saying, every programmer should write three lines of regexp strings, in three seconds without a cheat sheet. I am just saying that we should all know at least that they exist and what they are useful for.

The truth is, if it is the first you encounter regular expressions, you might have some difficulty remembering all those hieroglyphic expressions. There are cheat sheets and they can be handy, but I found something today that in my opinion is quite better: Online Regular Expression Testing Tool

Do you know any similar offline/online tool?

Categories: utilities Tags: ,

Hello world in Flaming Thunder

March 22nd, 2008 Petros 1 comment

I never loose a chance to search for new or different programming languages. I stumbled upon Flaming Thunder.

From their site:

Welcome! Flaming Thunder is a powerful new computer programming language for scientists, mathematicians and engineers, that is easy enough even for elementary school students.

Categories: hello-world Tags: ,