Comment by BatteryMountain

1 month ago

This is a good thing. Repaying technical debt is always a great thing.

On our own 1.5M loc system, we've found and fixed thousands of bugs, security holes and circular dependencies in the last year. Code quality has increased, test coverage increased. We've also recently set our compiler to treat warnings as errors, and to be as strict as possible. It is absolutely amazing to see the gaps being filled, it would've been an impossible task for human devs and IDE's would've made it very uncomfortable. We've also ironed out all the bugs and failure modes in our infrastructure automation / monitoring. Our next project is to eliminate all 3rd party dependencies, and after that to rebuild our frontends completely using zero frameworks, not touching npm ever again after that.

So when I read this about postgres, I was very happy that they found and pursued this side quest. They can make the codebase bullet proof.

Avoiding 3rd party libraries seems like a false sense of security. You’ll stop seeing CVEs on the scanner reports, but the bugs are still there, just in your own code that is less well audited than public libraries.

  • I understand, but I would argue its better to have an in-house 1K lines of code that only does what we need and nothing else, it well tested and under our control, than to depend on some 50K lines of code (of which we might only use 10% of functionality and the others just getting in the way) that random's on the internet can modify, sometimes pulling in transient dependencies that we would really not have in a server environment, telemetry and other gremlins. It goes without saying that opensource packages will become even more juicy targets for malware/hackers to get into your systems like we've seen in the past month (and it will only become worse - you will be forced to pay technical debt or die).

    The only "third-party" packages that we want to ideally allow/support would be provided from LTS versions of our runtime (in this case, packages provided by the dotnet team and audited by microsoft). So we will always try to build around what the framework provides. Second choice is our own code, third choice is open-source packages, fouth choice is a separate application/appliance (lets say ZenDesk for ticketing). Over time, we will reduce this footprint to only have dotnet team code and our own.

    Remember most CVE's can be hidden on servers that are not publicly routable and don't have a real exploitation paths. The bits that are public (lets say a linux edge server with a web server on it, some firewalls, a couple of open ports) - these should be hardened to the max and not allow full access to all the services running behind it. We don't even give our internal services public IP addresses to make near impossible to route traffic to them.

    Our git repo's are also not on public infrastructure (serious, think carefully about hosting on public services and if you really need it), never mind making the repo public.

    We also have a dedicated secrets/certs manager, so no credentials are in codebases or pipelines. Very strict in this regard.

    • > Remember most CVE's can be hidden on servers that are not publicly routable and don't have a real exploitation paths.

      The thinking of "it's inside so we're safe(r) from attacks" is a false sense of security, as (e.g.) Maersk learned with NotPetya:

      * https://www.wired.com/story/notpetya-cyberattack-ukraine-rus...

      * https://archive.is/Amlij

      From the year 2000:

         NAT (particularly NAPT) actually has the potential to lower overall
         security because it creates the illusion of a security barrier, but
         does so without the managed intent of a firewall.  Appropriate
         security mechanisms are implemented in the end host, without reliance
         on assumptions about routing hacks, firewall filters, or missing NAT
         translations, which may change over time to enable a service to a
         neighboring host.  In general, defined security barriers assume that
         any threats are external, leading to practices that make internal
         breaches much easier.
      

      * https://datatracker.ietf.org/doc/html/rfc2993#section-9

      3 replies →

    • > on some 50K lines of code

      also some 3rd party libraries are overdesigned/overcomplicated because everybody wants the library to do everything for everybody.

      This overcomplication can easily introduce security problems that is not present in the 1K solution.

      10 replies →

    • You might believe that your own 1 KLOC is well tested but you're probably wrong. As your business evolves and use cases expand, someone will feed it bizarre inputs that you never thought to test and then it will break. I've seen this happen over and over.

  • It really depends on what the product is, what the 3rd party library is used for, and what the alternative is. Unfortunately, some people are too biased towards using 3rd party libraries and don't understand the tradeoffs.

    For example, a few years ago I removed a rather large 3rd party mathematics library because we were only using it for a single mathematical function that was very easy to replicate.

    Remember, 3rd party libraries need to:

    1: Be periodically audited to make sure you are in compliance with the license terms, and preferences of your company.

    (1.5: This becomes important during an acquisition as someone will always come around doing due diligence.)

    2: Be periodically updated (in case of security bugs)

    2.5: Be updated on short notice when a security issue is revealed.

    In the case of the mathematics library, replacing it with roughly 20 lines of code and 100 lines of tests is a significantly better tradeoff than constantly reviewing it every time one of the above things happens.

    Now, at what point is it "worth it" to use the 3rd party library? In our case we'd need to make much heavier use of the library, probably at least 20 different mathematical functions from it.

  • I’d be happy to bet with you if I rolled my own log4j I would have never implemented jndi as a formatting argument.

    Sure I shouldn’t roll my own crypto but I can write a logger…

    • Logging is a very complicated security area. You often get sensitive data in the logs and it gets sent across the network to monitoring servers.

      Also any part of the program can send data to the logger. This means the logger can receive malicious payloads from anywhere. Maybe your logger handles ascii control characters badly?

      6 replies →

    • And probably more importantly, AI can write a very simple logger with no extra features than you absolutely need in 5 minutes, if that.

  • One problem I’ve seen with third-party libraries, especially in the JS ecosystem, is that to fix a CVE, you often need to jump a major version or three, and that entails quite a bit of work to adapt to breaking changes. Porting a fix back on your own and keeping your own fork is the same as supporting a first-party library, except it’s not really first party, and you’re not familiar with its innards.

  • It has been proofed again and again that you cannot trust npm/cargo not even AUR, implement you own minimalist functionality without dependencies and just for you own needs seems to be a much better solution.

  • Using 3rd party libraries is a false sense of security

    > just in your own code that is less well audited than public libraries

    why do you think public libraries, which change all the time, get deprecated, handed off and supply-chain attacked are well-audited in any way?

  • I personally only rely on 3rd party libraries that are complete. I will never use a library that gets consistant feature updates. I do make an exception for openssl rusttls and whatnot since they have to update by design.

  • If you reduce the amount of code/code paths you reduce the surface area that vulnerabilities can appear on. A code base with 10 million lines can have a lot more bugs than one with 100k.

  • You’re probably right about some third party libraries, but not about all or even most of them. Package repositories are full of half baked packages that are the result of a single person scratching their own itch once upon a time and thereafter forgetting about it. The more harmful part happens when those get imported into other third party libraries that give the image of being better supported. Supply chain attacks are the new null pointer.

  • The one thing that cuts the other way is code churn. Third party libraries may keep adding features you don't use, and those may expose new bugs. You can pin an older version, but unless the library back ports security fixes, you are not going to benefit from the shared development wrt to security.

    If you spend a ton of time hardening your own library code and don't have much feature sure, then that can be a win.

  • Agreed. It’s the modern security through obscurity.

    Security through obscurity protects you from low effort vulnerability scanners.

    It makes you more vulnerable to a sophisticated targeted attack. A competent hacker or AI will quickly find vulnerabilities in your custom libraries.

    • I would like to agree too but there's a genuine new debate here, with LLMs/agents, the storm of CVEs, supply chain attacks, AI assisted social engineering, etc, some custom code doing the minimal required task might be a better security posture than picking a popular library.

      I don't know were it will leave us in the long term and I don't think I'll like the answer.

      6 replies →

    • > A competent hacker or AI will quickly find vulnerabilities in your custom libraries.

      So why wouldn’t a competent AI find those vulnerabilities during development? I don’t think the proposal is to have human devs hand write the custom libraries and yolo into prod.

      5 replies →

    • in theory, a company running custom software should be able to invest many more hours into running those same AI with "white-box" pen-testing (assuming hyperscalers actually start allowing this). An attacker would have to be willing to outspend the company (or get very lucky). If an attacker is resourced well enough to put that investment into owning a single company, you probably don't stand much chance reguardless.

      1 reply →

  • I feel like security by obfuscation might actually be valuable in the age of llm attacks

    • Not having access to the source is certainly a disadvantage for LLMs, though I saw an article the other day about a model running a disassembler on the binary, from that reconstructing the roughly equivalent C, and finally analyzing that. So, even if the binary is available there are paths.

      1 reply →

  • I think avoiding all 3rd party libraries is excessive, but engineering is about tradeoffs. In the extreme case, do you pull in a LeftPad dependency or write it yourself?

    • It also depends on whether “avoid” means a strong preference against or a rigid doctrine to never use no matter what.

  • 3rd party libraries are attack vectors and if like many many people you’re only using one or two functions then it’s much better to get rid of them.

  • Two edged sword. That means the bots also have a library of exploits to try for the components used in your project.

  • For database programs, I would disagree, this should never become something like the nodejs ecosystem.

  • Similar to distroless containers & statically linking all dependencies

  • > Avoiding 3rd party libraries seems like a false sense of security

    To be fair, there is more nuance to your statement.

    A lot of it depends on your programming language.

    For example with Go, with its extensive and excellent stdlib, you would be foolish to rely on large swathes of 3rd party libraries, because so much can and should be done using the Go stdlib.

    On the opposite end of the spectrum, you have Rust with an effectively non-existent stdlib.

    And the problem you see frequently with Rust is projects importing half the internet, with a Cargo.toml the length of your arm with hundreds of dependencies. Of course the project has never reviewed its dependencies source code, and the project probably barely keeps its dependencies up to date. Its a supply-chain attack waiting to happen, not if but when.

    So with languages like Rust, you have to take an approach of "minimal reasonable dependencies", make an active effort to keep your dependency list short and in-control.[1][2]

    > less well audited than public libraries

    I also struggle with this particular argument because the reality in open source is "well, its open-source, it has many eyes" is in fact mostly a dream. Since we all know 99% of the time its a small group of maintainers (assuming there is are even multiple maintainers[3]) and not many (if any) external reviewers.

    [1] https://tweedegolf.nl/en/blog/119/sudo-rs-depencencies-when-... [2] https://tweedegolf.nl/en/blog/104/dealing-with-dependencies-... [3] https://xkcd.com/2347/

  • >Avoiding 3rd party libraries seems like a false sense of security.

    What a bullshit.

    It's different scenario, different trade offs.

    You mitigate risk of library being sold to malicious 3rd party, you avoid risk of your supply chain being hacked, you avoid API/behaviour breaks, etc.

    The trade off is that you have to maintain it.

    That's why dotnet's ecosystem is so loved due to MS providing 90% of needed libraries, so you avoid some 3rd parties maintained by single person.

    • This is the way! What also affects the decision is what the code will be doing, and how much extra functionality that you will never use (extra attack surface) you will get by importing external library after library.

      Often it can be a very good choice to write the functionality yourself and not rely on external libraries.

    • Same approach here.

      And since we now have coding assistants, maintaining in-house costs near nothing now. Nobody else can break us, only ourselves.

Now this is how companies should be using AI. Not as an excuse to fire half the devs. Less bugs, less failures, better experience for everyone.

  • We haven't fired a single person yet due to AI. We just save everyone time, make input more accurate, make our accountants better, manage our technicians and jobcards better and so on. We also made our system bullet proof to the point that we only had one weekend failure in the last 24 months, and it wasn't our fault (a third party dependency did a large deployment on a friday night). Our system is now deeply "boring" and its awesome.

    • Oof, we are 1/2 the size we used to be so we can do more with less. We're doing more but with half the people there are still so many gaps that I'm quitting myself out of frustration.

    • I wish I could work in a place like that! Any open position? :)

      Let's hope this is the future of Software Development. There is so much to create yet.

  • Perhaps the ultimate use case would be to use AI to scan, debug and find issues etc, but never to generate new code. Still have humans writing and understanding everything, keeping things as clean and concise as possible.

    • It would be great net result for our brains, however too much money has been poured into this business to give up on that. My belief they will push for SWE layoffs trying to position LLM-based agents as a cost efficient alternative to human programmers. Which is extremely stupid and short-sighted but that's the strategy.

      6 replies →

    • Literally half of the work we did the last 12 months was this. Refactor and fix, performance improvements, security hole fillings etc. We have one or two devs doing visible feature work, the rest of us is making the system rock solid.

  • The only companies who will really need to fire are the big tech companies who hired just because, for empire building, or to keep talent out of competitor's hands. Nearly everyone else is actually positioned to leverage AI to now compete against the bigger players. I'm already seeing small companies have a big surge.

  • This is how I use it. I don't run any companies (nor am I a part of one right now) but were I to run one I would employ AI as the ultimate bug/vuln hunter. Just spin up maybe 20 agents and say "fuzz this thing to death".

  • > Now this is how companies should be using AI. Not as an excuse to fire half the devs.

    AI is getting so good, it will probably be both.

>fixed thousands of bugs

>set our compiler to treat warnings as errors, and to be as strict as possible

>ironed out all the bugs and failure modes in our infrastructure automation / monitoring.

>eliminate all 3rd party dependencies

>rebuild our frontends completely using zero frameworks

Oh yeah, that's what i call "software engineering" and excellent use of LLM's! Great to see Company's with a Mindset like that.

AI makes it possible to fix bugs and solves issue one wouldn't do before. But just because it's easier now doesn't mean it's automatically worth it. There are tradeoffs (like code complexity or breaking stuff), or it really just wasn't that important to fix if it was in the backlog forever. I've seen devs go down this rabbit hole, and perhaps overdo it. It feels productive, but at some point it might stop to provide value, and other things should've been prioritized. It's just easier to say to the AI "fix bugs" instead of solving real issues. At some point boasting about running 10x agents in parallel to fix bugs becomes a sign that there's a lack of value provided to boast about.

  • While that is true, there's also the other side of the coin: most bugs are hit, but never reported. Users are pretty unlikely to report bugs and when they do they are very vague about it. That's why client observability is such a boon for teams because they find what bugs users are actually hitting. If the agents are directed using that, then perfect

  • Not all 10 are doing bug fixes. Two of them are mobile apps, 5 of them are long-term feature work, 1 is infra/monitoring, the rest is adhoc stuff like bugs.

> rebuild our frontends completely using zero frameworks, not touching npm ever again after that

Genuine question, because I don’t know: Wouldn’t it suffice to vendor your current packages and “only” stick to maintenance from there on out, instead of rewriting it all?

This should still achieve the goal of not needing to touch npm, but presumably with less effort/tokens, right? Or is it just that you would expect the result of that process to be less clear and maintainable than a full rewrite?

  • Actually, I have started with it already but is paused, but the approach is to rebuild it from scratch in parallel to our current legacy system and move our staff over to the new completed screens in batches (we have close to 1000 views in our system, 150 background jobs, with about 15 main categories (think organisational sub-divisions)). So as long as we go slow and steady (even with AI) it will work out fine, I expect it will be done in less than 6 months. One month if we rush but we don't want to rush it, as we are moving some things over from MSSQL to Postgres, so slow and steady is the way.

  • Because they are large codebases with their own technical debt. You're not doing a full rewrite, but just make what you need for you own codebase.

    • If the parts you need from a larger third party library are small and simple, that makes sense. But I don't think the general idea of reusing battle tested code across many projects is obsolete because of AI.

    • Ah, I think I see now. Essentially the dependency module is unnecessarily large and (for your own use case) ships with extraneous features/“bloat”.

      2 replies →

If you're going to roll your libs, be sure to set up agents to scan for CVE analogues of equivalent known vulnerabilities in your own code. It takes quite a bit of work to set this pipeline up, as well as manually selecting high-impact CVEs (relying on the public scores is worthless, because there are some vulns that are catastrophic with a score of 6 vs something meaningless thats a 10).

It's also crucial to scan for "analogues" because otherwise many LLMs autoreport as "not vulnerable" since "this applies to Postgres/whatever and this repo isn't using it"

If you get hit by cyber guardrails you should use a local model to prune any CVE specific language from the reports.

To give examples, every single LLM (and people too tbh) will write netcode that's vulnerable to these CVEs: CVE-2026-27135, CVE-2024-45311, CVE-2021-32567, CVE-2019-9511; without explicitly mentioning the CVE text no LLM finds these either.

Our next project is to eliminate all 3rd party dependencies...

Just remember the golden rule of crypto is to never fool yourself into thinking you can write your own crypto libraries.

Didn’t you guys have to ship new products? How a business can afford so many backlog tickets being implemented? I understand fixing bugs can also mean improving the product but still - (almost) the whole world has this balance between new features and acceptable-ish number of bugs

  • We are multiple developers, each having 10+ main claude agents running different sessions/terminal tabs. I have 10 copies of our codebase on my laptop, each with their own purpose and claude session and history. The other devs have different approaches but we all get similar output. And then we also built an agent framework that runs within our system that has access to our code (at most 60min behind master branch), our infra and our databases, so it can diagnose issues with excellent precision and prove it to us where to find code/data issues.

Like the warnings as errors, and extensive test suites, there's also type safety that helps stir the LLM in the right direction.

You can go with "eliminate all 3rd party dependencies [...] frontends completely using zero frameworks" and be stuck with JS. Or use a typed language (TS, ReasonML/ReScript or even Elm) and an API client generator (available for all those languages) and get type safe API calling from a more strongly typed language.

As much as I prefer not to use NPM and even more prefer (even my LLMs) barely touch JS. A bit of safety is cheap these days, as you rightfully pointed out.

> found and fixed thousands of bugs, security holes and circular dependencies in the last year. Code quality has increased, test coverage increased

Does management appreciate it? Do customer see any value in it?

  • Good thing is now human does not have to justify anymore. If AI says bugs management seems far more amenable to support fixing. At least in my experience managers take AI reports or vendor tool generated reports more seriously then any feedback from engineer.

    • > managers take AI reports [] more seriously then any feedback from engineer

      Good. That's how it should be: do not trust motivated engineers, trust a text generator that has no clue nor responsibility instead.

      /s

  • If it enables faster feature releases and better performance, probably?

    AI can help companies provide more features or cut costs.

    • > If it enables

      This extremely non-obvious and non-transparent to managers and completely incomprehensible for customers.

Good thing if you can afford the vulnerability detection run.

I could imagine scenarios where only well off developers and companies could afford that.

Then if you don't have the money, you are out of luck and risk having vulnerabilities in your code.

And it takes just one adversary to pay the bot & the bot will happily find an exploit for them in your code.

This worry this could lead to a serious power imbalance & furthe damage the free software community...

  • I don't think it'll be that bad:

    1. The cost of running AI is dropping down to "free" - there's open weight models, open source tools, and guides on running your own if the long list of suppliers isn't good enough for your use cases.

    2. Vulnerabilities have always been a risk; AI is not a panacea. The pre-AI best practices still apply. Furthermore, a huge percentage of vulnerabilities are in 3rd party tools and systems, which are systematically being scanned and fixed and/or exploited, then fixed.

    You mention "the free software community" in your last sentence though - this implies the code in question is open source, so it's able to receive plenty of improvements from anyone with access to these tools.

  • Short term there will be pain (hacks/malware) but at the same time, it will force the survivors to build bullet proof systems.

    Worse case, we enter the Dark Forest era for technology. Read up on this concept and apply it to the tech industry. I suspect open-source might die and everything becomes private, no more public networks, no more open access, as to assure survival. In a sense we are halfway there already as it seems the internet is starting to close down, people not posting their art and music as much anymore, not posting their knowledge for free anymore, as it might be used against them by AI (the other party in the dark forest..). Thus private authentic experiences will become more valuable.

    • Can you describe how you arrive at the premise that people stop sharing because of AI? As a counterexample, I just tried out a dev's vibecoded app 'Glaze My Numbers Baby' and it 1. works and 2. is ridiculous and cool. Totally vibe coded. Claude rewrote all the C++ tests in Rust, so there's at least some substance to the rewrite.

Can you tell us how did you achieve that kind of work, briefly? I struggle to figure out how such massive bug fixing campaigns or even large scale software engineering are done with ai not taking weird decisions...

  • I personally started using AI with a very rudimentary "memory" system, and for first weeks corrected it ad nauseam, until, in the small domain I was responsible for, it started doing work end to end fully autonomously. Takes a lot of time and effort to bootstrap, but once steered well enough, it just clicks and less and less is needed to check manually

    • Yeah a memory system per domain, or per module or even per file works amazing, we have it too. Took a ton of time to improve the code and list down all the tribal knowledge, but now that it's done, it works super well.

  • Myself specifically, I have a /code folder without about 10 copies of our codebase, each running their own claude sessions & git branch. Then, I have 10 terminal branches. I spend a ton of time planning out & specing the problem with claude, to be as specific as possible and be as constrained as possible so it cannot go on side-quests. I use Opus 5.5 on High effort. That's just on my laptop with what I can mentally cope with day to day. Then we have some other automatic ai goodies running within our custom agent framework that runs within our platform that also helps. Then for apps, I basically plug in multiple phones into my laptop with usb (and emulators if I really need to), and claude can fully drive the ui and testing on the phones via adb as an example. Even on linux/fedora/kde it can drive UI apps a and take screenshots and fix things properly etc. It can ingest all logs & debug chains, so it absolutely flies through its task.

    Before we started this journey (about a year ago), we spent a ton of time cleaning up our codebase, splitting large files (10K+ lines) into files that are no more than 2K lines, things like that. Then we let claude scan our important files and summarize them, add comments for future claude sessions. So we've let it built up tribal knowledge per file and the reasons for things to exist. We tell it all about our operating environment, the country and legal framework etc, so every little piece helps it stay honest and on track.

    So to start, do something simple like: Scan the files in this folder for database code and check for queries that loads the entire result set into memory and/or queries that loads all columns. Suggest which queries we can filter better or reduce columns being transferred. Once done, also check real db row counts, compare them with the queries in these files and check if they might benefit from an index or partitioning/sharding. Also check for queries that loads data but their results are not used. Don't make changes yet, just do a deep investigation and report back. Feel free to spin up muliple agents to batch the scans.

    edit: it goes without saying you need a language with strict typing and a good compiler (we use dotnet). Doing this on python/javascript would be a nightmare.

    • > I spend a ton of time planning out & specing the problem with claude, to be as specific as possible and be as constrained as possible so it cannot go on side-quests

      I still have yet to see this be efficient. The time I spent doing this is way less efficient than simply giving the LLM some high level direction and putting that time towards reading the code it generates and correcting small piece by piece (occasionally doing things manually, but that’s only for more off the rails stuff).

      It’s about the same amount of time as up front planning, except I know the code much better as well as end up with less mistakes compared to having it implement a front loaded plan.

      Knowing the codebase makes everything else 10x more efficient too - triaging bug reports, planning other work, knowing what work needs done (this is a big one), reviewing PRs, etc.

> IDE's would've made it very uncomfortable

Would you mind elaborating?

  • When you change a single setting in the IDE to make something more strict and you have 1M+ lines of code, you will get 30K items to fix, via red/yellow/blue squiggles in the IDE. Most of those can be simple refactorings, but the performance & UI of the IDE makes it incredibly unwieldy and it will sometimes fight you back, sometime crash internal processes which leave refactorings half baked and so. Now imagine you change 50 such settings, to make the compiler force you to write better code. Changing 200K+ lines of code yourself is a nightmare (and to prove it still does the same thing afterwards). Instead, claude systematically approaches whole classes of errors and convert them to cleaner variants (either using our custom skills or it writing new scripts to do it). I consider myself an advanced user of IDE's, know how to do bulk refactoring and renames and so on (esp with JetBrains tools), and I would say it would be a near impossible task to do as a human. Then there are other developers - so you flip a setting and now 5 other people's IDE's are forcing them to work a specific way which will make you unpopular very quickly and revert the changes. So, since most of us no longer use IDE's as our main tool to build/diagnose, we can more easily flip compiler settings without destroying someone else's week. Hope that makes sense.

    Oh it also helps to split refactoring work into three buckets: business logic changes, performance changes (same output as before but faster) and cosmetic changes (rename files/folders/classes, breaking large files up, add logging/comments, domain layering etc). We tend to focus on performance and cosmetic changes for bulk refactors and leave logic changes to more dedicated sessions as to avoid changing what the system do (our domain is fairly complex and we cannot afford breakages). We also managed to port ALL of our code to dotnet 10 lts and have clean boundaries between projects (we have a mono-repo with about 50 projects in it), so we can wholesale upgrade dependencies without a sweat.

    • IIUC, your point is that changing IDE settings will affect other developers. But can't you enable an inspection locally, apply all or some of the quickfixes and revert the setting before committing? In the longterm, you want to enable the inspection anyway because the point is to prevent developers or agents from comitting new code that violates it (agents can access JetBrains IDEs' MCP Server to get inspection results).

      Of course, crashes and bugs can happen when applying quickfixes, which isn't nice. Ideally, they should be reported and fixed. You can also ask an agent to fix the occurences instead of using the IDE quickfixes if that's blocking you.

      I guess what I'm trying to say is that IDEs shouldn't make that process harder, they can actually improve agents' results. For example, you don't need to write custom skills to prevent agents from writing some class of bugs if the IDE can detect it and agents have access to the results.

      > Changing 200K+ lines of code yourself is a nightmare (and to prove it still does the same thing afterwards).

      If an agent does it, you still have no proof, but okay.

      Full disclosure, I work at JetBrains, but not in the IDE department.

      1 reply →

    • > it also helps to split refactoring work into three buckets: business logic changes, performance changes (same output as before but faster) and cosmetic changes (rename files/folders/classes, breaking large files up, add logging/comments, domain layering etc).

      Do you have a specific skill to guide an agent to scope the work of an agent so it stays in one particular bucket? Would you mind sharing it?

      1 reply →

> We've also recently set our compiler to treat warnings as errors, and to be as strict as possible

Wow, the innovation! I am so glad we have this AI thing!

> Code quality has increased, test coverage increased

And of course - two meaningless metrics.

> eliminate all 3rd party dependencies

The third party dependencies are also using AI to improve their code.

> Our next project is to eliminate all 3rd party dependencies, and after that to rebuild our frontends completely using zero frameworks, not touching npm ever again after that.

What's the proportion of bugs you've encountered that was due to a library versus due to your own code? I suspect it's probably more than 1:1000.

This is a stupid decision.

  • I’m not going to eliminate every single third party dependency in my system, but I’m on my way to eliminating 90%, maybe more.

    For me it’s less about bugs and more about supply chain security risk. And with AI and only building what I need from a dep, exactly how I need it, the cost of doing this is very low.

    • I worry that the move towards eliminating library usage will lead to further code fragmentation.

      It's a nice idea, and in theory sounds great, but you may be trading 1 library with 1000 bugs for 1 million implementations each with one special bug...

      5 replies →

  • False dichotomy. A library that is not a 100% perfect match for a problem you have to solve, will require glue code. Any bug in the glue code is in your own code but only exists because of the library.

As I read on I thought this might be satire, but, I suppose every two weeks this philosophy becomes less hopelessly optimistic and more feasible.

Perhaps your workflows and processes are so efficient that this actually makes sense. But I’m still not convinced AI assisted development is at that point yet; I think the classic Build vs. Buy arguments still hold.

How much is this going to cost to maintain? How many dev hours? How many tokens? Is your in house solution going to provide the business and customer enough perceivable value that it’s worth the opportunity cost? Are you going to apply the same rigor and security testing that the popular frameworks are getting from the largest research firms in the world? How do you know the LLMs aren’t going to apply similar patterns and make the same mistakes? Why can’t you just use that AI expertise to accelerate patching so your exposure time is limited? How do you know you’re going to outpace the major frameworks and tooling providers in 2 or 4 or 6 years when they catch up with AI assisted development, if they haven’t already?

And very personally speaking, I’m still holding my breath to see if this AI bubble is a real thing or not. Because if it ever pops, well, that’s not going to go well for companies that are embracing this stance.

  • > But I’m still not convinced AI assisted development is at that point yet;

    But the gp said it is, and gave examples.

> This is a good thing. Repaying technical debt is always a great thing.

> Code quality has increased, test coverage increased.

And that's true for many old codebases!

> We've also recently set our compiler to treat warnings as errors, and to be as strict as possible.

Yeah. Everybody who said it was impossible, that no budget would ever be allowed to fix old bugs, that new features "to support the business" was the only thing that mattered and other nonsense like that have been proven wrong. Arguably they were kinda right but then LLMs happened and that's what proved them wrong.

I love to see what's happening: at very long last people are understanding that security is something to be taken seriously. They're understanding that "more code = more bugs".

> Our next project is to eliminate all 3rd party dependencies,

I love the spirit!

> and after that to rebuild our frontends completely using zero frameworks, not touching npm ever again after that.

I hope many more shall realize that now we can give the middle finger to a great many pathetically bad and totally unfixable (even with the help of LLMs) ecosystems.

what are the nuts and bolts of how you're doing this? which tools have you found helpful? any advice for people who'd also like to do this?

The JS frameworks exist for a reason, recreating them seems a little excessive. Why not skip JS and go to a Rust wasm framework or Phoenix LiveView if the goal is to get away from JS/node/npm?

  • Our legacy system runs mvc view with bootstrap 3 and some jquery. It's not a SPA, so no framework to replace. But we still have to mess around with npm sometimes.

    • Depending on the framework you are in, there might be the equivalent of LiveView/Hotwire that works with MVC.

It could also be a bad "thing".

AI-slop reports are filling up the queue and taking away time from volunteers. So contributing to delay in releases/features.

> Repaying technical debt is always a great thing.

No. Debt is a tool. Sometimes it’s good to pay it quickly, but sometimes it’s better to pay it as slowly as you can.

  • No. Technical debt is just an imperfect metaphor.

    You never wanna intentionally repay tech debt as slowly as possible. You might be able to tolerate/ignore it for longer depending on the circumstance, but you always wanna get rid of it sooner rather than later.

    • Exactly. All tech debt is incurred from a loan shark at injurious interest rates. By definition, tech debt harms the development of a project until it is paid off, and the harm increases faster with more debt.

  • All else being equal, you're always better off without debt. AI can make repaying the debt very cheap (compared to doing it manually).

I'm curiuos on what is going on with Oracle database how many bugs the clanker are surfacing

feels like your team just are bad coders without understanding type systems and composition

  • Our codebase is about 8 years old, it used to be a .Net 4.8 project, which was upgraded to .Net Core 3, some bits to .Net Core 6. It was a mess. When I joined upgraded the whole stack to .Net 8, then .Net 10. Next upgrade is for .Net 12. I agree the old code was messy (single monolith, one solution, one project, zero clean boundaries) - I have since refactored it into a pseudo domain-driven-design layering which has enabled us to rewrite certain parts with low risk. Also stripped out business logic and third party integrations into their own projects. So we have about ~50 projects in the solution at the moment, not counting our mobile apps and agent framework. We also rebuilt our background services stack and got allll of our services to complete their runs under 60min, so no more "system is slow queries". Since converting it to use .Net 10, we can now also host 99% of the thing on linux servers (we are about halfway with this migration). So our cleanup efforts has been amazing, our server bill has been reduced by about 50% in 2 years, and next year we will half it again as I'm busy rewriting our most expensive system (a shitshow that was built by a consultancy firm, as usual).