|
my homie dhall posted:Im not sure I buy that theres a significant difference between APIs for interactive vs non-interactive applications as its not like the user is interacting directly with the API. presumably you own the frontend and thus you own the way the frontend interacts with the backend. an example of an interactive use is html responses, with links and forms, rendered by a browser. the user is literally interacting with the api an example of a non-interactive use is pulling hardcoded keys out of json responses at hardcoded urls (if that was already clear and you maintain what you say, then fair enough!)
|
# ? Aug 29, 2021 15:13 |
|
|
# ? Apr 25, 2024 14:39 |
|
the reason why the client specifies their schema came to be in the first place was to effectively manage what clients were actually using in the first place so you could know what could be changed or removed. you could build this into anything then you get the and lets use this to give clients deep control over how they query the backend part and oops its actually bad
|
# ? Aug 29, 2021 20:07 |
|
Clients exist to give me money, not to tell me what to make
|
# ? Aug 29, 2021 21:08 |
|
ikanreed posted:Clients exist to give me money, not to tell me what to make
|
# ? Aug 29, 2021 21:11 |
|
in 10 years of developing I have yet to encounter a rest api that is much more than http endpoints for sql tables. and that is poo poo for making a frontend app. GraphQL has allowed me to force backend developers to provide data in a form that much better represents our business objects. and as stated before, it gets rid of so much promise-bullshit and juggling multiple requests that it allows me to move much much faster. currently we have a Java backend being the GraphQL server and it works great, at my last job we set up a nodejs GraphQL BFF that us frontend developers maintained and doing that was so much better than what wed been doing before. if I had to go somewhere with out GraphQL and do frontend stuff Id setup a BFF day 1. (it really shines with typescript and generated types from the schema)
|
# ? Aug 29, 2021 22:40 |
|
If you DB tables are not matching business entities, then you may want to just rethink the DB? Or, idk, learn to use a view? GraphQL doesn't add anything other than magical random latencies, and sad attempts to limit that.
|
# ? Aug 29, 2021 22:55 |
|
I mean, if "front end developers" would stop insisting on using idiot platforms and just used the MVC pattern then you wouldn't have this problem. My database represent s my models, my view renders them and my controller routes requests between them. you get consistency and binding and you can even pretend you're using a rest API because you can serialise or deserialise from/to your model 'emit event', 'update DOM' they have played us for absolute fools
|
# ? Aug 29, 2021 23:02 |
|
Powerful Two-Hander posted:I mean, if "front end developers" would stop insisting on using idiot platforms and just used the MVC pattern then you wouldn't have this problem. My database represent s my models, my view renders them and my controller routes requests between them. you get consistency and binding and you can even pretend you're using a rest API because you can serialise or deserialise from/to your model i also agree django is the best web framework
|
# ? Aug 29, 2021 23:30 |
|
zokie posted:in 10 years of developing I have yet to encounter a rest api that is much more than http endpoints for sql tables. and that is poo poo for making a frontend app. The trick is I'm too lazy to find a DBC that works with my client application framework, so gently caress you and give me my shallow maintenance headache wrapper.
|
# ? Aug 29, 2021 23:37 |
|
zokie posted:in 10 years of developing I have yet to encounter a rest api that is much more than http endpoints for sql tables. and that is poo poo for making a frontend app. This is what I don't get. What about graphQL "forced backend developers to provide data in a form that better represents business objects"? GraphQL doesn't have any features that do that, but maybe you used "GraphQL" to mean "actually thinking about the API design" which I feel like a lot of my coworkers do too.
|
# ? Aug 30, 2021 05:04 |
|
stack up the joins to stack up the figgies
|
# ? Aug 30, 2021 05:17 |
|
90% response time: 3.5 figgies
|
# ? Aug 30, 2021 05:21 |
|
cool av posted:This is what I don't get. What about graphQL "forced backend developers to provide data in a form that better represents business objects"? GraphQL doesn't have any features that do that, but maybe you used "GraphQL" to mean "actually thinking about the API design" which I feel like a lot of my coworkers do too. when I started here they were using GraphQL but the schema made me wanna puke. I made my own version and then booked a meeting with all the developers were I showed them both versions in a visualizer theirs barely looked like a graph at all. then I showed them how I could use code generation to get types and with those types I could develop against mocked data using storybooks so we could decouple a lot of frontend and backend development while still feeling safe
|
# ? Aug 30, 2021 06:12 |
|
zokie posted:when I started here they were using GraphQL but the schema made me wanna puke. I made my own version and then booked a meeting with all the developers were I showed them both versions in a visualizer theirs barely looked like a graph at all. and then they stood and clapped? (I hope, that sounds pretty cool)
|
# ? Aug 30, 2021 06:26 |
|
floatman posted:I don't know about graphql. In my experience graphql is a technical solution to a social problem. That's not always a bad thing, but often it just papers over a lot of other dysfunctions. Zaxxon fucked around with this message at 06:59 on Aug 30, 2021 |
# ? Aug 30, 2021 06:57 |
|
We did some developer experience research and none of the devs we spoke to preferred consuming graphql APIs over a "rest" one with an openapi spec. (I say "rest" because other than like html web pages I'm not sure anything does it as originally intended) Since neither the consumers nor the people building it (us) wanted graphql we decided not to use it.
|
# ? Aug 30, 2021 07:31 |
|
Zaxxon posted:In my experience graphql is a technical solution to a social problem. That's not always a bad thing, but often it just papers over a lot of other dysfunctions. Yeah, "a technical solution to a social problem" is a bit of a thought-terminating clich, but there are times when a social solution is legitimately not possible. Someone brought up the example of a Github-scale public API and it's a great one, are you going to establish healthy working relationships with thousands of podunk IT companies all over the world? Not going to happen, but pouring thousands of engineer man-hours into locking down and performance-tuning a set of graphgql specs, while challenging, is at least doable.
|
# ? Aug 30, 2021 09:03 |
i feel like im missing something extremely obvious. say im setting up dynamic jobs for 500 tables with pyspark for a remote cluster. does poo poo like managed big cloud spark clusters expect me to generate 500 text files with python scripts and submit them to the cluster instance i rent? that seems to be the preferred option, but isnt this complete degeneracy?
|
|
# ? Aug 30, 2021 18:52 |
wait no never mind, im the op of this thread. i just need to specify the correct cluster type to remote into it like a normal person. gently caress all the technical writers involved in the documentation i saw though
|
|
# ? Aug 30, 2021 19:03 |
|
cinci zoo sniper posted:but isnt this complete degeneracy? new thread title
|
# ? Aug 30, 2021 19:08 |
|
Achmed Jones posted:new thread title
|
# ? Aug 30, 2021 19:59 |
|
Achmed Jones posted:new thread title
|
# ? Aug 30, 2021 20:09 |
|
lol i spoke too soon re: soap, i'm trying to set up another service consumer and this time it's not working and the error message is pretty much "go gently caress yourself"
|
# ? Aug 30, 2021 23:25 |
|
you dropped the soap
|
# ? Aug 30, 2021 23:40 |
|
raminasi posted:lol i spoke too soon re: soap, i'm trying to set up another service consumer and this time it's not working and the error message is pretty much "go gently caress yourself" yeah that's pretty much the soap experience. really wonderful when it works and a nightmare when it doesn't.
|
# ? Aug 31, 2021 02:28 |
|
my only experience with graphql is through working with zuck's fascist gently caress and suck directly and if that's what you all want instead of openAPI docs go nuts emblematic of like code:
|
# ? Aug 31, 2021 16:12 |
|
wtf share bear nms that poo poo
|
# ? Aug 31, 2021 16:26 |
|
Share Bear posted:
lmao, task failed successfully
|
# ? Aug 31, 2021 18:51 |
|
Kernel Sanders posted:has anyone here used onion/hexagonal/“clean”[1] architecture? at face value it makes a lot of sense and coupled with the mediator pattern makes for easy writing of very small and focused chunks of code which are easily testable. We're in a tech migration project large parts of which is copy+pasting quite a bit of java code into a new codebase and one of the parts where we go beyond c+p is decoupling things into onion style adapters that are only allowed to communicate via the domain/core/thing-in-the-middle. I guess it's more elegant than before, and it should assist us to change/re-think the DB schema in the future without touching the core (persistence is one adapter), which is one of the things we might want to do. Ofc the interfaces in the domain need to be well tested for this cause that's how you actually ensure the contract does not get broken. Our senior (I'm noob) gets all giddy like "we could switch our messaging from JMS to Kafka with little new effort" when obviously that's never gonna happen. If you're in java, use ArchUnitTest. It allows you to specify a unit test that fails when you violate your architectural pattern. Pretty cool, at this point I think this whole architecture thing is worthless without some thing slapping you when you ignore it.
|
# ? Aug 31, 2021 22:30 |
|
CarForumPoster posted:lmao, task failed successfully deranged
|
# ? Sep 1, 2021 00:30 |
|
today i was trying to work out why some log messages were getting mixed together line-by-line in 20yo common code. was expecting to find that there were no mutexes or other synch and i'd have to add it, ho hum turns out, there is a mutex, but... well C++ code:
|
# ? Sep 1, 2021 01:20 |
|
Needs a comment like //Release mutex for each character for performance
|
# ? Sep 1, 2021 01:22 |
|
|
# ? Sep 1, 2021 01:31 |
|
Ocean of Milk posted:Our senior (I'm noob) gets all giddy like "we could switch our messaging from JMS to Kafka with little new effort" when obviously that's never gonna happen. I have no experience with either but I'm gonna guess that either the non-code-related bits will be far more relevant to the success of that transition, or it's completely irrelevant in which case that transition will never happen (as you suspect) Ciaphas posted:today i was trying to work out why some log messages were getting mixed together line-by-line in 20yo common code. was expecting to find that there were no mutexes or other synch and i'd have to add it, ho hum amazing
|
# ? Sep 1, 2021 02:20 |
|
I'm late for yaml-chat, but every time I've used yaml for anything it's because some other team we have to work with requires it. and every single time it's like yaml, but one string is named "query" and it's where you put a giant sql query. or yaml, but with string named "command" and that's where you put a bash script. etc and it's like cool, now my ide can't display or properly auto-format this query/script and none of our automated tooling can maintain it, thanks. also the syntax is poo poo and I hate it
|
# ? Sep 1, 2021 02:52 |
|
i've avoided using many technologies simply due to their yaml configuration format
|
# ? Sep 1, 2021 03:07 |
|
we solved that issue in our gitlab by having the yml file call a shell script that it fetched with git
|
# ? Sep 1, 2021 03:08 |
|
duz posted:we solved that issue in our gitlab by having the yml file call a shell script that it fetched with git I dont know if this is better or worse than having to write the shell script as yaml array elements
|
# ? Sep 1, 2021 03:21 |
|
Share Bear posted:
trying to black box analyze failures in the salesforce webapp is so incredibly annoying because all their poo poo is like this and there are TONS of requests then even if you do find the one that failed its stupid JSON body doesn't actually provide any useful information, it's just like "error: ref code klgjldfgdgdfgdlj" that you have to have some admin go and look up in the log that actually contains useful info this is extremely nonsense for an application designed around allowing middle management types to write their own mini-applications in (or rather, contract out writing their applications at obscene rates) with the end result being that everything is extremely brittle and error-prone
|
# ? Sep 1, 2021 06:24 |
|
|
# ? Apr 25, 2024 14:39 |
|
Illusive gently caress Man posted:I'm late for yaml-chat, but every time I've used yaml for anything it's because some other team we have to work with requires it. and every single time it's like get a better ide
|
# ? Sep 1, 2021 10:49 |