|
Deep Dish Fuckfest posted:oracle is a law firm
|
# ? Aug 31, 2022 18:38 |
|
|
# ? Apr 28, 2024 18:58 |
|
Why would anybody who isn’t working for Google use Go over Rust?
|
# ? Aug 31, 2022 18:52 |
|
NihilCredo posted:i once interviewed a poor young bastard who had been trained exclusively in xslt for ~3 years we purposely trained him in xslt... as a joke
|
# ? Aug 31, 2022 18:54 |
|
FlapYoJacks posted:Why would anybody who isn’t working for Google use Go over Rust? go was forced on me by the nature of using hashicorp products
|
# ? Aug 31, 2022 18:57 |
|
'tech company' is less a property of actual technology and more a profound wish to get bigger companies to be credible competitors so as to not be target of antitrust investigation
|
# ? Aug 31, 2022 18:59 |
|
Cold on a Cob posted:we purposely trained him in xslt... as a joke
|
# ? Aug 31, 2022 19:01 |
|
xpath was probably the best of the xml-adjacent technologies. even 1.0 worked quite well as long as you weren't dumb enough to use xml namespaces, and 2.0 filled in a lot of the awkward gaps. it's definitely something that died because of the general backlash against xml rather than because of its own faults.
|
# ? Aug 31, 2022 19:48 |
|
namespaces are fine
|
# ? Aug 31, 2022 20:10 |
|
Namespaces are pointlessly inconvenient like 99.9% of the time
|
# ? Aug 31, 2022 20:18 |
|
dpkg chopra posted:string([local-name()='metadata']/*[local-name()='artist-list']/*[local-name()='artist'][1]/@id) isn't that equivalent to string(metadata/artist-list/artist[1]/@id) ?
|
# ? Aug 31, 2022 20:39 |
|
we had a "super user" meeting today to hear what they think of our website & one of them was this ancient dude like "i got my first job programming in 1964 ", he said he could help us with the code if we needed lol also i have a habit of paraphrasing people's requests, and he'd be like "that's not quite what i said" but i think he might be on the spectrum anyway it was actually good feedback
|
# ? Aug 31, 2022 20:43 |
|
pseudorandom name posted:isn't that equivalent to string(metadata/artist-list/artist[1]/@id) ?
|
# ? Aug 31, 2022 20:48 |
|
Namespaces suck and I have yet to see a good reason to use one other than in a library that other applications may use.
|
# ? Aug 31, 2022 21:06 |
|
FlapYoJacks posted:Namespaces suck and I have yet to see a good reason to use one other than in a library that other applications may use.
|
# ? Aug 31, 2022 21:19 |
|
mystes posted:aren't they different if they have a namespace? yes. bare "foo" matches an element named foo in the default namespace, while "local-name()='foo'" matches an element named foo in any namespace. it is hard to imagine when the latter would actually be what you want, but it's one of the cargo-culted solutions that people who don't understand xml namespaces tend to write because they can't figure out the correct way to do it. (not understanding xml namespaces is pretty reasonable)
|
# ? Aug 31, 2022 21:21 |
|
Plorkyeran posted:yes. bare "foo" matches an element named foo in the default namespace, while "local-name()='foo'" matches an element named foo in any namespace. it is hard to imagine when the latter would actually be what you want, but it's one of the cargo-culted solutions that people who don't understand xml namespaces tend to write because they can't figure out the correct way to do it.
|
# ? Aug 31, 2022 21:40 |
|
pseudorandom name posted:isn't that equivalent to string(metadata/artist-list/artist[1]/@id) ? when I tried this it would not return any results unless I used the local-name flag
|
# ? Aug 31, 2022 22:07 |
|
mystes posted:The correct way being to go through a bunch of steps to set up namespaces in your xml parser first so your xml library will deign to allow you to use the namespace abbreviations? yes. that's something which should be exactly one step (e.g. register_namespace("foo", "http://example.com/foo")) and featured very prominently in the library's getting started instructions, but generally is actually ten steps and never mentioned as a thing you need to do because all xml libraries are garbage for some reason.
|
# ? Aug 31, 2022 22:26 |
|
xslt is ok in moderation but beyond a certain point you have to ask yourself what the hell you're doing. I am fortunately blessed with a short attention span so this didn't take long for me. speaking of convoluted bullshit though what's going on with JSON schema these days?
|
# ? Aug 31, 2022 22:49 |
|
i think the moment you write a recursive function is the moment it's time to use something other than xslt. it's cool and all that it's a pure functional programming language with tail recursion, but programming in xml is still terrible. it's like regexes in that it can be way better than any other option in sufficiently simple scenarios but it scales up incredibly poorly
|
# ? Aug 31, 2022 22:54 |
|
xml is a vision of lisp, through a glass darkly. if you need a good modern lisp its clojure or sometimes racket.
|
# ? Aug 31, 2022 22:55 |
|
Plorkyeran posted:yes. bare "foo" matches an element named foo in the default namespace, while "local-name()='foo'" matches an element named foo in any namespace. it is hard to imagine when the latter would actually be what you want, but it's one of the cargo-culted solutions that people who don't understand xml namespaces tend to write because they can't figure out the correct way to do it. uhh the latter would be what you want in every situation, actually the person who cargo culted and doesn’t understand xml namespaces is the one who gave you xml that had namespaces in it in the first place
|
# ? Aug 31, 2022 23:09 |
|
dpkg chopra posted:I honestly don't know, but the main function of the app is to take an input audio stream (originally the microphone, but any device can be selected), and detect whether a song is playing in it. My understanding from reading the comments to the code is that it does this by This is why you don't hardcode magic numbers. I don't know what namespace management looks like in rust but there should be some kind of global constant for sample time length. You should check the Shazam api and make sure that's not relying on a particular sample sizes as well
|
# ? Aug 31, 2022 23:26 |
|
i'd rather write xslt than js tbh
|
# ? Aug 31, 2022 23:37 |
|
xml namespaces are extremely useful in xaml therefore xml namespaces are good
|
# ? Sep 1, 2022 00:01 |
|
redleader posted:i'd rather write xslt than js tbh
|
# ? Sep 1, 2022 00:53 |
|
i sort of love xslt actually but i can’t imagine ever introducing it into a project. maybe if development on it continued and we had xslt 6.9 and it was unambiguously always the best way to transform xml into different xml, but the thing that actually exists is an esolang that’s sometimes very good but all too often is actually kinda bad at the thing it’s supposed to be for
|
# ? Sep 1, 2022 02:00 |
|
Plorkyeran posted:
like my posts
|
# ? Sep 1, 2022 02:18 |
|
i loving hate xslt and do everything i can to avoid it. in contrast i think xml + xsd still has its uses. is json schema still basically ignored and unloved or has it actually started to gain traction?
|
# ? Sep 1, 2022 02:23 |
|
I like xml schemas in theory but I think the actual xsd syntax kind of sucks
|
# ? Sep 1, 2022 02:28 |
|
ive never written an xsd by hand but i use them all the time. json schema is exclusively used by visual studio for appsettings.json
|
# ? Sep 1, 2022 02:31 |
|
mystes posted:I like xml schemas in theory but I think the actual xsd syntax kind of sucks it's not great but it's at least readable, unlike xslt or xpath (at least to me) Shaggar posted:ive never written an xsd by hand but i use them all the time. still better than yaml tho azure devops has me writing cursed poo poo like this now and i hate them for it: YAML code:
|
# ? Sep 1, 2022 02:54 |
|
Cold on a Cob posted:
it’s gone through many versions to start being useful, it’s in the right direction at least.
|
# ? Sep 1, 2022 02:54 |
|
i work on a thing that indirectly uses json schema and it’s a problem because apparently our not very complicated schema isn’t representable with json schema
|
# ? Sep 1, 2022 02:55 |
|
Cold on a Cob posted:it's not great but it's at least readable, unlike xslt or xpath (at least to me) oh yeah lol i use the "classic editor" in devops so i dont have to touch yaml
|
# ? Sep 1, 2022 02:55 |
|
MrMoo posted:it’s gone through many versions to start being useful, it’s in the right direction at least. Plorkyeran posted:i work on a thing that indirectly uses json schema and it’s a problem because apparently our not very complicated schema isn’t representable with json schema good to know. i will continue deserializing and validating in-code then vOv i have an external vendor that sends us garbage and i'd love to give them a schema and say "use that and if your poo poo fails to validate, fix it before you send it to us" in retrospect, should have asked them to use xml + xsd
|
# ? Sep 1, 2022 02:57 |
|
Shaggar posted:oh yeah lol i use the "classic editor" in devops so i dont have to touch yaml isn't that going away? i put up with yaml because being able to copy/paste outweighs the warts but goddamn is it terrible anyway
|
# ? Sep 1, 2022 02:58 |
|
i dont think there are any plans to get rid of it mostly because afaict behind the scenes its yaml also you can clone steps and stuff in it plus you can export and import entire pipelines to do the equivalent of copy/paste.
|
# ? Sep 1, 2022 03:03 |
|
the only yaml part of that is that its a mapping, where the key is "condition" that maps to a string that is a godless abomination
|
# ? Sep 1, 2022 04:18 |
|
|
# ? Apr 28, 2024 18:58 |
|
Blinkz0rz posted:i don’t like a lot of go but error handling isn’t much different than checking exceptions except there’s no stacktrace This is the sort of galaxy brained take I come into this thread for.
|
# ? Sep 1, 2022 06:24 |