|
anyway, ive boiled down my typescript problem to thisTypeScript code:
ive tried using a type instead of any (eg just a dumb interface HasID { id: number }) but it still complains that Observable<HasID> doesn't have an id so i assume it has to do with the wrapping Observable ![]()
|
![]() |
|
![]()
|
# ? Mar 18, 2025 12:18 |
|
I don’t know what http client you are using or what pipe does, but Observables are usually something you subscribe to and get called when things happen so if it says that Observable<{ id: string }> doesn’t have id that is because you are trying to access it on the observable and not its ”payload”. Like if you tried to access .id on a Promise and not inside the then(thisWouldHaveId =>)
|
![]() |
|
You probably need to use the map operator:TypeScript code:
|
![]() |
|
that at least compiled! but it just propagates the observable so when its checked later it does not match a numeric id :P e: the http client is this: https://v17.angular.io/api/common/http/HttpClient Carthag Tuek fucked around with this message at 14:55 on Feb 13, 2025 |
![]() |
|
ugh i dont care about any of this poo poo, i just wnt to add a loving id to a goddamn object
|
![]() |
|
Carthag Tuek posted:that at least compiled! compare the ids as numbers: Number(theIdYouWant) === Number(theIdYouGetFromTheAPI)
|
![]() |
|
Wheany posted:compare the ids as numbers: ![]() current code. i only want to add the dbId, which wasnt there before (previously it returned the of() directly without the wrapping http get): TypeScript code:
TypeScript code:
|
![]() |
|
ah, just remove of() lol
|
![]() |
|
what a great function name, of(). super descriptive
|
![]() |
|
DELETE CASCADE posted:what a great function name, of(). super descriptive yeah. also fantastic documentation: https://www.learnrxjs.io/learn-rxjs/operators/creation/of ![]()
|
![]() |
|
DELETE CASCADE posted:what a great function name, of(). super descriptive i assume that's like Observable.of(thingThatIsSupposedToBeWrapped)
|
![]() |
|
that poo poo needs to be burnt in fire. along w the rest of both angular and angularjs i guess
|
![]() |
|
imagine my joy when I was looking at the rxjs docs for the first time a few days ago wondering how carthag's thing was supposed to work, feeling kinda grossed out, then today getting moved to a different team at work and seeing rxjs in their package.json
|
![]() |
|
pokeyman posted:imagine my joy when I was looking at the rxjs docs for the first time a few days ago wondering how carthag's thing was supposed to work, feeling kinda grossed out, then today getting moved to a different team at work and seeing rxjs in their package.json getting hosed the day before Valentine's, nice
|
![]() |
|
pokeyman posted:imagine my joy when I was looking at the rxjs docs for the first time a few days ago wondering how carthag's thing was supposed to work, feeling kinda grossed out, then today getting moved to a different team at work and seeing rxjs in their package.json lmao sorry for passing on the curse
|
![]() |
|
DELETE CASCADE posted:what a great function name, of(). super descriptive of(x) returns the onlyfans url for x
|
![]() |
|
Carthag Tuek posted:yeah. also fantastic documentation: that's just a list of examples and "recipes" you can copy paste without understanding them. the real documentation is linked at the bottom mind you the "in-depth dev reference" is a 404 and the official documentation link has a bit of a terse description section and a diagram of questionable utility, but hey, the links are there
|
![]() |
|
Carthag Tuek posted:yeah. also fantastic documentation: I’m not a fan of excessive rxjs use, but that’s like the simplest and most easy to understand method they have
|
![]() |
|
even angular has acknowledged that observables are a pain in the rear end and is moving to simpler signals
|
![]() |
|
how do we feel about XAML bindings?
|
![]() |
|
rx feels a lot less useful when you are single threaded and your standard library has promises but we used rx on the other platform so obviously it’s a good fit on this one and yes a bunch of operators have different names and/or subtle but relevant changed in implementation no I will not be taking questions thank you
|
![]() |
|
once you let observables in they infect everything
|
![]() |
|
tell me about it. I’m still calling all my former partners.
|
![]() |
|
Quackles posted:how do we feel about XAML bindings? they’re fine
|
![]() |
|
rx seems bad to me tho
|
![]() |
|
After another argument of "confluence is hard to read developers just need jiras" and me expressing my medication change induced extreme displeasure about the lack of willing for anyone to bother understanding anything and wanting to be spoon fed "as a user I..." poo poo when this stuff is complicated and that "you need to understand the whole and more importantly *I* need to be comfortable that you understand it", things got into "well if you're saying we need a framework to do this then are you saying that's what we need to do because we looked and there isn't one so we'd need to investigate it" and I had to go off with what I've wanted to say for months: not only can this be done but I've done it. I already sent you a relational model that was built in 2007 that can do this and still works today and I wrote a new UI layer on top of it while learning .net mvc in 2016, it's now 2025. Go read the model. Go read the docs. Go look at the current system and use your loving brains
|
![]() |
|
confluence isn't hard to read. sure, it's hard to do everything else in confluence: edit documents, search for documents, attach documents... it's like a knowledge black hole. but should you somehow find what you are looking for, you can read it just fine. you can see from the last edit time that the page is 3 years old, and the author no longer works at the company. have fun!
|
![]() |
|
I never found Confluence hard to edit or add to, but that could be because I had pretty expansive permissions at least I never had to touch Jira since we had Radar and Radar was awesome (even if most of the UI changes in the Radar 8 client were poo poo)
|
![]() |
|
we replaced Jira/confluence with knowledge base and it’s extremely good.
|
![]() |
|
confluence has the best wysiwyg editor i've ever used and the search seems fine
|
![]() |
|
abraham linksys posted:the search seems fine it’s not. you’ve either never used it or are lying
|
![]() |
|
At my place there is a push for committed markdown docs. So Cursor can scan them.
|
![]() |
|
i like the idea of a monorepo which also contains docs that are updated as part of the same commit/pr that updates the code. dunno how well it works in practice but it does seem nice (also business types would never lower themselves to touching any of that weird "bit hub" stuff with the nerd symbols in it, upload an industry standard Microsoft Word document to SharePoint, please). confluence is fine, i don't have any complaints. it isn't abysmally slow like jira so it has that going for it. i maintain a modest base of information in confluence and sometimes people even read it!
|
![]() |
|
the problem with confluence isn't technical, it's the exact problem that literally all documentation has: if nobody maintains it, it will become very bad, no matter how good it started as a tool it's fine
|
![]() |
|
this is true for, well, everything affected by entropy, which it is my understanding is the vast majority of things as far as confluence goes, i'll never forgive them for removing support for markup and forcing people to use some editor gui thing instead. beyond that i hate it but that's my default stance for software oh and for the search i think a while ago they changed stuff to be "ai powered" so you're gonna get garbage by default
|
![]() |
|
Deep Dish Fuckfest posted:oh and for the search i think a while ago they changed stuff to be "ai powered" so you're gonna get garbage by default i've seen them sneak in ai poo poo in other places but afaik our search is not "ai powered" in any meaningful sense. still works the same as it used to, not stellar, but not bad by any stretch
|
![]() |
|
well-read undead posted:the problem with confluence isn't technical, it's the exact problem that literally all documentation has: if nobody maintains it, it will become very bad, no matter how good it started it's a slow, resource-heavy webpage that provides an unpleasant text editor so yeah, it's about as good as anything else
|
![]() |
|
as a user I would like the developers to be happy and productive by using confluence by atlassian
|
![]() |
|
You can only activate one toggle at a time unfortunately
|
![]() |
|
![]()
|
# ? Mar 18, 2025 12:18 |
|
pokeyman posted:as a user I would like the developers to be happy and productive by using confluence by atlassian so you're going to what, give them an opioid drip?
|
![]() |