greptilian logo

IRC log for #friendlyjava, 2015-03-30

##friendlyjava on freenode

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

All times shown according to UTC.

Time S Nick Message
01:45 firebird1 joined ##friendlyjava
03:01 * aditsu starts writing his phonebook implementation... let's see how long it will take
03:05 pdurbin aditsu: cool, I just mentioned you over at http://irclog.greptilian.com/sourcefu/2015-03-30
03:05 pdurbin http://tmp.greptilian.com:8080/javaee7addressbook-1.0-SNAPSHOT/ is where I'm demo'ing https://github.com/pdurbin/addressbookmvc/tree/master/examples/javaee7
03:06 pdurbin I'm pretty happy with my integration tests of the REST API.
03:07 pdurbin I guess I should add some integration tests of the GUI, probably with Selenium.
03:07 aditsu no idea why you're doing those things :p anyway I'll check it out a bit later
03:08 pdurbin some recent work in this area (Selenium testing of a JSF app) by a co-worker of mine: https://github.com/IQSS/geoconnect-tester
03:08 pdurbin aditsu: I like APIs and I like testing :)
03:09 pdurbin I find it more fun than JSF. :)
03:10 pdurbin at work I'll probably move my intergration tests into the main project, now that I'm getting more of the hang of them
03:54 aditsu ok, my phonebook is working now, still fine-tuning a few things
04:13 Richard_2340985 joined ##friendlyjava
04:21 pdurbin aditsu: great! please send me a pull request
04:26 firebird1 why prefer interface is preferred than abstract class?
04:27 firebird1 googled but stil hv doubts
04:28 firebird1 pdurbin, aditsu Richard_2340985
04:29 aditsu an interface can be implemented by any class, but if you have a class that already extends something, you can't extend another (abstract) class
04:30 aditsu but depends on the situation
04:38 firebird1 i have my doubts on this , if havent extended any class , will interface turn be more or equal to abstract class
04:55 aditsu firebird1: pretty much; the main difference is that the abstract class can have some fields and methods already implemented
04:55 aditsu pdurbin: it's running now at http://phonebookdemo.aditsu.net/
05:00 aditsu source code available at http://phonebookdemo.aditsu.net/phonebook-sources.zip
05:00 firebird1 thatss jsf
05:00 firebird1 its easy
05:01 aditsu firebird1: what?
05:01 firebird1 http://phonebookdemo.aditsu.net/
05:01 firebird1 its built on jsf
05:01 firebird1 right?
05:01 aditsu no it's not
05:01 aditsu wicket ftw
05:02 aditsu I think http://tmp.greptilian.com:8080/javaee7addressbook-1.0-SNAPSHOT/ uses jsf
05:03 aditsu see earlier discussion with pdurbin
05:03 firebird1 bug
05:04 firebird1 phone number is negative
05:04 aditsu I'm not doing any validation
05:04 aditsu at least I have a phone number field :D
05:05 firebird1 comeon i can enter more than 12 fields
05:05 firebird1 12 characters i mean
05:05 aditsu so?
05:06 firebird1 validation
05:06 firebird1 sorting not working :/
05:06 aditsu it's working
05:06 firebird1 nope
05:07 aditsu yep
05:07 aditsu maybe it's not sorting the way you expect, but it's working
05:07 firebird1 hmm
05:08 firebird1 may u fixed it :/
05:08 aditsu huh? I'm not modifying it as we speak
05:11 aditsu if you add more entries, it will start to paginate :)
05:12 firebird1 nice list u have there very simple to do , ru doing lazy paginate ?
05:12 aditsu what do you mean?
05:13 firebird1 i meant its very simple
05:14 aditsu it's fairly simple
05:14 firebird1 very simple :)
05:14 aditsu feel free to implement something similar, to compare approaches
05:14 aditsu that's what I'm doing with pdurbin
05:15 firebird1 cool
05:15 firebird1 will do
05:15 firebird1 if u use primeface u can finish a month work in a week
05:17 aditsu I wrote this in an hour, and took one more hour to make it a bit nicer, and set up and deploy everything
05:17 firebird1 and more over you can have add/edit/delete in same page
05:17 firebird1 you can write than in 15 min or even lesser
05:17 aditsu well, show me :)
05:18 firebird1 can i pm u my page ? atleast a pic?
05:18 aditsu what?
05:19 firebird1 i have built a ERP prj on primeface , so i can send a pic on that :p
05:19 aditsu if you want to... but not sure what's the point
05:19 firebird1 there i use add/edit/delete in same page
05:20 aditsu so? I can do that too
05:20 firebird1 u asked show me :/
05:21 aditsu no, I mean you should write a complete phonebook app and show me
05:21 aditsu in 15 min
05:22 aditsu (webapp, that is)
05:22 firebird1 :/
05:22 firebird1 yea webapp ofc
05:23 firebird1 k
05:27 firebird1 ill let know when i start :/
05:27 firebird1 ill give my dump and webapp wen finished :?
05:28 pdurbin aditsu: looks good! I can't figure out how to compile this thing though :/
05:29 aditsu pdurbin: thanks; I haven't even begun to try compiling yours :p
05:30 pdurbin for mine: mvn package
05:30 aditsu pdurbin: one issue is that I'm using a custom ivy repository
05:30 pdurbin hmm
05:31 pdurbin maybe you could provide a readme on how to build it then
05:31 aditsu but I also have a public one, I can make sure it works with that and provide an ivysettings file
05:31 pdurbin ok. I've never used ivy and am not very familiar with ant
05:31 pdurbin I was hoping `ant compile` would do something
05:32 aditsu just "ant" should build it, but it needs ivy
05:32 pdurbin build.xml:13: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
05:32 aditsu right
05:33 aditsu I'll work on a readme file
05:33 pdurbin awesome
05:33 aditsu and provide all the necessary config
05:33 pdurbin perfect
05:34 pdurbin meanwhile, must sleep. I'm only awake 'cause my 5 year old wanted a glass of water
05:34 pdurbin 'night!
05:34 aditsu good night :)
05:51 firebird1 gn guys
08:09 firebird1 joined ##friendlyjava
08:10 firebird1 left ##friendlyjava
10:45 aditsu Depeche 0.7.5 released (my java database library) - http://depeche.sourceforge.net/
10:49 pdurbin nice! and no ads! I thoughts sourceforge always had ads
10:49 aditsu that's a project web page
10:50 aditsu not the main sf site
10:50 pdurbin ah
10:51 pdurbin google code is shutting down. projects like vim are moving to github
10:53 pdurbin aditsu: do you have a writeup of Depeche vs. JOOQ ( http://www.jooq.org ) which also welcomes raw SQL?
10:53 aditsu haven't heard of JOOQ
10:57 aditsu "jOOQ models SQL as an internal DSL" o_O
10:57 pdurbin yeah, seems neat
11:00 aditsu I don't know.. seems like asking for trouble :p
11:01 aditsu haha, "In fact, every company I have ever met rolled their own tailor-made SQL builder."
11:12 pdurbin "Depeche is partly inspired from Django"
11:12 pdurbin aditsu: I didn't know you were into Django.
11:12 aditsu I used it for a while
11:13 aditsu I'm not really into python, or I'd probably use it more :)
11:13 pdurbin :)
11:13 pdurbin too much significant whitespace?
11:15 aditsu nah, my main beef with python is the dynamic typing
11:16 aditsu I still think it's a very nice language
11:16 pdurbin yeah
11:16 pdurbin sometimes I want dynamic typing. for little scripts and such
11:17 aditsu "somtimes" is ok
11:18 pdurbin for me it's progression
11:18 aditsu uh, "somEtimes" :p
11:18 pdurbin start with bash... getting to complex... switch to python/ruby/perl
11:18 pdurbin too*
11:19 aditsu I often start with java.. unless I know how to do it with a shell one-liner :)
11:27 aditsu I have some helper classes and methods that make things much simpler than they would normally be
11:29 pdurbin it would be nice if Java had a REPL
11:30 aditsu you can use scala for that... kind of :p
11:32 pdurbin I feel like I've heard this but I'm not sure how.
11:32 pdurbin maybe Clojure too
11:59 pulsar i have been using jooq in a project about a year ago.
12:00 pulsar very handy if you want a query builder / criteria api without being forced to use mapped entities
12:01 pulsar (legacy database)
12:01 pulsar on the other hand, if your application is JPA or ORM "driven" - querydsl might be also worth looking at.
12:01 Richard_2340985 joined ##friendlyjava
12:24 mr_lou joined ##friendlyjava
12:33 Richard_2340985 joined ##friendlyjava
13:24 Richard_2340985 joined ##friendlyjava
13:31 aditsu pdurbin: I updated http://phonebookdemo.aditsu.net/phonebook-sources.zip - added (hopefully) all you need to build and run it
13:33 aditsu let me know if you're having problems, and don't be shocked if some dependencies are a bit old :p
13:35 aditsu for method 2 (in the readme file) I could make it work with ant too, I just need to decide what paths to use
15:57 Richard_2340985 joined ##friendlyjava
20:44 pdurbin aditsu: I'll take a look. Thanks!
21:22 pdurbin lots of ivy:retrieve now!
21:23 pdurbin BUILD SUCCESSFUL
23:28 Richard_2340985 joined ##friendlyjava

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

##friendlyjava on freenode