Time |
S |
Nick |
Message |
01:30 |
|
|
arrty joined ##friendlyjava |
02:19 |
|
|
arrty joined ##friendlyjava |
03:16 |
|
|
pdurbin_m joined ##friendlyjava |
03:16 |
|
pdurbin_m |
Vlad Yaroslavlev on Twitter: "Modern comfortable programming language #java https://t.co/CPlD793QSH": https://mobile.twitter.com/vladon/status/659248116768645120 |
09:50 |
|
|
sfisque1 joined ##friendlyjava |
13:31 |
|
|
aditsu joined ##friendlyjava |
14:46 |
|
|
bluezone joined ##friendlyjava |
15:47 |
|
|
arrty joined ##friendlyjava |
17:16 |
|
|
arrty joined ##friendlyjava |
18:20 |
|
pdurbin |
Right now I'm using a command line tool called MSV ( http://guides.dataverse.org/en/4.2/developers/tools.html#msv ) to validate some XML I'm generating against an XML schema to make sure it's valid. I'd rather do this in Java. Any suggestions? |
18:21 |
|
pdurbin |
javax.xml.validation looks promising: http://stackoverflow.com/questions/15732/whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file |
18:22 |
|
sfisque |
i thought the xerxes and xalan libraries shipped with some tools in their sdks |
18:22 |
|
sfisque |
plus NB will validate xml |
18:23 |
|
sfisque |
if you dont need to automate it, you can validate xml inside NB |
18:23 |
|
pdurbin |
I need to automate it. I don't want to export XML that isn't valid according to a schema. |
18:24 |
|
sfisque |
i would check out the full downloads of xerxes and xalan. i believe they have linters among their tools and docs |
18:35 |
|
pdurbin |
yeah, there's a Xerces example in that stack overflow post. I kind of like using the batteries included if I can, though |
19:06 |
|
pdurbin |
ok, the built in way seems to work fine: add method to validate XML against a schema #2579 · IQSS/dataverse80d8c0f - https://github.com/IQSS/dataverse/commit/80d8c0f |
19:06 |
|
pdurbin |
seems a little slow |
19:31 |
|
sfisque |
well it's going to be doing network/filesystem io which is pretty much the slowest thing a program can do |
20:13 |
|
pdurbin |
filesystem in my case. which it does for other tests pretty quickly |
20:13 |
|
pdurbin |
so I think it's the XML validation itself that's slow |
20:14 |
|
sfisque |
yes. validation and xsl transforms are pretty much the slowest things you can do in xml land |
20:15 |
|
pdurbin |
15 seconds added to https://travis-ci.org/IQSS/dataverse/builds/88410542 compared to the previous build |
20:15 |
|
sfisque |
and // xpath queries |
21:07 |
|
|
arrty joined ##friendlyjava |
21:59 |
|
pulsar256 |
man, all this hipster-tech in the past 4 weeks makes me really want compile something now. with types. and proper syntax checking. |
21:59 |
|
pulsar256 |
you guys on gitter? |
23:25 |
|
pdurbin |
pulsar256: you gonna learn you a haskell? |
23:27 |
|
pdurbin |
yeah, I'm gitter |
23:27 |
|
pdurbin |
speaking of types, so is Scala: https://gitter.im/scala/scala |
23:31 |
|
pulsar256 |
wut? noooo! ;) at least not this year. effed up the confuser enough lately. |
23:33 |
|
pdurbin |
pulsar256: too much javascript lately? |
23:33 |
|
pulsar256 |
how is the scala community anyway? feels a bit quiet on my end. |
23:33 |
|
pulsar256 |
yeah, that too. |
23:33 |
|
pulsar256 |
also bdd / testing |
23:34 |
|
pulsar256 |
and plenty of 0.0.xx versioned frameworks in use |
23:34 |
|
pdurbin |
there's a guy at work who's really into scala. some of his slides: http://www.slideshare.net/MichaelBarSinai/invitation-to-scala |
23:35 |
|
pdurbin |
the Scala gitter channel is pretty active |
23:36 |
|
pulsar256 |
quite old slides |
23:40 |
|
pdurbin |
2 years is old?! :) |
23:40 |
|
pulsar256 |
right... too much js. |
23:40 |
|
pdurbin |
I remember it like it was yesterday. |
23:40 |
|
pulsar256 |
the halflife of a hipster-js framework is about 2 weeks |
23:40 |
|
pdurbin |
of course someone had to remind me that Scala has traits |
23:40 |
|
pulsar256 |
so 2 years! pffff |
23:40 |
|
pulsar256 |
:D |
23:41 |
|
pulsar256 |
so does groovy |
23:41 |
|
pulsar256 |
but cant tell if/how they compare |
23:43 |
|
pdurbin |
I'm sort of interested in learning Clojure. |
23:44 |
|
pulsar256 |
i am looking for a itch to scratch using go or rust |
23:44 |
|
pdurbin |
more than Scala anyway. for some reason I'm not particularly interested in learning Groovy right now |
23:44 |
|
pulsar256 |
groovy is nice if you need some sort of scripting functionality in your app. going from java to groovy is effortless |
23:44 |
|
pdurbin |
pulsar256: go create an issue here for a go or rust version: https://github.com/pdurbin/addressbookmvc/issues |
23:45 |
|
pulsar256 |
but it does not itch ;) |
23:45 |
|
pulsar256 |
seriously, i kinda dont like learning frameworks or languages based on a virtual problem. |
23:46 |
|
pdurbin |
pulsar256: well, let's write a bot for this channel then |
23:46 |
|
pulsar256 |
almost itching .... :) |
23:48 |
|
pdurbin |
or a website for this channel? I dunno |
23:49 |
|
pdurbin |
pulsar256: you must have an itch or two |
23:49 |
|
pulsar256 |
nah, must be a real problem. at least from my perspective. |
23:49 |
|
pdurbin |
the world is full of problems |
23:52 |
|
pdurbin |
pulsar256: are there existing Go or Rust projects you could hack on? |
23:52 |
|
pulsar256 |
i guess not |
23:54 |
|
pulsar256 |
https://jaredforsyth.com/2014/03/22/rust-vs-go/ |
23:54 |
|
pulsar256 |
*read* |