[SMW-devel] Query result rewrite

2013-10-24 Thread Jeroen De Dauw
Hey,

While working on my dev workshop for SMWCon, I noticed it is currently
rather impossible to write a sane unit test for a result format. The
reasons for this are that the result object, SMWQueryResult and the objects
it is composed of, contain a ton of stuff not relevant to those tests,
including database access to get the actual results.

I figured it'd be good to have a cleaner interface that can be used by new
code, and demonstrated in the workshop. So I'm now working on creating a
fresh implementation of the result objects, that will be available as an
alternative to the current way of doing things to result printer authors.
In other words, this will not be a compatibility breaking change, the
current approach will remain usable for the foreseeable future.

This is just a heads up I'm going to work on this, no real work has
happened yet. I'll be linking the code here as soon as there is something
substantial to look at.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil. ~=[,,_,,]:3
--
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Query result rewrite

2013-10-24 Thread Yaron Koren
Well, yes, that's what I meant - though I guess it depends on (a) how
likely this new code is to stay in SMW in its current form, (b) when it
would be released as part of a stable version, and (c) how different this
new interface is from the current one. But my vote would still be to teach
the old thing, regardless. Just my opinion, though.

-Yaron


On Thu, Oct 24, 2013 at 9:36 PM, Jeroen De Dauw jeroended...@gmail.comwrote:

 This will exist when I give the tutorial. Are you saying that it should be
 in a  released SMW version first?

 Sent from my HTC one X.




-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Query result rewrite

2013-10-24 Thread Jeroen De Dauw
Hey,

The point of this workshop is not to teach people SMW interfaces. The
amount of ground that can be covered in a one hour workshop aimed at
beginners is rather small. So however this is done, people will still not
know nearly all interfaces. So even if it was the case that this was likely
to change, which it is not, I'd not see it make much of a difference.
People still get to learn the workflow and they still get to learn how to
find things out while creating an SMW extension, which is the whole point.

If you have a suggestion for something that is not a result format that
could be created as part of the workshop, and that interfaces with code
that does not prevent writing tests for the new code, then I'd be happy to
hear about it. There is the Ask library, though that is likely to abstract
for much of the audience.

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil. ~=[,,_,,]:3
--
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Query result rewrite

2013-10-24 Thread Yaron Koren
Hi,

Well, you make a strong case. And no, I think doing a result format makes a
lot of sense. Good luck!

-Yaron


On Thu, Oct 24, 2013 at 10:17 PM, Jeroen De Dauw jeroended...@gmail.comwrote:

 Hey,

 The point of this workshop is not to teach people SMW interfaces. The
 amount of ground that can be covered in a one hour workshop aimed at
 beginners is rather small. So however this is done, people will still not
 know nearly all interfaces. So even if it was the case that this was likely
 to change, which it is not, I'd not see it make much of a difference.
 People still get to learn the workflow and they still get to learn how to
 find things out while creating an SMW extension, which is the whole point.

 If you have a suggestion for something that is not a result format that
 could be created as part of the workshop, and that interfaces with code
 that does not prevent writing tests for the new code, then I'd be happy to
 hear about it. There is the Ask library, though that is likely to abstract
 for much of the audience.

 Cheers

 --
 Jeroen De Dauw
 http://www.bn2vs.com
 Don't panic. Don't be evil. ~=[,,_,,]:3
 --




-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Query result rewrite

2013-10-24 Thread James HK
Hi,

+1

This last time I had to write a unit test for the table format, I had
to bit my hand off to get some sane results.

If you can make it in time, don't show them old interface as this
one is not going to last and it doesn't improve one's understanding in
how to interact with a query format or what that matter with the
result itself.

Cherrs

On 10/25/13, Jeroen De Dauw jeroended...@gmail.com wrote:
 Hey,

 While working on my dev workshop for SMWCon, I noticed it is currently
 rather impossible to write a sane unit test for a result format. The
 reasons for this are that the result object, SMWQueryResult and the objects
 it is composed of, contain a ton of stuff not relevant to those tests,
 including database access to get the actual results.

 I figured it'd be good to have a cleaner interface that can be used by new
 code, and demonstrated in the workshop. So I'm now working on creating a
 fresh implementation of the result objects, that will be available as an
 alternative to the current way of doing things to result printer authors.
 In other words, this will not be a compatibility breaking change, the
 current approach will remain usable for the foreseeable future.

 This is just a heads up I'm going to work on this, no real work has
 happened yet. I'll be linking the code here as soon as there is something
 substantial to look at.

 Cheers

 --
 Jeroen De Dauw
 http://www.bn2vs.com
 Don't panic. Don't be evil. ~=[,,_,,]:3
 --


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel