|
I picked up a client who is using Parse, which I didn't even know still existed. I don't have access to the host, it looks like you can only make database schema changes through a web portal? And then there's this gem on the one-page Official Parse Server Guidequote:Join tables are resolved in memory, there is no performance improvements using Postgres over MongoDB for relations or pointers.
|
# ? May 1, 2020 19:23 |
|
|
# ? Jun 3, 2024 22:09 |
|
DELETE CASCADE posted:the xsd
|
# ? May 1, 2020 20:02 |
|
if u have an xml that doesn't have an xsd you can create an xsd for it and then use that to generate your classes. the only problem would be if they add elements or attributes later on you'd need to add those by regenerating the xsd and classes.
|
# ? May 1, 2020 20:05 |
|
somehow i don't think trying to back-generate the xsd for the entire websphere configuration model would be very successful
|
# ? May 1, 2020 20:15 |
|
if y'all think xml is bad you should check out edi
|
# ? May 1, 2020 20:33 |
|
websphere almost certainly has xsds if its something that's part of websphere.
|
# ? May 1, 2020 20:33 |
|
I did not know this, certainly makes the network stack fun, https://twitter.com/ID_AA_Carmack/status/1256303827264962560
|
# ? May 1, 2020 20:35 |
|
the talent deficit posted:if y'all think xml is bad you should check out edi x12 isn't really human readable, but it has some useful concepts that xml doesn't like transactional data so you can reliably load individual sections of a file even when other sections fail. you can certainly build those on top of xml, but they're a core of x12/edi
|
# ? May 1, 2020 20:36 |
|
xsdeez nutz
|
# ? May 1, 2020 20:44 |
|
Shaggar posted:if u have an xml that doesn't have an xsd you can create an xsd for it and then use that to generate your classes. lmao this is the worst idea ever
|
# ? May 1, 2020 20:44 |
|
its better than manually parsing xml
|
# ? May 1, 2020 20:45 |
|
Wheany posted:here is my xml parser for the above: /<name>([^<]*)<\/name>/.exec(input) I just threw up a bit in my mouth.
|
# ? May 1, 2020 20:52 |
|
Shaggar posted:x12 isn't really human readable, but it has some useful concepts that xml doesn't like transactional data so you can reliably load individual sections of a file even when other sections fail. x12 would be fine if x12 were the be-all and end-all of EDI, or if companies actually stuck to (any) spec. EDI is all of the problems of XML in a set of lesser known formats.
|
# ? May 1, 2020 21:01 |
|
Shaggar posted:its better than manually parsing xml even better is just putting the xml in the trash where it belongs
|
# ? May 1, 2020 22:25 |
ratbert90 posted:I just threw up a bit in my mouth. Shaggar posted:its better than manually parsing xml
|
|
# ? May 1, 2020 22:34 |
|
Shaggar posted:websphere almost certainly has xsds if its something that's part of websphere. i checked lmao, no one could find them
|
# ? May 1, 2020 22:36 |
|
Carthag Tuek posted:lmao this is the worst idea ever Shaggar posted:its better than manually parsing xml
|
# ? May 1, 2020 22:43 |
|
My ex-team lead decided to implement rotating ssh keys on the devices out in the field because I’m the 3rd employee to leave and they are worried that ex-employees could potentially use the field devices to get into the network. He has bricked one of them on accident. I advocated for a VPN for all of our services and devices for over a year which they kept saying was too much to do, but apparently writing scripts to implement rotating keys on a daily basis for 500 field units and a bunch of servers is not too much work. What’s even better is they aren’t changing the keys to the gitlab runners.
|
# ? May 1, 2020 22:59 |
|
i tried generating xsds from our xml once and it was unusable. because our xml is horrifying
|
# ? May 1, 2020 23:10 |
|
Bloody posted:i tried generating xsds from our xml once and it was unusable. because xml is horrifying Fixed that for you.
|
# ? May 1, 2020 23:15 |
|
nah. our data model is a clusterfuck
|
# ? May 1, 2020 23:33 |
|
born to query data model is a gently caress join em all 1989 i am sql man 410,757,864,530 rows returned
|
# ? May 1, 2020 23:50 |
|
more like DELETE CASCADE posted:born to interop
|
# ? May 2, 2020 00:04 |
|
i think we can extend this born to embed pointer is a gently caress fork() em all 1989 i am c man 410,757,864,530 SIGSEGVS
|
# ? May 2, 2020 00:46 |
|
extensible meme language
|
# ? May 2, 2020 02:10 |
|
xml is fine. json is the format for the poorly educated wannabe web "programmer"
|
# ? May 2, 2020 02:49 |
|
born to REST number is a gently caress eval em all 1989 i am json man 410,757,864,530 dead browser tabs
|
# ? May 2, 2020 03:25 |
|
Nomnom Cookie posted:born to REST
|
# ? May 2, 2020 03:43 |
|
CRIP EATIN BREAD posted:xml is fine. any time i hear someone call themselves a "web developer" i only hear "clown" and to date it hasn't let me down
|
# ? May 2, 2020 06:49 |
|
Ciaphas posted:i think we can extend this usually not ok to post an entire signature block but I’ll make an exception in your case
|
# ? May 2, 2020 07:22 |
|
I really like GraphQL, it’s actually great. We used it at my last job, and once you stop using it like REST in the front end (don’t hide your queries deep in components, but have them in page components) it gets really awesome. Not having a dependency on backend programmers to add any stuff already in the schema to a query is really liberating. We actually implemented a “BFF” graphql using node on top of the backend rest api. Which felt weird in the beginning, but once I realized that I would never have to do multiple fetches and stitch together the result of a bazillion promises I just stopped worrying and embraced GraphQL. It’s like an ORM for APIs, but good because you expose the schema and have to implement the hard parts that ORMs gently caress up. And GraphQL does the tedious bullshit. Now at my new job they also “use” GraphQL, only instead of having proper edges not related objects they just expose some foreign key property. So it’s basically useless. Looking at the schema in a visualizer shows a root query node with 4 queries, one of them has another node attached. And one of those queries was actually a mutation. Luckily the team responded positively when I showed them how wrong everything was. Still a bit worrying how you can decide to start to use a new technology and make almost negative effort to understand it. They have done pretty neat REST APIs, and if you translated the GraphQL schema to something familiar they would have never accepted it. But now their unfamiliarity had them blind to the horrid thing they had created. Anyone else work with GraphQL? I’m agonizing over a thing right now, most of the publically available schemas look like this: code:
code:
|
# ? May 2, 2020 07:37 |
|
Wheany posted:here is my xml parser for the above: /<name>([^<]*)<\/name>/.exec(input) terrible programming: here is my xml parser
|
# ? May 2, 2020 09:25 |
|
Soricidus posted:terrible programming: here is my xml parser well if we're going with that, the regex would probably fit in the title as well
|
# ? May 2, 2020 10:09 |
|
dick traceroute posted:extensible meme language template meta-memeing
|
# ? May 2, 2020 11:50 |
|
leper khan posted:template meta-memeing internet's been doing that for over 20 years
|
# ? May 2, 2020 15:27 |
|
zokie posted:I really like GraphQL, it’s actually great. We used it at my last job, and once you stop using it like REST in the front end (don’t hide your queries deep in components, but have them in page components) it gets really awesome. Not having a dependency on backend programmers to add any stuff already in the schema to a query is really liberating. no not at all. we do it the same way.
|
# ? May 2, 2020 15:46 |
|
i like graphql because we've reinvented ad-hoc field selection multiple times for our apis and graphql does all of that some people apparently do not like graphql because they think it's a query language like sql or datalog and they never bothered to check
|
# ? May 2, 2020 17:16 |
|
that could be because it's called "graph query language" making it the first unhelpfully-named artifact in programming history
|
# ? May 2, 2020 17:30 |
|
NecroBob posted:any time i hear someone call themselves a "web developer" i only hear "clown" and to date it hasn't let me down i almost fell into the web dev pit during my first two job hops when i was tempted to just take any job due to desperation. EXTREMELY glad i stuck with backend databases
|
# ? May 2, 2020 17:39 |
|
|
# ? Jun 3, 2024 22:09 |
|
zokie posted:I really like GraphQL, it’s actually great. We used it at my last job, and once you stop using it like REST in the front end (don’t hide your queries deep in components, but have them in page components) it gets really awesome. Not having a dependency on backend programmers to add any stuff already in the schema to a query is really liberating. i think u are prone to prodromal schizophrenia
|
# ? May 2, 2020 17:46 |