Hacker News new | past | comments | ask | show | jobs | submit login

I cannot keep my sanity when I use dynamic languages in fairly big projects. I just cannot organize my code and all the functionality good. So, I looked at the options at Java and most of them looked either very complicated(Spring) or insufficient.

I am developing a very simple framework, insipred from Sparkjava and Play Framework: https://github.com/mustafaakin/WebOM It basically maps either HTTP requests or Websocket connections to Java objects with typed parameters.




I'm not sure what you're trying to do. If you're talking about dependency injection: 1) be aware that you're ditching some safety by relying on it 2) look at Guava


I just map a request like /users/:groupId?orderBy=name to A java object like "int groupId", and "String name" and it puts them automatically by converting, and if you wish you add some checks, notnull, range etc. and It replies bad request to client. Therefore, I do not do this conversion and checking each time.


I'm starting to put together my own Java web framework to make things easier to get started quickly and borrowing ( heavily) from other language frameworks. https://github.com/bluedevil2k/Jiffy


Try checking out Ninja Framework. It's pretty decent.


Try out CDI!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: