Java+Moccha

This blog is pretty much about my experiences with the Java Language, Web Development per se, including PHP, Python.

I'm a growing developer focusing in web development area.

Feb 13

What is the best programming language?

adnan-chowdhury:

What is the best programming language to learn and use?

  • Java
  • C/C++
  • PHP
  • Python
  • Perl
  • Ruby on Rails
  • Other

Comment below and let me know what you think, I’m keen to know what you think!


Feb 12

Play! Circus - For URL Perfectionists

This is a module I’m currently working on after making a suggestion in Play! Framework Mailing List, I realized that this one module could actually be nice to have. 

Goals of the module:

  1. Generation of Java files using routes
  2. Generation of template files
  3. Increase productivity

Right now I’m almost done with the method generation which will look like this:

Link to pastebin (sorry my current tumblr design width is small)


It also take notice of regex:
Link to pastebin (sorry my current tumblr design width is small)


Its been a real experience creating this module, I don’t know when I will be able to release it to the public but once I get a working copy I will commit it to Github.
There are a few drawbacks, the module will automatically make the arguments Integer, since I cannot get which type of argument you want (string, integer), so the generation will not be 100% perfect, but it will save you time from creating templates and controllers :) 


Also, it will not override files, so this is a “run-once” module then deactivate it :). Since it will be an experimental release I suggest not to be used in current projects. 


Cheers!


Feb 8
“Don’t try to change people, change the process.” some weird dude I couldn’t get the name!

Fine, I will learn C first than C++ I’ve been bought with a good reason too. You know sometimes I don’t know if learning as a hobbyist has more advantages than going to college probably not


Feb 7

Creating an easy installer in Play! is tricky but fun

I’ve been working on some Play! related projects for some time now. This one is a gallery that I plan to release to a targeted audience. Usually when we use a web framework we sort of forget that eventually we will need to write an installer so the user or client can install the application without any technical voodoo crawling around.

The only downside of this is portability, for a simple gallery the ending war file is 41mb. It’s not that bad if you wget it using the server connection though, but not everyone going to have a server at their disposal, sadly

It made my day though, I enjoyed writing the installer, using hibernate to create all the schema and use the Bootstrap to load common data. 


Feb 6
“Looking at code you wrote more than two weeks ago is like looking at code you are seeing for the first time.”

So true :(

Dan Hurvitz (via adamjmorgan)



Feb 5

Even after all my trouble with Play! Framework… there is no way I would jump to another web framework.

For Python: Django
For PHP: …? Zend Framework.. Zend seems to have over-engineered their framework, Kohana and CakePHP seems the way to go, still I would use some of their classes.

Back to work 


Feb 4

Last week nightmare!


At last, #supernatural is today, a good time to relax after programming all week. I had an horrible nightmare last night… that they brought Stephanie Meyer to write SN script.


Page 1 of 2