u/Ill_Direction149

Is trunk-based development really that good?

I can't get the trunk-based development flow. I understand the advantages for introducing new features to the app (flags are good for A/B testing, fewer merge conflicts).

But I can't understand how developers do refactoring with trunk-based flags. Also, do the flags stay there forever, or what is the best flow for this?

Can you give me a deep dive into how your teams handle this in production?

reddit.com
u/Ill_Direction149 — 2 days ago
▲ 1 r/claude

While developing, I don't really care about the Claude model, and just stick withthe preselected one (most often Sonnet 4.6).

Is anyone doing the same? What is the best way to optimize the model selection. Is there any auto model feature?

Any tips are welcome, I would like to optimize the token usage.

reddit.com
u/Ill_Direction149 — 10 days ago
▲ 7 r/mcp

I am creating MCP for building plans to help AI to have feedback loop for its design (collisions, connections, relevance...).

Final step is to export all the created floorplan data back to the app. But here is the problem: It consumes lot of tokens because AI is in the middle of app and MCP. Is there some better way to get the exported data from MCP?

reddit.com
u/Ill_Direction149 — 10 days ago

I’m building an app with AI chat, and now I’m going to add widgets on top of the AI responses — so you can get more user-friendly output or even interact with it instead of just reading text.

So, I’m curious:

  • What UI widgets do you appreciate in AI apps (ChatGPT, Gemini, Claude)?
  • What UI widgets do you feel are still missing in the apps or can not be supported (for example in terminal Claude Code , Codex, Gemini CLI).

For me, one annoying thing is when AI asks multiple questions in a single message — there’s no UI to answer them one by one, you just have to type all answers in one message. For example, Claude has already added a simple UI for this.

Looking forward to any ideas or experiences.

reddit.com
u/Ill_Direction149 — 12 days ago
▲ 4 r/selfdevelopment+1 crossposts

In development with AI, there is a need to not only write code, but tests as well. AI can help with both.

So here is my question — what do you focus more on: code or tests?

Or in other words, what is the better workflow:

  • AI generates code + you write/control tests
  • You write/control code + AI generates tests

Which workflow better suits your day-to-day work?

reddit.com
u/Ill_Direction149 — 13 days ago
▲ 2 r/git

I am curious how other developers handle their git/branch workflow, because mine feels almost like that everyone has to figure out this approach as well.

Every time I start some development task, I:

  • create a branch
  • push it
  • immediately open a merge request / pull request as a draft and assign it to my self

So basically, before I start coding I have empty draft merge request every time. When everything is done in the task I just flip it out of draft and assign a reviewer.

This helps me track what I am working on and never needs to look for the branch I was working on.

It works very well for me, but now I started wondering if its standard / good practice or just me?

Do you do the same, or is there a better system I missed?

reddit.com
u/Ill_Direction149 — 17 days ago
▲ 12 r/react

I started to hate props types that include the component name – like DashboardProps, MyTableProps, etc. Now I just name it simply Props every time, without component name prefix. Its better for refactoring and full text search.

Exporting props?

Only case, you should name it, is if you export props, you should use a unique name tied to the component. Yeah, make sense, but I don’t think you every really need to export props (at least in most cases).

If I need props of ComponentA somewhere else, I prefer to get the type like this:

type WrapperProps = ComponentProps<typeof ComponentA>

Why:

  • If ComponentB needs props of ComponentA, you’re probably already using ComponentA there = no extra import just for the type (for example wrapper components)
  • It’s more declarative – the type points directly to the component, not some exported type in the component file
  • If you need it and don’t have ComponentA imported yet (eg. hook), you can still do:

​

import type { ComponentA } from './ComponentA'; 
type ComponentAProps = ComponentProps<typeof ComponentA>;

Curious how others do this – using ComponentNameProps or Props, and do you export wrapper props?

reddit.com
u/Ill_Direction149 — 18 days ago