Java 9 Gamified hackathon source code

Martijn Verburg martijnverburg at gmail.com
Tue Jul 5 00:31:58 UTC 2016


Hi Richard,

The API for HTTP2 is 'interesting' :-).  Making the PUT request as per the
instructions looks like this:

HttpRequest.create(new URI("http://jozijugdojo.co.za/go/mverburg/jshellput
")).PUT().response().body(HttpResponse.asString());

Note that you have to pass in a HttpResponse.BodyProcessor<T> (in this case
the statically provided asString() method which is a
HttpResponse.BodyProcessor<String>).  A trap for those used to the
traditional (Apache) HttpClient calls.

Onto the next task...




Cheers,
Martijn

On 22 June 2016 at 01:41, Mani Sarkar <sadhak001 at gmail.com> wrote:

> Hi Richard,
>
> We could move the repo to the adopt openjdk repo, if you feel that's where
> it belongs.
>
> I can help you there, if you like.
>
> Cheers,
>
> Mani
>
> On Wed, 22 Jun 2016 07:00 Richard Kolb, <rjdkolb at gmail.com> wrote:
>
>> Hi Mani,
>>
>> This is a github link!
>> We have had demos of jigsaw, but never anything to actually do a hackaton
>> with with.
>>
>> You are more than welcome to link or refork the repository. I see I
>> forked to the Adopt A JSR by mistake.
>>
>> Regards,
>> Richard.
>> On 22 Jun 2016 12:11 AM, "Mani Sarkar" <sadhak001 at gmail.com> wrote:
>>
>>> Really great work, our folks at LJC could use it at the Hackathons.
>>>
>>> We also have this repo: https://github.com/AdoptOpenJDK/jdk9-jigsaw,
>>> any chance of link these together or also pouring some of the goodies from
>>> your repo into this - just an idea, still raw.
>>>
>>> Cheers,
>>> Mani
>>>
>>> On Tue, 21 Jun 2016 at 07:32 Richard Kolb <rjdkolb at gmail.com> wrote:
>>>
>>>> Hi Martijn,
>>>>
>>>> That is a fantastic idea!
>>>> Perhaps you could set up a wiki like the Adopt A JSR wiki that shows
>>>> which
>>>> JUGs are involved in which JEP and where testing is needed ?
>>>>
>>>> As a side note, I posted a question on how to set the JVM arguments on
>>>> the
>>>> child jshell JVM a few months ago on this mailing list (and on a
>>>> weekend).
>>>> Michel Trudeau from Oracle responded and said he would add a feature
>>>> request. A couple of builds later "-R<flag>" was added to jshell.
>>>>
>>>> A special and public thanks to Michel!
>>>>
>>>> regards,
>>>> Richard.
>>>>
>>>> On 20 June 2016 at 21:00, Martijn Verburg <martijnverburg at gmail.com>
>>>> wrote:
>>>>
>>>> > Hi Richard,
>>>> >
>>>> > I've informally asked a few of the leads to highlight any areas of
>>>> Java 9
>>>> > that might need some early focus, should give us some nice future
>>>> direction.
>>>> >
>>>> > I think this is really great work, it would be great if everyone on
>>>> this
>>>> > list can start telling their communities and get the forks and PRs
>>>> coming
>>>> > in!
>>>> >
>>>> > Cheers,
>>>> > Martijn
>>>> >
>>>> > On 20 June 2016 at 18:58, Richard Kolb <rjdkolb at gmail.com> wrote:
>>>> >
>>>> >> Hi Rahman,
>>>> >>
>>>> >> jshell took centre stage with the new http2 client, letsencrypt, and
>>>> >> local variable type inference.
>>>> >> IDEs were not allowed.
>>>> >>
>>>> >> The idea was that your could not really prepare for the hackathon
>>>> and you
>>>> >> needed to complete a step to discover the next step. I could put it
>>>> in
>>>> >> training material, but I think it would be a bit boring ;-)
>>>> >>
>>>> >> All in all there were five steps. This was the leader board
>>>> >> <http://www.meetup.com/Jozi-JUG/photos/27018543/#450751295> after
>>>> the
>>>> >> hackaton.
>>>> >>
>>>> >> regards,
>>>> >> Richard.
>>>> >>
>>>> >> On 20 June 2016 at 19:13, Rahman USTA <rahman.usta.88 at gmail.com>
>>>> wrote:
>>>> >>
>>>> >>> Richard, Very good to gamify learning Java 9. How many challenges
>>>> does
>>>> >>> it have ?
>>>> >>>
>>>> >>> Is it possible to see them in a document? (training/hackathon
>>>> material)
>>>> >>>
>>>> >>> Thanks.
>>>> >>>
>>>> >>> 2016-06-20 19:56 GMT+03:00 Richard Kolb <rjdkolb at gmail.com>:
>>>> >>>
>>>> >>>> Thanks Martijn.
>>>> >>>> If anyone wants to see it online, I have re-enabled it.
>>>> >>>> https://jozijugdojo.co.za/
>>>> >>>>
>>>> >>>>
>>>> >>>> On 20 June 2016 at 15:49, Martijn Verburg <
>>>> martijnverburg at gmail.com>
>>>> >>>> wrote:
>>>> >>>>
>>>> >>>> > Very cool, thanks Richard!
>>>> >>>> >
>>>> >>>> > Cheers,
>>>> >>>> > Martijn
>>>> >>>> >
>>>> >>>> > On 20 June 2016 at 14:21, Richard Kolb <rjdkolb at gmail.com>
>>>> wrote:
>>>> >>>> >
>>>> >>>> >> Hello everyone,
>>>> >>>> >>
>>>> >>>> >> This is the source code for the Java 9 Gamified hackathon
>>>> >>>> >> <http://www.meetup.com/Jozi-JUG/events/229688441/> that was
>>>> done on
>>>> >>>> the
>>>> >>>> >> 4'th of June 2016 at the Jozi-JUG.
>>>> >>>> >> https://github.com/Adopt-a-JSR/gamified-java9-hackathon
>>>> >>>> >>
>>>> >>>> >> The app works on Java 9 and exposes HTTP 2 using Springboot and
>>>> >>>> Undertow.
>>>> >>>> >>
>>>> >>>> >> It's all under the "Unlicense <http://unlicense.org/>" so
>>>> please
>>>> >>>> feel
>>>> >>>> >> free
>>>> >>>> >> to do whatever you want with it.
>>>> >>>> >>
>>>> >>>> >> regards,
>>>> >>>> >> Richard.
>>>> >>>> >>
>>>> >>>> >
>>>> >>>> >
>>>> >>>>
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> --
>>>> >>> Rahman USTA
>>>> >>> Istanbul JUG
>>>> >>> https://github.com/rahmanusta <http://www.kodcu.com/>
>>>> >>>
>>>> >>
>>>> >>
>>>> >
>>>>
>>> --
>>> @theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
>>> <http://neomatrix369.wordpress.com/>**  |  *LJC Associate & LJC
>>> Advocate (@adoptopenjdk & @adoptajsr programs)
>>> *Meet-a-Project - *MutabilityDetector
>>> <https://github.com/MutabilityDetector>*  |  **Bitbucket
>>> <https://bitbucket.org/neomatrix369>* * |  **Github
>>> <https://github.com/neomatrix369>* * |  **LinkedIn
>>> <http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b>*
>>> *Come to Devoxx UK 2016:* http://www.devoxx.co.uk/
>>>
>>> *Don't chase success, rather aim for "Excellence", and success will come
>>> chasing after you!*
>>>
>> --
> @theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
> <http://neomatrix369.wordpress.com/>**  |  *LJC Associate & LJC Advocate
> (@adoptopenjdk & @adoptajsr programs)
> *Meet-a-Project - *MutabilityDetector
> <https://github.com/MutabilityDetector>*  |  **Bitbucket
> <https://bitbucket.org/neomatrix369>* * |  **Github
> <https://github.com/neomatrix369>* * |  **LinkedIn
> <http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b>*
> *Come to Devoxx UK 2016:* http://www.devoxx.co.uk/
>
> *Don't chase success, rather aim for "Excellence", and success will come
> chasing after you!*
>


More information about the adoption-discuss mailing list