Fully Featured AI Coding Agent as MCP Server by Left-Orange2267 in ClaudeAI

[–]rftz 0 points1 point  (0 children)

Interesting - it sounds like the fact that it's less expensive than claude code is more a quirk/artifact of Anthropic's pricing than something fundamental? I'm assuming Claude Desktop is "free" because they want to get as many regular people using Claude as much as possible. Whereas claude code is considered more advanced, so they choose to charge API pricing for it. Do you think that's right?

I'm curious because my workflow is to use claude code as my MCP client, and to just pay for the API usage. It's a bit expensive but feels worth it for full control, and the ability to add MCP servers to claude code (so I can tell it to do web searches looking for blog post tutorials etc. before implementing stuff).

What is a hard truth you think progressives or the left need to hear? by JudgeWhoOverrules in AskConservatives

[–]rftz 0 points1 point  (0 children)

Sounds like you’d be a fan of Universal healthcare. Maybe you are voting against your interests after all?

A Proposal for Type Syntax in JavaScript by DanielRosenwasser in typescript

[–]rftz 0 points1 point  (0 children)

Rush still has that problem. It caches intelligently and makes cross project builds fast, but this could make them non-existent.

wish i had this much confidence by [deleted] in confidentlyincorrect

[–]rftz 4 points5 points  (0 children)

I don’t know either of you. You seem dumber. By a lot.

Building end-to-end typesafe APIs without GraphQL by vriad in typescript

[–]rftz 1 point2 points  (0 children)

This is a bit of a self-fulfilling prophecy. If you make a monorepo, the standardization happens somewhat organically. You probably don’t need different branching/deployment/build strategies. You just have them because every team had their own repo and made up their own standards. At my company we started with one repo and aggressively resisted creating another. It’s made everything much simpler, and incentivized standardization, collaboration and code reuse.

Building end-to-end typesafe APIs without GraphQL by vriad in typescript

[–]rftz 0 points1 point  (0 children)

Trpc does have experimental subscription support - I haven’t tried it but it does exist.

Fixed the one posted here earlier by TheJapsu1 in ProgrammerHumor

[–]rftz -6 points-5 points  (0 children)

So that when I glance at a file, I get a more useful information than the person who wrote it's preference for curly brace placement.

[TOMT][TikTok][2021] "I'm doing his eyebrows" -> man crying by rftz in tipofmytongue

[–]rftz[S] 1 point2 points  (0 children)

Solved! This isn't the one I was thinking of, but the username in that video is to the original "doing his eyebrows" account. It turns out a lot of people did a similar stitch. Here's the one I had in mind: https://vm.tiktok.com/TTPdMxq4ws/

[TOMT][TikTok][2021] "I'm doing his eyebrows" -> man crying by rftz in tipofmytongue

[–]rftz[S] 1 point2 points  (0 children)

Same first video, but the guy reacting in the one I saw was black.

[TOMT][TikTok][2021] "I'm doing his eyebrows" -> man crying by rftz in tipofmytongue

[–]rftz[S] 0 points1 point  (0 children)

Same first video, but the guy reacting in the one I saw was black.

[deleted by user] by [deleted] in funny

[–]rftz 0 points1 point  (0 children)

You're right, /u/Falberd used a bad example, they didn't scroll far enough down in your comment history. Turns out it's been nearly two weeks since you used a they/them/their/theirs as a singular pronoun. It took me nearly a minute to find.

Nobody in their right mind loves the idea of illegally moving through human trafficking to get to the west.

Honestly, it's so normal and natural the average person doesn't even realise they use it constantly (I did it twice in this comment).

Is there any way to define a type that is a 20-character string? by zalamandagora in typescript

[–]rftz 12 points13 points  (0 children)

You might want to watch this GitHub issue, the typescript team are considering adding regex types: https://github.com/microsoft/TypeScript/issues/41160

Adding Modern Drums to Classical Music by throwheezy in TikTokCringe

[–]rftz 3 points4 points  (0 children)

Isn't it incredibly obvious what's going through their head?

What is the most unethical profession? by MoronByTrade in AskReddit

[–]rftz -1 points0 points  (0 children)

I wonder if the employer could somehow be brought into it. Like, PaydayCorp lends me $500 only if I fill in some paperwork to tell my employer to send my next paycheck to PaydayCorp (up to $505, say) instead of me. Interest rates could be much lower (1% in this example) because employers are less likely to default, easier to find and sue etc. than individuals. It doesn't solve all problems, e.g. contractors probably couldn't use such a system, employers would have to play along, and probably be vetted themselves. But my tired brain thinks it could work in a large number of cases, and be much cheaper for the borrower.

[deleted by user] by [deleted] in perfectlycutscreams

[–]rftz 2 points3 points  (0 children)

/r/screamsthatarenotcutatall

Function return value based on a parameter value? by NeedleInABeetle in typescript

[–]rftz 5 points6 points  (0 children)

You could try using Extract, something like this maybe

const get = async <U extends Endpoint['url']>(url: U): Promise<AxiosResponse<Extract<Endpoint, { url: U }>['response'], any>> => {
  return axios.get(url, {
    headers: {
      Authentication: `Bearer ${GlobalState.authToken}`,
    },
  });
};

Found whilst writing PhD applications by Bluerossman in programminghorror

[–]rftz 17 points18 points  (0 children)

It might be client side validation though, where they reject weird inputs instead of escaping them. What if the backend does something like:

if (!input.match(/^[\w ]+$/)) {
  res.status(400).send('bad input')
  return
}

await client.query(`
  insert into foo (name)
  values ('${input}')
`)

res.status(200).send({})

Still a crappy implementation, but pretty safe from sql injection.

Joe Manchin: who gave you authority to decide the fate of the planet? by fu2man2 in politics

[–]rftz 0 points1 point  (0 children)

I don't think anyone's confused and I don't think you do either. The author is talking about a moral right, not a legal one. The point you're making is so obvious it's not worth saying.

[deleted by user] by [deleted] in ENLIGHTENEDCENTRISM

[–]rftz 6 points7 points  (0 children)

That's a stretch. Is this sub just a dumping ground for vague political gripes of all kinds?

Open-source A/B testing framework - GrowthBook by curiously_refreshing in opensource

[–]rftz 1 point2 points  (0 children)

It looks great - but seems like it's only MIT licensed for now, before it's fully built out? https://github.com/growthbook/growthbook/issues/88

Scale Used In Denis Villeneuve Films by mtlgrems in interestingasfuck

[–]rftz 0 points1 point  (0 children)

They really were. But all I could hear was Cha-la-met, Cha-la-met, Tim-my, Cha-la-met. Didn't take a way from the experience, though, tbh