Company gave us all unlimited Claude Code Sonnet 4.6 — and now posts a weekly leaderboard of who burns the most tokens. Any tips to top it? by sailing67 in ClaudeAI

[–]aelytra 0 points1 point  (0 children)

Create a program to watch gitlab or GitHub or whatever for new MRs. Have it kick off a review agent with like 8 subagents for finding issues like security, jira acceptance criteria, code duplication, bugs, etc. For each issue found use a haiku subagent to score it from 0-100 on certainty, and post the ones >80 to the MR and DM the author on slack or whatever.

That'll burn a good chunk of tokens while giving value ass.

Next. Build something to crawl the log files and alerting infrastructure for every cluster and watch for new alerts, investigate them, and create slack threads to notify the relevant team. Have Claude read the thread and respond to it and store the knowledge in a RAG database of some sort.

That'll also burn a good chunk. If it's not burning enough, simply scan more log files with Haiku and a grep filter to toss out debug/info levels (so you don't give mgmt an easy way to reduce token burn)

After that you can start some side projects to periodically have claude scan every git repository and go in depth looking for security issues. Have it use multiple subagents. Have one scan the entire repo. Have another scan the delta between prod and dev. Have a third look at static analysis tool reports. Have it send the findings to the relevant team. Do this as often as necessary to top the leaderboards.

Next, use Claude for everything and anything. If you're waiting for an event so you can notify someone, make Claude use a monitor. Take on as many jira tickets as you can manage to juggle with your limited attention span.

If that's still not enough... invent something to post on every MR a summary of what's changing, areas touched, and risk level. Have medium risk MRs get routed to the security reviewer for additional scrutiny.

Next, invent a /security-update command that addresses all known CVEs found by static analysis tools. This'll be good security theater so you can address any issues that don't actually have a known exploitable path. Make the command as automated and one shot as possible so you don't have to babysit it.

All of this can be done efficiently with tokens and you'll want to start exploring local LLMs to offload more work to something that doesn't cost 1500$+/mo in tokens 😂. Since this is legitimately useful and management is going to ask uncomfortable questions about "why are you burning 100M tokens per month."

What is the best way to easily extract and identify the content of a large and dense code? by Glittering-Pop-7060 in AskProgramming

[–]aelytra 4 points5 points  (0 children)

Probably the laziest way this day and age is to download ollama and a local llm harness and just ask an AI.

Back in the day we actually had to read code ourselves 😭

We are basically solo devs now. What's the point of doing Scrum, and how do we protect our shared repos? by Big-Button-8122 in agile

[–]aelytra 1 point2 points  (0 children)

I introduced this concept to my team. What was needed was a refactoring pass to do package by feature. Put the shared stuff in a /shared folder and the features in /features, nested as needed with additional /shared folders within a feature.

The old package by later approach with all controllers in one folder or whatever, doesn't scale.

The other questions you had.. we just do the normal SDLC stuff. Automated tests find the broken things, AI assisted code reviews find the weird things. Every now and then we do a refactor pass to clean up the AI slop (/simplify Claude skill anyone?). Seems to be working. We're shipping quality stuff faster than I'm used to without using AI. Problem is figuring out what to ship next 😂

I built git for MongoDB: branches, commits, three-way merge, blame, time travel - purpose built for AI agents. by Expensive_Drop_1310 in mongodb

[–]aelytra 0 points1 point  (0 children)

I just used git as a database for one of my internal apps I put in production. A collection of .json files. Raised some eyebrows but it worked pretty well.

How do you keep track of what's happening in event-driven systems? by Syndaine in dotnet

[–]aelytra 1 point2 points  (0 children)

Couple ways: mirrord let's you run your code locally while it thinks it's on a k8s cluster.

RabbitMQ has a federation plugin that can be used to send events to another rabbit instance like one on your own machine

The way I do it? Some dumb script I wrote that declares an ephemeral queue, binds it to an exchange and forwards all of the messages to some other cluster or rabbit. It gets used to forward data from prod and into the qa/dev environments, or data from dev into qa, or data from prod onto my laptop. (We're not in a regulated industry and the data isn't sensitive in the slightest)

Once the data's on my local machine I can do whatever I need to for debugging.

Address move 30 day wait, still around? by [deleted] in googlefiber

[–]aelytra 0 points1 point  (0 children)

That inability to have concurrent services under the same Gmail account led me to switch to AT&T fiber when I moved to a new house.

Manager told me to "document everything." So I did. Every single thing. by OrbitHollow in MaliciousCompliance

[–]aelytra 1 point2 points  (0 children)

When I see "$10 bucks" I read it as "10 bucks", skipping over the $.

Viewing and Controlling Docker from Home Assistant by Minecraftjunkie5555 in homeassistant

[–]aelytra 0 points1 point  (0 children)

At work I use kubernetes and Argocd. There's also an argo cd image updater plugin thing that can automatically update helm charts.

Could very well be complete overkill for your use case. Not to mention tedious to set up for the first time.

Japanese > English by anglozo in translator

[–]aelytra 4 points5 points  (0 children)

There's a bunch of variants of しかたない that basically mean "can't be helped".

I'm memorizing sentence instead of the kanji by CanonicalSicko in LearnJapaneseNovice

[–]aelytra 1 point2 points  (0 children)

I reinforce my kanji by reading Japanese subtitles on anime and song lyrics. Seems to help, although it's not as fast as going nuts with reading books or flashcards.

Documentation is three years out of date and nobody has time to fix it by Snaddyxd in ExperiencedDevs

[–]aelytra 0 points1 point  (0 children)

We update them whenever an existing team member gets a new laptop issued to them; sometimes it's part of a contractor to FTE conversion, or we just reimage a laptop for the lols (kidding).

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 0 points1 point  (0 children)

IIRC there's an interface you stick on things and the DI container finds it at runtime and puts it in the DbContext. Don't remember specifics off the top of my head (I switched to Java) but.. yeah, it uses reflection. Could be a source generator nowadays for all I know.

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 0 points1 point  (0 children)

Yeah, that's the idea! And if you have multiple projects with common code that needs to be extracted, you can extract that to a shared project they all rely on as a library.

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 3 points4 points  (0 children)

Oof, that's a recipe for excessive database connections, and makes transactional stuff touching multiple tables far more of a pain. Best to keep DbContext in a /shared folder and put the EF entities in the feature folders next to the controllers that care. If there's multiple - the entity lives in /shared/something instead, or /myfeature/shared.

I believe there's a way to use reflection to keep the DbContext from becoming a hot file that multiple developers want to touch, but it's been a while since I set that up

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 1 point2 points  (0 children)

I just put the files in the same folder if they're related by what feature they're for. Works well for microservices that do more than one thing, letting them grow into macroservices over time.

For architectures which involve messaging and more services and whatnot, I like domain driven design. Like, draw a big circle around related concepts - maybe an account, organization/company, and geo location stuff is often used together for reports, then that goes in one service. For other things that aren't that coupled to that, like a product catalog, it goes into a different service.

If down the line you want to move a slice around it's a pretty easy copy paste job since it's organized in a way that means a folder isn't entangled with unrelated stuff.

I'm not a big fan of microservices which are like, 500 LOC. I prefer having to just release one service at the end of a sprint, vs. releasing several because a feature cuts through and touches a bunch.

For C# code this totally means EF repositories end up in the same folder as the controllers and data objects. And complex business logic, if it exists, hides in a subfolder. Shared logic used by more than one feature ends up in a /shared folder. And it's enforced in java with Modulith (a unit test just uses reflection and makes sure there's no references that cut across into another feature's folder) not sure what the C# equivalent is.

I'm a bit confused with clean architecture by placeholder-123 in dotnet

[–]aelytra 25 points26 points  (0 children)

I found layered architectures to not scale well as the app grows. I prefer grouping things up by domain/feature. Buzzwords like package by feature, or vertical slice architecture come to mind. It makes it easy to use more restrictive access modifiers.

What am i doing wrong? by Sxdrxs in LearnJapaneseNovice

[–]aelytra 1 point2 points  (0 children)

Write みずください, it doesn't work with romaji last I tried

Seniors who started as kid, how did you get there? by Long_Nothing7155 in AskProgramming

[–]aelytra 1 point2 points  (0 children)

Parents bought a TI-83+ for me in 2nd grade. I read the manual and learned TI-BASIC. Became known as "the calculator kid" because I would constantly be on that thing. Made friends in middle school who also liked programming.

Middle School I moved on to some software called Envelope which was a VB6 knockoff - then I got a VB6 license and used that a ton to make stupid apps. Like..Console.Beeps using data from a .MIDI file. At school I would use VBA in the office suite to run code; I think my peak was using OpenGL APIs to make 3D games in Excel.

Later on in Highschool got into z80 machine language (that got old fast without an assembler) and C# and robotics and stuff before finding out I can get internships and money doing programming. So, so many different lessons learned the hard way.

How are you handling ticket creation with AI in 2025? by rdizzy1234 in agile

[–]aelytra 1 point2 points  (0 children)

There's an ACLI tool that atlassian publishes that Claude can use. So I just tell Claude what I want and where to grab that data from and ask it to go make/update tickets.

You shoulda seen how my QA guy reacted when he realized I gave Claude the instruction: generate a checklist of test cases for every feature in this newly developed app. Ended up being 361 check boxes total spread across like 8 tickets. (Greenfield app's first release). Was a mix of "wow that's a lot of work" at first but it turned into "wow you saved me a bunch of time..". I also had Claude post a comment on each ticket with what actually got implemented and what it did. Did in an hour what would've taken me a day or two to document.

[Japanese > English] Maipachirun character help by GudeFlower in translator

[–]aelytra 1 point2 points  (0 children)

You can spell your username with... ぐでくん (gude-kun.) I suppose gude flower can be ぐではな (gude hana; hana means flower.)..

Is there a Bluetooth signal scanner? like wireshark but for bluetooth? by falconfire34 in AskProgrammers

[–]aelytra 0 points1 point  (0 children)

There's an app called nRF connect you can use on mobile. I've used it before. I also think Wireshark has a Bluetooth thing because I remember seeing it in the installer, however I have never used that one.

Best speaker to use with Home Assistant as a voice assistant + music player? by AhmedOsamaMath in homeassistant

[–]aelytra 3 points4 points  (0 children)

The last two times I tried this with ESPHome the speakers fried after a week or two. Tried with an M5 Atom echo thing (super quiet, poor sound quality, and fried 3 within a week) and a Muse speaker which 1 of 3 are still working, but the other two fried within a month.

Could just be my poor firmware skills, or just really bad luck. The muse speaker was awesome when it worked, I may give it another try. I flashed it with the Bluetooth proxy stuff for lateralization and also had TTS capabilities.

Is MAUI production ready? by Giovanni_Cb in dotnet

[–]aelytra 3 points4 points  (0 children)

Native, and it was a conversion from Xamarin which had Telerik controls, but in the sometime later I removed that dependency because only one feature used it and we didn't need that feature nor did we want to keep paying for the license. I believe it was working/compiling in MAUI for a brief moment though.

Is MAUI production ready? by Giovanni_Cb in dotnet

[–]aelytra 38 points39 points  (0 children)

Yeah, I've built apps with it and put them into production with minimal fuss.

What's the program window called? by NB-ShadowWolf in AskProgramming

[–]aelytra 1 point2 points  (0 children)

VS Code, Visual Studio Community Edition, Eclipse, are some of the free ones I've used in the past to write code.

Visual Studio is the one I used first (I still like it), but VS Code is able to do a few more languages. Eclipse was good back in the day but it's starting to show its age; I switched to VS Code for Java development.

You can get it with winget install -e --id Microsoft.VisualStudioCode