News for hackers. Stuff that matters.
Re:Poof.js - Professional Object-Oriented Framework for Java... by abrichr on Wednesday December 18, 2013 @12:36AM (#6926088)
This looks very interesting. I can see it allowing developers familiar with C-style languages to start hacking away at JavaScript without first having to learn prototype-based programming.

Are there any examples of applications built with POOF.js?

Re:Poof.js - Professional Object-Oriented Framework for Java... by goldenkey on Wednesday December 18, 2013 @01:27AM (#6926202)
The dollar signs are hideous. Change class$ to Class. Don't be an amateur when it comes to reserved words, even my doge knows about case sensitivity.
Re:Poof.js - Professional Object-Oriented Framework for Java... by premun on Wednesday December 18, 2013 @05:08AM (#6926768)
+1 for this :)
Re:Poof.js - Professional Object-Oriented Framework for Java... by goldenkey on Wednesday December 18, 2013 @06:48AM (#6927042)
Sorry for the overly harsh comment. I was busy and didn't get a chance to look at it in depth, but the reserved keywords hack was the first thing that caught my eye.

Now that I've overviewed the framework, it's actually pretty nice. I'm a big fan of the way you've bolstered privates and constants with runtime checks in there. Pretty sweet :-)

Re:Poof.js - Professional Object-Oriented Framework for Java... by sehr on Wednesday December 18, 2013 @01:23AM (#6926187)
1 question: why?

Not trying to be a dick, just honestly curious.

Re:Poof.js - Professional Object-Oriented Framework for Java... by premun on Wednesday December 18, 2013 @05:02AM (#6926751)
I have been working on a larger nodejs project for past two months. I can say I have experience with web based JS and with OOP in other languages but this was my (our) first encounter with JS being used in a team environment where you needed to distribute the work among programmers. This is near to impossible without specifying interfaces. And for good code readability you need to separate public and private insides of your modules/classes too.

While we were starting the project we found ourselves trying to emulate class behaviour, inheritance, singleton patters etc. because it was natural for us and pretty much desired for that kind of project. There are many ways how to imitate such behaviour in JS but each and every one of them lacks some kind of a feature such as multiple inheritance or interface implementation to which you are accustomed to in modern OOP languages like C# for instance. We had a lot of trouble with prototypes and I think we never accomplished getting to a OOP pattern on 100%.

I am very excited about Poof because it gives me a lot of hope and I am quite sure we will invest in researching spoof (I just found out about it through HN). If it proves OK after several tests and delivers its all promises such as speed, I am quite sure we will be rewriting whole project under spoof style.

Of course that if you are using JS only in front-end web environment, there is no need for such a thing, but a framework like this is a big helper in a project like the one we are dealing with.

Re:Poof.js - Professional Object-Oriented Framework for Java... by rachbelaid on Wednesday December 18, 2013 @04:30AM (#6926642)
It's somebody that I know who has been developing it and to be honest. I want to ask the same question "Why?".

I have an idea that it's because it comes from somebody familiar with java and actionscript, so it may helps other developers to program with JS in familiar approach.

Re:Poof.js - Professional Object-Oriented Framework for Java... by mxxx on Tuesday December 17, 2013 @11:33PM (#6925922)
is it childish that i giggled at the name?