|
MALE SHOEGAZE posted:at my startup our architecture is microservices and a message queue. UPDATE: I posted the "you dont need microservices" article (https://codeahoy.com/2017/08/19/yagni-cargo-cult-and-overengineering-the-planes-wont-land-just-because-you-built-a-runway-in-your-backyard/) in my teams slack and so far it's been met with deafening silence.
|
# ? Aug 21, 2017 15:08 |
|
|
# ? May 26, 2024 09:44 |
|
tps: spent literally the entire work day stepping through spray json internals in intellij's debugger
|
# ? Aug 21, 2017 17:29 |
|
gonadic io posted:tps: spent literally the entire work day stepping through spray json internals in intellij's debugger my number one complaint with scala is that library code is generally not fun to understand do you use akka? how do you like it? "erlang on the jvm" sounds like a decent enough idea but the framework is heavy-duty enough that I couldn't really get a feel for it in the afternoon i spent playing with it
|
# ? Aug 21, 2017 17:31 |
|
MALE SHOEGAZE posted:my number one complaint with scala is that library code is generally not fun to understand we use akka-http, but i have absolutely no idea about how its internals work or model erlang. akka-http is a decent http framework, even if the turing-complete nature of its routes files (as opposed to play, which has static routes) can be annoying at times. p.s. fun scala quiz (this is what i spent my day solving in our stack) - what does the following print when you sbt run it? code:
|
# ? Aug 21, 2017 17:47 |
|
MALE SHOEGAZE posted:UPDATE: I posted the "you dont need microservices" article (https://codeahoy.com/2017/08/19/yagni-cargo-cult-and-overengineering-the-planes-wont-land-just-because-you-built-a-runway-in-your-backyard/) in my teams slack and so far it's been met with deafening silence. Why isn't Mongo run as a micro service?
|
# ? Aug 21, 2017 17:57 |
|
gonadic io posted:tps: spent literally the entire work day stepping through spray json internals in intellij's debugger spray is the one that uses implicits for serializers right iirc it's slower than everything else out there
|
# ? Aug 21, 2017 18:02 |
|
FamDav posted:spray is the one that uses implicits for serializers right yes, yes and also harder to debug. trust me on that last one.
|
# ? Aug 21, 2017 18:10 |
|
gonadic io posted:we use akka-http, but i have absolutely no idea about how its internals work or model erlang. akka-http is a decent http framework, even if the turing-complete nature of its routes files (as opposed to play, which has static routes) can be annoying at times. lol i cant even remember how to run this without setting up an entire project. i'm guessing this prints null and those vals need to be lazy? DONT THREAD ON ME fucked around with this message at 18:17 on Aug 21, 2017 |
# ? Aug 21, 2017 18:12 |
|
MALE SHOEGAZE posted:lol i cant even remember how to run this without setting up an entire project. i'm guessing this prints null and those vals need to be lazy? yes and yes. and i didn't either, i used "sbt new scala/scala-seed.g8" which sets up the project for you. then just sbt run.
|
# ? Aug 21, 2017 18:38 |
|
gonadic io posted:yes and yes. yeah, i tango'd with this same issue. using lazy to force initialization is totally counterintuitive.
|
# ? Aug 21, 2017 18:39 |
|
interestingly whilecode:
code:
code:
|
# ? Aug 21, 2017 18:41 |
|
is that a dynamic scope for traits
|
# ? Aug 21, 2017 18:44 |
|
https://stackoverflow.com/questions/1990948/what-is-the-difference-between-self-types-and-trait-subclasses god scala is a mess
|
# ? Aug 21, 2017 19:00 |
|
gonadic io posted:interestingly while oh, I didn't realize that the issue only occurred with self types. that's...strange.
|
# ? Aug 21, 2017 19:00 |
|
scala is for java developers who want to pretend they aren't using java.
|
# ? Aug 21, 2017 19:00 |
|
inside of scala there are 3 perfectly good languages trying to get out
|
# ? Aug 21, 2017 19:02 |
|
i like it when a few pages go by and i don't even understand the class of error being discussed
|
# ? Aug 21, 2017 19:02 |
|
Shaggar posted:scala is for java developers who want to pretend they aren't using java. yes. 100%. e: note that this is an advantage of scala, not a disadvantage gonadic io fucked around with this message at 19:16 on Aug 21, 2017 |
# ? Aug 21, 2017 19:12 |
|
MALE SHOEGAZE posted:inside of scala there are 3 perfectly good languages trying to get out
|
# ? Aug 21, 2017 19:13 |
|
honestly with the power of implicits scala is arbitrarily many languages trying to get out
|
# ? Aug 21, 2017 19:24 |
|
JawnV6 posted:i like it when a few pages go by and i don't even understand the class of error being discussed Same, happens to us all. I don't really follow/care about the actor/general/threading stuff for example, I just write parmap instead of map. MALE SHOEGAZE posted:honestly with the power of implicits scala is arbitrarily many languages trying to get out I'm the consistency of "x shouldBe y" and "x should not be y" ie the most basic scala-test constructs
|
# ? Aug 21, 2017 20:08 |
|
https://twitter.com/LuigiThirty/status/899728868772380673 yaaaaaaay I did it it works
|
# ? Aug 21, 2017 21:44 |
|
Shaggar posted:scala is for java developers who want to pretend they aren't using java. shocking that people who have to write in that terrible language desperately look for an escape.
|
# ? Aug 21, 2017 21:46 |
|
Luigi Thirty posted:https://twitter.com/LuigiThirty/status/899728868772380673 Nice work! I'm flashing back to my old QBASIC days when I was a kid. I think I gave up just at this point, when I discovered it couldn't do filled polygons.
|
# ? Aug 21, 2017 23:08 |
|
akadajet posted:shocking that people who have to write in that terrible language desperately look for an escape. java is good. scala is bad and for bad developers who want to use a bad language, but don't want to go through all the headaches of switching to a p-lang
|
# ? Aug 22, 2017 00:06 |
|
Doom Mathematic posted:Nice work! I'm flashing back to my old QBASIC days when I was a kid. I think I gave up just at this point, when I discovered it couldn't do filled polygons. the Amiga blitter can fill quads if you set it up right but it’s kinda weird, you have to blit the polygon to an empty buffer and then copy it to your display buffer because it just fills from left to right until it hits an on pixel. the fill rate’s pretty high too.
|
# ? Aug 22, 2017 00:10 |
|
Shaggar posted:java is good. scala is bad and for bad developers who want to use a bad language, but don't want to go through all the headaches of switching to a p-lang correct
|
# ? Aug 22, 2017 00:33 |
|
scala is c++ for the jvm but worse because people could have known better. java fixed the diamond of death, and as you can see, scala brought it back
|
# ? Aug 22, 2017 00:39 |
|
trying to figure out why my camera orientation isn't being applied to my cube right, this is a direct port from my C++ codecode:
but throw the camera transformation in and the cube is translated AND rotating AND revolving around the origin??? the cube is at (0,0,0) and the world translation is just (0,0,0) for now too. does CameraTransformation not go between Perspective and WorldTranslation in this setup?
|
# ? Aug 22, 2017 03:48 |
|
Shaggar posted:java is good. scala is bad and for bad developers who want to use a bad language, but don't want to go through all the headaches of switching to a p-lang this. also holds for sbt vs maven. smdh if you see the words "build system that can use the full flexibility of [language] code" and do anything other than run away as fast as you can
|
# ? Aug 22, 2017 18:40 |
|
Soricidus posted:this. also holds for sbt vs maven. smdh if you see the words “build system that can use the full flexibility of [language] code” and do anything other than run away as fast as you can I can admit there was a time when I would’ve thought "more powerful build system" could only be a good thing. I’ve come around, but I had to learn
|
# ? Aug 23, 2017 03:00 |
|
ugh i totally forgot how to implement a rotation matrix for the camera I have camera translation working but not rotation for some reason
|
# ? Aug 23, 2017 05:04 |
|
make a comment on a CR make the same comment on a CR, link a doc I newly wrote detailing how to do the thing make the same comment, again, and link to the doc again it's exhausting. doesn't really fit the thread I guess but ugh
|
# ? Aug 23, 2017 07:23 |
|
jfc I'm trying to use the api for this new chat thing and it's documented in yaml that you have to use "swagger" to read which can only be used locally if you have node.js running and install it via docker like I know that all vendor api docs are terrible but this is wrapping a turd in a second turd made of javascript or something
|
# ? Aug 23, 2017 17:36 |
|
holy gently caress the css file for the Web interface is 1.8mb alongside 8mb of javascript and I think 4mb of fonts total data received on load:26mb for a glorified irc with no functionality
|
# ? Aug 23, 2017 17:56 |
|
Powerful Two-Hander posted:holy gently caress the css file for the Web interface is 1.8mb alongside 8mb of javascript and I think 4mb of fonts Web "development"
|
# ? Aug 23, 2017 18:05 |
|
Powerful Two-Hander posted:jfc I'm trying to use the api for this new chat thing and it's documented in yaml that you have to use "swagger" to read which can only be used locally if you have node.js running and install it via docker swagger, because soap wasn't bad enough the first time around.
|
# ? Aug 23, 2017 18:08 |
|
Powerful Two-Hander posted:it's documented in yaml that you have to use "swagger" to read which can only be used locally if you have node.js running and install it via docker wtf do you mean. swagger is a schema format, not a software tool. that's like saying "it's documented in xml that you have to use wsdl to read"
|
# ? Aug 23, 2017 18:49 |
|
NihilCredo posted:wtf do you mean. swagger is a schema format, not a software tool. that's like saying "it's documented in xml that you have to use wsdl to read" it was the swagger.io editor itself. it did work online but pasting 1500 lines of yaml into it caused the browser to go into a bit of a meltdown anyway I've given up on this now as to use the rest api you have to have a key store service set up to call to to get a session (plus another call to another endpoint to auth it) and there is zero information on whether this actually exists internally or not. tbh i think if your messaging platform is so complicated that your own docs can't actually explain how to just do a hello world you've probably done something wrong
|
# ? Aug 23, 2017 18:59 |
|
|
# ? May 26, 2024 09:44 |
|
lol the whole point of the Swagger format is so you can deploy documentation real easy, like trivially build out a website of documentation, but instead they just poo poo out the config and tell you you're on your own? just lol.
|
# ? Aug 23, 2017 20:52 |