My Profile Photo

Manuel Rueda

The passion of develop and try weird things...

Typescript Everywhere

Time to time I get a little bit bored with the tools or task that i’m doing, because of that I like to start new projects with tools/languages/methodologies/etc that i’m not use to use. That helps me to clear my mind and think in another stuff to get rid of the blocks in my head or the boredom.

But well, that is not the idea of this entry, even the name has no relation, the idea is what I have experienced in my last projects of this kind.

The project

The project was something very simple, a site to manage all my home chores, status on the house and share it with my girlfriend. Even I was thinking to connect it with some Arduino project, but that is another story.

How I told before, the idea it’s to pick technologies that i’m not use to use. So I pick Typescript as a language, I use it but not very much. Gulp as a building tool, i’m a Grunt user mostly. MongoDB for the database, that not new for me, I used it a lot but not recently and I want to go back and use it again. But I change my ORM, before I used Mongoose, but for this time I found Iridium, a ORM built with Typescript, so was great to avoid to have to found the Typings of one more package.

But that was only for the back end (and building task), about the front end I want to challenge myself with more changes and chose Angular 2 to keep with the Typescript initiative you know…

The meaning of the title

The project was great, I learned a bunch of new thing about each part. And made me better in the things that I already know.

But in a moment I notice that I was using the same language at back end and front end, and remember my beginning with NodeJS when the motto was “JS on the server” and “use the same language for all”.

And yeah… I know… I did not discover America with this phrase. But was very revealing to me and gave me the change to test some things.

For example I reuse the same Interfaces used in the ORM in the Angular services. So, when I change something typescript told me instantaneously, at the back end and front end. This is not a very good idea in a very large project, I’m coupling back and front very heavily. But for this small project was a good experiment.

comments powered by Disqus