greptilian logo

IRC log for #sourcefu, 2013-04-29

http://sourcefu.com

| Channels | #sourcefu index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
06:07 aditsu joined #sourcefu
06:50 aditsu joined #sourcefu
07:02 aditsu joined #sourcefu
07:37 aditsu joined #sourcefu
08:22 aditsu joined #sourcefu
09:06 aditsu joined #sourcefu
12:24 aditsu depeche 0.7 released - http://depeche.sourceforge.net/
12:31 pdurbin aditsu: cool. I'd be curious to hear about the user community for depeche
12:32 aditsu pdurbin: me too :)
12:34 pdurbin heh
12:35 pdurbin at least you don't have to worry about breaking backward compatibility much :)
12:38 aditsu pdurbin: what do you use for working with databases in java?
12:43 pdurbin aditsu: honestly, I haven't touched our database code yet but I was just noticing a bunch of SELECTs here: https://github.com/IQSS/dvn/blob/3.4/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/vdc/VDCCollectionServiceBean.java
12:44 aditsu looks like some JPA
12:45 pdurbin that would make sense. I hear people around here talking JPA
12:48 aditsu with depeche, I would write findByNameWithinDataverse like this: p.query("VDCCollection").filter("name", name).filter("owner", dataverse).getOneRecord()
12:51 pdurbin rather than: String query = "SELECT v from VDCCollection v where v.name = :fieldName and v.owner = :owner"
12:52 aditsu it replaces both that and em.createQuery(query).setParameter("fieldName", name).setParameter("owner", dataverse).getSingleResult()
12:53 pdurbin ah. right
12:53 aditsu well, since dataverse is not a simple type, that wouldn't work directly in depeche, but it could be done with depeche-objects
12:57 aditsu (also considering that you want to return a VDCCollection object)
12:57 pdurbin ok
12:58 pdurbin I need that VDCCollection object because we store Lucene queries in the database
12:58 pdurbin a collection is a group of studies, academic research studies
12:59 pdurbin and a dynamic collection is defined by a lucene query
13:13 aditsu I'm trying to make a class diagram..
13:16 pdurbin class diagram of dataverse?
13:17 aditsu no no, of some of my classes
13:18 aditsu I installed something called objectaid
13:18 pdurbin crimsonfubot: lucky objectaid
13:18 crimsonfubot pdurbin: http://www.objectaid.com/
13:19 pdurbin hmm. maybe I'll download eclipse at some point and try this
13:20 aditsu do you use another IDE?
13:20 pdurbin netbeans
13:21 pdurbin hmm, "a strict superset of JavaScript, and essentially adds optional static typing and class-based object oriented programming to the language" -- http://en.wikipedia.org/wiki/TypeScript
13:32 aditsu objectaid is pretty nice
15:14 aditsu result: https://sourceforge.net/apps/mediawiki/depeche/index.php?title=Query_classes_and_interfaces
16:03 pdurbin huh. nice
17:46 pdurbin that's fun, I finally merged my feature branch into our integration branch so you can see all the commits I've been making: https://github.com/IQSS/dvn/commits/develop
17:58 semiosis joined #sourcefu
18:48 pdurbin http://javaposse.com/java-posse-418-dickless has a long discussion at the beginning about when to use interfaces and when to use abstract classes. looking like one of the guys on that podcast wrote a blog post along these lines: http://graphics-geek.blogspot.com/2013/03/for-api-nerds-interfaces-and-inner.html
21:32 atz1 joined #sourcefu
22:36 semiosis all that work to try to remove a .java file from the package?!
23:14 pdurbin hmm, I didn't read the blog post yet. but the discussion was very interesting
23:14 pdurbin sort of like, "when should one use an interface at all?'
23:15 semiosis every class has an interface, but not every Interface has a class
23:32 semiosis in other news, java.lang.String is final, but PowerMock don't care.

| Channels | #sourcefu index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

http://sourcefu.com