After DevMeeting

DevMeeting is after us, and only thing I can say after it is "more". Meeting started at 9 a.m. and we worked with short breaks till 9 p.m. Whole meeting was leaded by David de Rosier and I must say that I have been under deep impression how big and broad knowledge he has.

We started with JavaScript refreshing - quick review of JavaScript magick. As a exercise we got task to implement elements of Aspect Programming in JavaScript.

Next we jumped to NodeJS and I must say that this was the most interesting part of whole meeting. His callback approach provide really powerful way for creating server-side code. After theoretical part we started implementation of chat - part of online code editor that was ours goal on this meeting. It was rally amazing to see that the same library (Socket.IO) is used on client and server side, JSON is transparent for both sides and all was running in less than 15 minutes.

As last element we explore RingoJS - MVC Server framework. It wasn't impressive - yet another framework. Only interesting thing in it is possibility of Java libraries usage. But there is no "magic" that NodeJS is offering and there is a lot of much better frameworks around in any other language.

Whole meeting was really successful, it has given me wider look on server side JavaScript, and I am definitely recommending it any one who want to learn something interesting.

Pre DevMeeting

On 14 May in Poznan there will be interesting meeting (with I hope to take part) about RingoJS, V8cgi and NodeJS. I am still confused with "server side JavaScript" concept and I hope to clarify my point of view after this meeting. Meanwhile I strongly recommend two videos where Ryan Dahl is explaining why he has created NodeJS, it general architecture and for what and where NodeJS can be used.

GAE as free Java hosting? Not really.

If you plan to deploy your new, shiny, low traffic application on Google App Engine, because you think that you can get it for free - don't bother. That was my idea recently - to took Play framework (nice integration with GAE and Siena through modules) build simple (but not trivial)  low traffic application, and deploy it on GAE. Quota that is assigned to free GAE option was more than enough for my requirements.

After quick warm-up with framework and GAE infrastructure I have created first snapshot of my application.  All was smooth and easy. The only problem was with page response time: it was taking even ~5s to get response. In logs I found this information:

This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

Quick search through a mailing lists and I found information that GAE will utilize your instances, if they are not used (with in case of low traffic application is more than sure). There is solution to prevent that: you can buy Always On option, but at this moment it costs 9$/month. Its not much as for Java hosting solution, but well - its still more than PHP.

 

AndEngine in action

Any one interested in making games on Android platform, should definitely check AndEngine. This framework will help with creating 2D OpenGL games. It is easy, quick and powerful. Extension allows to create games based on physic or even multiplayer games. Below you can find video that shows what can be done in just two evenings.

JavaScriptMVC and Skylinetrooper.net

My another friend has asked my to update his portfolio. And again I have chosen JavaScriptMVC as client side framework. I think that final effect is more than good. If you want to check it, visit www.skylinetrooper.net. I strongly recommend to check also Piotr private gallery under www.skylinesleep.net.

Madness? This is ImpactJS!

Another great JS gaming engine is in the way. Just check out this awesome presentation where you can find some info about engine and editor (!):

You can play in Biolab disaster to check how cool it is. I am over deep impression about it.

Bye Google Wave

Today I have back from vacations, and I found bad news from Google: they will close Google Wave at the end of the year.

But despite these wins, and numerous loyal fans, Wave has not seen the user adoption we would have liked.

For me its quite strange: in my company we use Wave and it works very well and for sure there is lots of companies that are in the same position. Why they can keep it online like other closed products (like Google Notebook)? Did Google think that it will be competition for Twitter? What it mean "user adoption" for Google?

Lots of questions but there is on sure - for Novel Pulse it's good news.

STS and Grails development

After long, long time I have back to eclipse as a main IDE for Grails development. There are two reason to do that. First, my license on IntelliJ was token (end of project == end of license), and before I give lots of $ for my own copy of JetBrains product, I want to test an alternative solutions. Second, I wanted to test Spring Source work (honestly!).

What I have remembered from my last contact with Eclipse + Grails combination was pain. Not even pain but PAIN. But, almost 2 years ago there wasn't to much alternatives. Yes, there was IntelliJ but even my beloved IDE wasn't perfect.

But now, everything changed. Grails became popular framework, Spring buy it and rush began in IDE development.  So how its looking now with STS and Grails? 

We got new project explorer view with nice separations of project elements (controllers, services, domains and so one). What is nice, STS will handle plugins and dependencies and display its source in explorer too. Even more - it will handle project that base on plugin oriented architecture. Sweet.

Other nice feature will appear when you press Alt+Ctrl+Shift+G (ok, one finger left). Its Grails console, with autocomplete (just write "ins" and press Ctrl + Space) similar to console used in Roo/STS integration.

What most important, code autocomplete  is working.  We can navigate through project classes structure, plugins and dependencies.

So is everything shiny? Unfortunately  no - in my case there were some problems with import visibility: even if class was correctly reflected, and autocompletion shows methods (even dynamic, yupi!) eclipse shows nasty error in line where import statement was. Fortunately "clean project" allows to correct this problem.  

Another problem was with inner classes. For class like this:

  1.  
  2. class Role {
  3. static class Type {
  4. static final ADMIN = 'ROLE_ADMIN'
  5. static final PLAYER = 'ROLE_PLAYER'
  6. }
  7. }
  8.  

STS will not see ADMIN and PLAYER fields.

So, what opinion I give to Spring Soruce IDE? Not bad. I will stick to it for now. Definitely I am able to work with Grails project without headache. There are still problems, but not critical. IDE is still evolving and I am sure that in near future it will be great tool. But to be hones, IntelliJ at this moment is just better.

GhostWind finally on-line

At last, after months of hard work, sweating and cursing, on-line portfolio of my friend was released. So if you want see his works and a JavaScriptMvc in actions, just click: GhostWind

JavaScript prototyping shortest explanation

  1.  
  2. // Without prototyping
  3.  
  4. function Foo() {
  5. this.do = function(){
  6. }
  7. }
  8.  
  9. var f1 = new Foo()
  10. var f2 = new Foo()
  11. f1.do == f2.do // FALSE
  12.  
  13. // With prototyping:
  14.  
  15. function Bar(){
  16. }
  17.  
  18. Bar.prototype.do = function(){
  19. }
  20.  
  21. var b1 = new Bar()
  22. var b2 = new Bar()
  23. b1.do == b2.do // TRUE
  24.  

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.