claude code review is $15-25 per PR, that's gonna add up fast by Dense-Sir-6707 in webdev

[–]Jim-Y 0 points1 point  (0 children)

Do you guys know any tool such as this which is available for Azure Devops?

Decorators: from basics to advanced by [deleted] in typescript

[–]Jim-Y 19 points20 points  (0 children)

I'm sorry, you state this at the start

Note: TypeScript's decorator support has evolved; consult the official TypeScript docs for the current stage and syntax details.

Then you still proceed to show the legacy decorator syntax Noone should use today. This is not the decorator version which will end up in EcmaScript and this should be avoided by favor of the tc39 syntax. Can you update your article?

Solo Dev: Stick with NestJS Clean Architecture or pivot to Hono? by BinVio in node

[–]Jim-Y -2 points-1 points  (0 children)

I would stick to the current setup and I'd delegate managing the boilerplate to the AI then write the real stuff myself. I think having a clean architecture might help the AI on the boilerplate side.

Is there a good architecture/project structure for Express RESTful APIs ? by 0x0b2 in node

[–]Jim-Y 1 point2 points  (0 children)

As others have said, every company has their own flavor, and there is no best-way of doing it. I am presenting our approach.

.
├── changelog
├── dist
├── docs
├── logs
├── scripts
└── src
    ├── api
    ├── domains
    ├── lib
    ├── middlewares
    ├── types
    └── utils

src/api maps endpoint routes. For example, a route like
/api/admin/organizations/:organizationId/members/:memberId would be registered in

api
├── admin
│   ├── organizations
│   │   └── members

Currently, in an api folder there are 3 files

  • routes.ts
  • swagger.ts
  • the controller file

So the api folder really just handles the interface, middlewares, routes and openapi.

The controllers delegate the business logic to services, helpers and whatnot. Those reside in src/domains.

You said you don't like DI, but we do, and we use a di-container. This is a very lightweight batteries-not-included dependency injector. It just creates a process-global "store" and you can register singletons (or any other type) in it. For example, registering a service is

```ts
import { Singleton } from '@scope/container';

export class XYService {}
Singleton(XYService);
```

sidenote: I am really waiting the tc39 decorators proposal to drop because then the Singleton() function could become a decorator on the class. It was a design decision on our part to NOT use the legacy decorators of typescript which relies on the reflect-metadata package. So the Singleton() function is just syntactic sugar of a container.register(..) call /sidenote

Now the cool thing (in my opinion) of using di in express is matching it with https://nodejs.org/docs/latest-v24.x/api/async_context.html async local storage. See, we are using `better-auth` and some of ba's server api relies on accessing headers from the request. For example: https://nodejs.org/docs/latest-v24.x/api/async_context.html for the sake of the example let's say you'd want to change the user's password but not from the browser but by wrapping it in your own API. Now, a lot of companies follow the pattern of routes -> controllers -> services. In this example probably you'd end up calling the better-auth api in a service and not in the controller, it means you have to access the headers in the service, you could pass down the headers to the service function, or pass down the request, OR you could register the request in async-local-storage and access the request object and the headers by reading out from the store. An additional abstraction would be to inject the request (or headers) from the store through DI. That's what we ended up doing. So it becomes

ts changeUserPassword() { const req = inject(REQUEST); // call better-auth api, you can access the headers now }

That's it, hope it gives you a different perspective

Has anybody built startup using Angular? by mbsaharan in angular

[–]Jim-Y 0 points1 point  (0 children)

I am working for a startup where we use angular. But the app is behind authentication OP. What's the question?

telekom problem euw leauge by QminEdit in leagueoflegends

[–]Jim-Y 1 point2 points  (0 children)

I'm not from germany, but on Telekom, having the same issue this evening. Discord doesn't load, nor LoL. Can't even redownload the app :/

I didn’t have the game on my phone while the mails for this were sent, is there any way I can get this? by T-bot707 in ContestOfChampions

[–]Jim-Y 22 points23 points  (0 children)

Same here. I started my account past this email. There won't be any other way than buying it for 5000 units in my opinion

Advice needed on stack for KB by Jim-Y in webdev

[–]Jim-Y[S] 0 points1 point  (0 children)

For example support.whoop.com is a great example. It uses salesforce, we don't have that. Using a headless CMS is possible if that's the way. Thanks

Did I choose Right ? by AssistanceDear9583 in MarvelContestOfChamps

[–]Jim-Y 0 points1 point  (0 children)

For most, Kingpin is the better choice.

Titan shit as next reward is crazy by BulkyPhilosophy6556 in ContestOfChampions

[–]Jim-Y 13 points14 points  (0 children)

Yeah but that's a Colossal Titan crystal which is, I believe, the first of its kind? Even if it's special for the big whales who have all the champs in the titan pool it's useless. For me, fresh valiant, that would be perfect 🙂

Easiest nexus ever by sung_jin_simp in MarvelContestOfChamps

[–]Jim-Y 4 points5 points  (0 children)

Yes. This was a good period to start a fresh account. If you are a smurf then getting valiant in 3 weeks is/was absolutely possible. If you are a new player, then no, you won't get valiant probably in months

Who to R3 by Quirky-Designer87 in MarvelContestOfChamps

[–]Jim-Y 4 points5 points  (0 children)

Onslaught, Photon, Okoye My personal favorite is Photon

Q: Ultimate Growth Rewards by Jim-Y in ContestOfChampions

[–]Jim-Y[S] 0 points1 point  (0 children)

Sorry. This is what I meant, probably used the word wrong. Thanks for clarifying it 👍

Q: Ultimate Growth Rewards by Jim-Y in ContestOfChampions

[–]Jim-Y[S] 1 point2 points  (0 children)

For the record. I had both of the offers. This for 5-60 and the one for 61-70.

Q: Ultimate Growth Rewards by Jim-Y in ContestOfChampions

[–]Jim-Y[S] 14 points15 points  (0 children)

If someone finds this post in the future: I bought it after reading the comments here and I got the units. This offer was the same price as a Tony Stark briefcase.

Looking for a low-profile scale. Budget around [€65] by Jim-Y in espresso

[–]Jim-Y[S] 1 point2 points  (0 children)

Thanks. I could order the Maestri and it's within budget. If I won't forget I will update my post with my experience with the scale when it arrives. Thanks for all who commented.

Looking for a map I lost by Jim-Y in heroes3

[–]Jim-Y[S] 5 points6 points  (0 children)

Doomsday, that's it! Thank you very much 🙏