The reuse paradox

A few days ago, a college was saying that code reuse has never been made to work. I will now show why this assertion is not true.

Me: If a program is used by more than one person, then there is re-use.

Them: Yes, there is reuse in the large, but what about in the small.

Me: Libraries.

Them: Yes, but this produces very little reuse.

Me: Imagine you have some code of 100 lines. 50 of those lines are used more than once. Next, we think we can improve this, and we refactor the code. We now have 80 line of code (because of greater reuse) of which 35 are reused (because we mainly improved the bit that already had a lot of reuse). But what does your metric look like? It was 50/100=50% (50 lines of no reuse) now it is 35/80=43¾%

Them: What happened?

Me: We measured it wrong. The no reuse metric is better, but still not perfect. It was 50 lines no re-use, now it is 45 lines no re-use.

What is wrong with economic theory

This is just some thoughts from listening to so-called experts on the radio. I call them flat earth economists, as they are like the flat earth believers of old. You had to believe it or everyone would think you are an idiot.

Occasionally someone will get on who will discuss their ideas about turtles and elephants, or a giant space ship. The real economists that think for them-self and are not mad (well no more that normal) that say what they see, hardly got a look in. So here is some things that I see.

Rewards for doing wrong

Don’t reward bankers for doing wrong. Governments should not bail-out institutions, but let them go. But some times it is necessary to save customers. Therefore if a bail-out is needed then the government should take-over the institution to save the customers and take any profits.

Combining utility with speculation

This makes bail-out necessary. Bail-outs are bad. Therefore legislate that utilities (banks) do not partake (or lend to) in speculation.

High pay

It has been proved that pay above a level does not motivate. It is also evident that those getting the bonuses can not do their job. Therefore do not pay too much, consider hiring it more unusual people.

Growth

Growth can not go on forever, and history shows it does not. Therefore do not depend on it.

Confidence

You only need to rely on confidence if it is not true. Therefore if someone tells you that confidence is dropping or rising, get out quick.

Leverage through borrowing

If you borrow to invest, and the investment goes bad then you owe a lot of money that you can not repay. Therefore do not borrow or lend. However you can invest and issue equity.

Belief in self-interest

It is often said that when an individual pursues his self-interest, he indirectly promotes the good of society. Is this true. If so, then when your car is stolen then it is for the good of society, and the thief should not go to jail (or the law should be revoked, indeed all laws should be revoked). Therefore don’t believe everything you are told.

Belief in Perfect Markets

It is said that the markets are perfect, because everyone works as individual. It is not true for the simple reason that most people (without even studying economics) believe that everyone else is acting rationally and knows something they don’t (they attribute there not knowing what is going on to a personal attribute[personal attribution bias]). They then follow the crowd. The crowd follows the crowd. The blind follow the blind. Therefore don’t believe everything you are told.

Money is real

Money is not real, goods and services are real. Financial institutions do not make anything, they are not even providing a real service, it is at best a secondary service. Therefore do not call it the banking industry.

Inefficiency

If I run my house like a country (following macro economic theory) I would be in debt and have no stuff. I would smash-up everything to try to increase growth. Therefore beware macro economic theory and don’t believe everything you are told.

Efficiency

Having a small number of large companies may be efficient, but is fragile, and is inefficient for customers. Therefore have a large number of small companies.

Statistics

The use of Gaussian statistics to predict markets suggests that the event that happen every 10 to 20 years are billion year events. This is clearly not true. There is no other statistics that can predict (though some types can predict the general shape). Therefore do not try to predict, just buy when under valued, and sell when over valued.

No news is good news

News is bad for us.

What do I mean by the news is bad for us. What I mean is that it un-educates us. All news is bias even if every effort is made to make it balanced. The most important of these biases is not caused by the authors of the news but by the nature of news itself.

What is news? “If a dog bites a man, this is not news. If a man bites a dog, this is news.” So news is, the unusual.

The news is full of rare events. Yes they happen. For the best news channels, they did happen (at least once). But do they happen to us? We can find individuals, if we try, that were involved. We can find a story that we were involved in if we try. We are not involved because this is not what the world is like. And yes you here about events that happen more often like wars, that is because lots of people dying at the same time is also news. So if it is rare and/or lots of people suffer, then it is news.

Now this point of view may seem callous, but it is not. The bad things you see on the news are bad, but you knowing about it will not change them, though your actions may. For your actions to be wise, you need to understand your self and the world. The news will destroy your understanding of the world. If you watch the news, then when you walk home you will take the long way around the park, and be hit by a car. If you do not you will walk through the park, breath the fresh air, and feed the ducks. You will also notice that there are no people, where are they, they are no busy getting run over by cars. At least if you do get killed by a duck it will be in the news.

Both getting an understanding of the world and of yourself is outside the scope of this article, but the news is not it. You will have to try harder. However you can start by not watching/listening to/reading news.

So what will you do? Watch the news, waiting for that day that I am killed by a duck, and you prove me wrong. Or stop watching/listening/reading the news, and enjoy your life.


How to Block news on yahoo email

Add this rule to addblocker plus (a browser plugin):
yahoo.com##div#gx_vnews
This blocks a div with id of gx_vnews on the site yahoo.com