Friday, January 28, 2011

Do not get depressed

It seems that getting depressed is the worse thing can happen to an entrepreneur.

Very few people understand how difficult is to create a new thing. Most of them hear success stories and think that all of those people were struck by a great luck.

I do not want to say luck is not important but most of them worked hard to acheive that success.
Also for 1 success there are other 20 failures (or even greater in IT).

Depression can appear as the result a few of reasons (list not complete):
  • people desert you when you most need them
  • none seems to understand you or share the vision with you
  • no investor seems a "deal" in you or your ideea
  • no one even ask you a question or leave a comment on your blog
  • you work too much
  • you did not allocate time for fun (or for youself)
  • the level of problems (read bugs if you are in IT) are so high that you ask yourself if you are producing bugs instead of code
All of those reasons might make you give up.

Don't do that!

Ancient christian monks described that state of mind as acedia. You can recognize it by the fact that you do not want anyhing. You are just bored and tired. You want to give up.

Don't do it!

Then is your time, then you can rise and yell (in your mind)

I WILL NOT GIVE UP! NEVER!

See this guy and think about your life.

HTML5 supported in NetBeans 7.0

Even if NetBeans 7.0 is in beta it offers HTML5 support.

Awesome!

We, at Diagramo, are using NetBeans from the first lines of code and we lacked that features.
Now it's there.

Thank you NetBeans team!

JavaScript and mental stack

I've been playing with heavy JavaScript - for Diagramo - for about an year by now.

There are things you can not realize instantly but you need time for your brain and body to realize.

What do I realized?
In JavaScript - for large programs - you have a heavy mental stack.
Let me explain a little bit.

By mental stack I mean all the things you have to load in your brain (code, exception, configs, etc) so that you can be productive.

JavaScript is a "script" language
Wow, that is fine...except for the case you have a large program. In Java you have strict types and it's medium difficul when you start a program but it keeps to be that way no matter how big the application grows.
In JavaScript it's super fast to make a prototype but it starts to be harder and harder to develop and maintain as the code grows.

JavaScript runs in a browser
Wow, that cool....but what if you need to write some test units? Or if you need to make other automated tasks?
You need tests and testing. You can not have a big application with a decent quality without some tests.
I have to use the Rhino implementation of JavaScript to run them in console.

But wait! How can you simulate a real browser enviroment in console? Well...you can not :(


Conclusion ?
I know you can organize your code better but that is what I felt while coding in JavaScript.


Here is what Cliff said about mental stack.