TouK na warsztatach z Gita

W najbliższą sobotę odbędą się Git kata, warsztaty doskonalenia pracy z Gitem, popularnym systemem zarządzania kodem. Jednym z mentorów będzie Jakub Nabrdalik z TouK.

W najbliższą sobotę odbędą się Git kata, warsztaty doskonalenia pracy z Gitem,  popularnym systemem zarządzania kodem. Jednym z mentorów będzie Jakub Nabrdalik z TouK.

Kuba jest jednym z dziesięciu mentorów, pod okiem których uczestnicy imprezy na konkretnych przykładach będą poznawać tajniki Gita. Zaplanowane jest 48 czterdziestominutowych kat (siedem równoległych w jednym bloku godzinowym).

Zagadnienia, które poruszy Jakub:

11:30 Configs, handful aliases, other tips & tricks
12:20 Manipulating commits with amend and cherry-pick
14:50 Interactive rebase
15:40  Configs, handful aliases, other tips & tricks
16:30  Interactive rebase
17:20 Git internals

Szczegółowy program i opis warsztatów dostępny jest tutaj.

Git kata odbędą się w najbliższą sobotę 23 marca o 11:00 w GammaFactory (Warszawa, ul. Hoża 51). Udział w wydarzeniu jest bezpłatny, ale wymagana jest rejestracja.

You May Also Like

OSGi Blueprint visualization

What is blueprint?Blueprint is a dependency injection framework for OSGi bundles. It could be written by hand or generated using Blueprint Maven Plugin. Blueprint file is only an XML describing beans, services and references. Each OSGi bundle could hav...

Grails render as JSON catch

One of a reasons your controller doesn't render a proper response in JSON format might be wrong package name that you use. It is easy to overlook. Import are on top of a file, you look at your code and everything seems to be fine. Except response is still not in JSON format.

Consider this simple controller:

class RestJsonCatchController {
def grailsJson() {
render([first: 'foo', second: 5] as grails.converters.JSON)
}

def netSfJson() {
render([first: 'foo', second: 5] as net.sf.json.JSON)
}
}

And now, with finger crossed... We have a winner!

$ curl localhost:8080/example/restJsonCatch/grailsJson
{"first":"foo","second":5}
$ curl localhost:8080/example/restJsonCatch/netSfJson
{first=foo, second=5}

As you can see only grails.converters.JSON converts your response to JSON format. There is no such converter for net.sf.json.JSON, so Grails has no converter to apply and it renders Map normally.

Conclusion: always carefully look at your imports if you're working with JSON in Grails!

Edit: Burt suggested that this is a bug. I've submitted JIRA issue here: GRAILS-9622 render as class that is not a codec should throw exception