Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "akka-http"
-
The documentation of scala akka http may be just gibberish as far as I am concerned. You would think that hooking into the marshalling process (aka de/serialization) would be straight forward, I've dealt with similar problems before and solved it.
I have an object, it should be transformed into a Json and vice versa. Should be easy as pie.
Not with scala and akka-http. The docs tell you how to achieve something in dozen different ways yet lack a complete example. My first custom marshaller I created in a "marshall" package in my! namespace, but it was breaking scala compilation due to some black magic.
It's not clear how when and why marshallers are added, they just somehow are. Why do I have to deal with entity marshallers vs response marshallers. I just want each instance of a certain type to be transformed into a specific Json presentation.
Asking on stackoverflow also only yields in incomplete hints of "just do boargh" presupposing certain knowledge while sounding borderline condescending.
Currently, I just want to burn the project and rebuild it with fucking PHP. Flame all you want, at least I would get things done and the JMS serializer library has decent documentation and it works in an expected way.
Akka-http, combined with Scala, looks from my current rage-driven perspective like a solution worse than the problem. -
There are contractors in office to take out garbage (devices, boxes etc) that we'd put away last week as part of spring cleaning
Now they're doing it on premises ...
Sound of metal, boxes, clutter, breaking this and that. This is quite annoying and hard to bear
And a freaking Monday, why can't they arrange shit over the weekend.
It's no noisy like a (scrap) kabadi shop.
sounds in the background
[bam
bang DING
RRUUMBLE SCRUNCH SCRUUMBLE SCRUUUNCHH
ca-chunk
Chrrrick chrrrick chrrrick chrrrrick
CHUMMA CHUMMA CHUMMA, HUFFT HUFFT FALUMP
gr gr k k grk
clickety-clack
GRRRAKKA KKAKKAKKAKKAKKAKKAKK AKKAKKAKKAKK AKKAKKAKK AKKA KKAKKA AKK
tluck....tlock]
Dark music plays ....
source: http://www.writtensound.com/i -
Why the fuck would you use a Java Optional in your Scala library. As a Scala novice I just spent about 30 minutes wondering why my map function wouldn't compile 😠