RSS
 

Archive for July, 2010

Thoughts on JavaScript compilers

25 Jul

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.

 

Music is the key

25 Jul

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.

 
No Comments

Posted in Music