7 ms·
We use Play at work. It's the only reason I use an Algol dialect after 10 years of writing Lisps. It and Android, to be frank. I believe we have one of the lar
by mahmud 15y ago
We use Play at work. It's the only reason I use an Algol dialect after 10 years of writing Lisps. It and Android, to be frank.
I believe we have one of the largest Play code bases. And I still enjoy it.
I picked it out of a line up, I tested Django, Rails, Cake, Java EE and buncha other stuff. I had just a month to pick a platform and budget limits for 4 staff and 2 years. So far I only needed just a gfx designer and I still do all coding myself.
Ask me anything about Play.
- zeemonkee 15y ago> It's the only reason I use an Algol dialect after 10 years of writing Lisps. Why not a Clojure stack ? Is Play itself, or Scala ?
- mahmud 15y agoJava. I didn't do Clojure because I didn't know Java til this year. I last did C++ in 2002, closest language.
- Egregore 15y agoWill you migrate your projects to 2.0 or will keep them with 1.2.* ?
- mahmud 15y agoWe'll move to 2.0 once crud, secure and search modules are there. I plan to keep up with upstream.
- electrotype 15y agoHave you had any issues related to Play's: - Class reloading magic? - Hibernate wrapping/hacking? Some other specific issues you workarounded but feel should be fixed in the framework?
- mahmud 15y agoHibernate. I learned JPA months after I wrote most of the apps. What can I say, growing pains. But it's understandable given the size of our project.
- Robin_Message 15y agoThanks for the offer. I've also just started using Play at work and one question has been driving me nuts: I'm trying to form a many-to-many relationship with JPA. I have two models, with a third model to represent the relationship (can't just use @ManyToMany as the relationship has attributes). The primary key on the relationship model is a composite primary key of two other models. When I add a new relationship model to the @OneToMany set on one of the first models, can I get the relationship model's key to change automatically, or do I have to do it manually? e.g. with three models like (psuedo-Java-Scala coming up) class Order(val customerName) @OneToMany Set<OrderItem> items; class Item(itemDescription) @OneToMany Set<OrderItem> orders; class OrderItem(val quantity) @Id @PrimaryJoinColumn @ManyToOne Order order; @Id @PrimaryJoinColumn @ManyToOne Item item; OrderItem oi; oi.item = bananas; order.items.add(oi); order.save(); // This saves oi, but with a null value for order_id oi.order = order; //This seems redundant, but the save is wrong without it. It seems like I have to do it manually, but to my mind adding it to the Set should be enough information to change the keys. Is my thinking wrong or am I using JPA wrong?
- robfig 15y agoYep, you figured it out. JPA requires you to set it on both sides. (Well, really you only HAVE to set it on the owning side of the association, which is what Hibernate monitors, but you should do both. Otherwise, a future programmer may be surprised that the objects don't have a consistent view of the association later on.
- discreteevent 15y agoHave you written any 'rich' clients with it? If so have you used GWT with it what was that like? If you didn't use GWT what was it like to use javascript with it and what libs did you use?
- mahmud 15y agojquery (UI, mobile, formalize, etc.) I heavily use its Jobs to keep ajax responsive. I do full-text autocompletion off of Postgres' native seaorch against 65k products. Works great. Its a great piece of software, see chat demo for Comet example.
- ireadzalot 15y agoHow much xml based configuration is used in Play? I am currently using Spring and slowly all the xml configs are starting to haunt me.
- lpolovets 15y agoI've used Play! for work and personal projects, and I've never had to deal with XML. Play uses .properties files for simple things (actually, there's just one main .properties file), YML for more complex data (like a list of fixtures to load for unit testing), and "convention" for pretty much everything else (that is, you don't have to write any configuration if you put things in the places where Play expects them)
- mahmud 15y agoPlay doesn't use xml for configuration. It has a simple property file. So, none.