Thoughts on JavaScript compilers

I think JavaScript compilers sort of defeat the purpose of a programming language. I can understand that you would want to compress JavaScript to save download time on the client side. However, it seems strange to me that another programming language writes code in another, higher level language. If the JavaScript you write is good and not highly redundant, another PL wont be able to generate it. The only place where it seems useful to me is when creating variables’ values like a count or an array of file names or similar. However, generating JavaScript from PHP or any other server side language seems to defeat the purpose of reusable code. You can in fact write highly re-usable code in JavaScript, it supports inheritance etc and libraries like jQuery make it highly compact. When it comes to deployment though, it is beneficial to have a script running that compresses the JavaScript.

Anyway, let me know your thoughts in a comment.

Posted in JavaScript, Programming | 2 Comments

Music is the key

I would like to write something down that I learned in my music lessons:

Order of sharps: Fat Cats Get Down And Elegantly Boogy (FCGDAEB).

Order of flats: Big Elephants Always Do Great Circus Feats (BEADGCF).

This is related to the Circle of Fifths or also called Circle of Fourths. This circle is quite important in music as the number of flats or sharps depends on the position of the major scale in this circle. From the top it goes CGDA…

This post is really just for me to remember.

Posted in Music | Leave a comment

Hello Blog!

Hi All, obviously this is my first post, duh! The question now is for me whether I should write in English here or German, which is my mother tongue. I guess I could always translate, but that seems rather tedious and would take too much time. Also I would bore people to death who know both languages. So, I decided to do a bit of both languages and maybe some translation, if I find the time.

Firstly a bit about myself:

My life started quite different to “normal” people’s lives. About 3 months after my birth my parents flew me over to Pakistan, where I spent the next 5 years with them. I know that because I can remember my 5th birthday happening back in Germany and we had just arrived back in Germany at that time. Other than that I don’t remember much from that time period which is hopefully understandable. Only a few things worth mentioning here:

When I was about 3 I was very spoilt and got almost anything I wanted. We had a cook who would make me lunch etc. He even gave me baths and one day, I had a bath and decided it was a good idea to pee in there. I remember because my dad had told me that pee was actually quite a clean fluid. Sunny (our cook) must have been really disgusted and let all the water out of the bath and I was thinking: “What a waste, my dad told me it was clean and I was just cleaning myself and now Sunny has to fill it all up again in a country where water is not in excess.”… A bit later or a bit before that, I don’t know, I played hide and seek with my mum and she was getting bored of me hiding in so obvious places, so she told me to hide in a better place. “OK”, I thought, and hid really well, behind a bush in the front yard. Then I was waiting there for quite a while and she didn’t find me. I was always quite patient and waited there for quite a while, at least 15 minutes if not half an hour, which is ages for a 3-5 year old kid. Then I heard my mum calling my name several times. I took it as a game and didn’t react and let her try to find me. Apparently she was panicking, because she told me later about this which is why I still know… I also remember something else, but this time from my own memory:

Back in Pakistan I dreamed of flying for the first time, which was really nice. I was dreaming that I was flying up the wall, which was around our property there. I flew up and down just like I wanted it.

Anyway, it’s getting late here. Hopefully someone will find this interesting and leave a comment, because I don’t know if it’s worth writing all this stuff if no one reads it and finds it interesting. Be sure though that I will leave some posts about web dev stuff if you are interested in that.

Posted in Uncategorized | 1 Comment