r/ArtCraftAI • • 2d ago

Artcraft code quality

I assume this is why the refactoring is done, needed and takes some time.

https://www.softwareimprovementgroup.com/blog/artcraft-adobe-clone-ai-code-quality/

47 Upvotes

42 comments sorted by

3

u/Carpe_Carpet 1d ago

Putting aside that this is a marketing post for their own software and consulting services, the audit is just not well suited for Rust as a programming language or the intended design of ArtCraft projects.

Rust is freer about modules in different crates depending on each other than most languages, and Artcraft has a layered architecture where modules in a layer can reach into the ones below (but not above) it, which is required for the "every front-end button launches a command" design philosophy. Core low-level functions are intended to be re-used by everything, and that's penalized here. The scoring also penalizes rate of commits and authors per line, which inherently penalizing fast-moving vibe-coded project (maybe that's fair, but it's circular if you're relying on the score as proof that it produces bad code). On the other hand, the audit can't even detect the code duplication that the team put everything on hold to refactor, and the testing score is mostly about test volume, which everyone knows is useless with AI.

There's definitely lots of slop in the codebase, but half the benchmark criteria are apples to oranges.

1

u/Delicious_Recover543 1d ago

Maybe but somehow the refactoring takes a very long compared to the standard developing cycle if they are just removing duplicate code. I hope you are right but my main worry is the stability of the apps in the long run.

11

u/ignorantpisswalker 2d ago

What a excellent article desiring absolute nothing.

Complexity- is human complexity. LLMs have no problem with spaghetti code. So this metric is meaningless for this kind of projects.

Security: what security issues have been found?

I learned nothing from this.

21

u/sreekanth850 2d ago

No, suppose you have a large monolith without any modularity with 1 million lines of code, even llm will hallucinate with that scale without proper boundaries or regressions. Say you changed one feature that breaks 100 others. This is not only applicable to humans but llm too. Saying this from workig on a go code base with 500k loc. Two weeks back i refactored to make the package size more modular and small, because of context bloat.

6

u/Delicious_Recover543 2d ago

Exactly.

4

u/sreekanth850 2d ago

I had seen claude written code spanning 50k lines in single file in a rust repositoryhere. My maximum lines is 1.5k beyond which agent should make it split based on responsibility.

1

u/KenMantle 1d ago

But this isn't how it is being built. Craft apps are modular, and the most recent release has made them more modular.

I've had Claude building a similar pdf project from scratch and started 2 months before pdfcraft was released. I have been absolutely reckless with adding features and not having Claude test some of the code before I get it to build me a new version (it tests after and releases a fixed one if need be). I've never run into a major regression or issue. Things always seem to move forward just fine. Now parts of that work are going into pdfcraft and being improved as they go.

-3

u/ignorantpisswalker 2d ago edited 2d ago

So? Compilation will fix api illussinations. Deaign patterns are for humans which cannot fit the whole project in the head. LLM can. (I hope so...?)

Also, LLM use far less abstractions by crating specialized code (if instead of interfaces) which leads to less runtime overhead.

At leas I hope. Let's review this again in a year. I want to see how thos holds up. We dont have enough data yet to have an opinion.

6

u/sreekanth850 2d ago edited 1d ago

Problem is not AI. problem is uncontrolled AI. you cannot 100% control how contributors use AI. But I hope they will improve it slowly.

-4

u/tactic-impress-55 2d ago

not relevant to the discussion

1

u/sreekanth850 2d ago

Ignore and move on.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

3

u/sreekanth850 2d ago

Then you should stop coding.

6

u/tmtke 2d ago

This analysis should be better if the original Adobe tools could have been analyzed with the similar tools and the compared. I guess there would be really unpleasant surprises, though I also think structure and modularity (overall code quality) would also be on a much higher rating.

3

u/Sefrautic 1d ago

Yeah, it was my first thought. What kind of "code quaility" are we talking about when Photoshop is a like 30 years of code held together by a tape

1

u/ArockproUser 1d ago

I wonder what their analysis would be if they had sampled the code today and Oct 12th? I would love to see the genesis from then to now and if anything changed.

1

u/Delicious_Recover543 1d ago

They literally say in the article that a future re-assessement is needed. That would also show if their assesment tool is sound.

2

u/4215-5h00732 1d ago

When PhotoCraft (PC) was ~4 weeks old, they had ~1.2k issues. When I checked this weekend, it's now ~4k - over 3x more in a few weeks. They have 544 contributors.

Imo this at the very least speaks to the low quality foundation they built. It could also be that the analysis is good and it's causing them problems. Perhaps many new feature also and bug fixes are creating more new bugs and regression.

If they don't actively address it, it's not going to get better and most likely get worse u til they do. Quality does not appear to be a priority for them - generating a bunch of code is.

3

u/ossi2611 1d ago

I like the icons.

1

u/Sefrautic 1d ago

Cool, now let's see a maintainability score for the Photoshop

1

u/Delicious_Recover543 1d ago

That's a "whatabout" I couldn't care less about. I am a fan of Artcraft and for it to succeed maintainability is key.

6

u/MrM4rc4L 2d ago

What worries me most is the lack of software security. We're using a suite of programs, but they seem to be weak in terms of security.

27

u/tactic-impress-55 2d ago

what form of security do you want? these are local art programs, not bank servers.

3

u/MrM4rc4L 2d ago

I'm referring to the publication that's at the link.

10

u/tactic-impress-55 2d ago

the writer does not specify security risk other than fear of opening client files which might have sensitive information.

he also weasels his way out by saying:

> We can’t compare PhotoCraft to Photoshop’s code, because Adobe’s source isn’t public. So we make no claim about Adobe’s code.

0

u/MrM4rc4L 2d ago

Some points in this publication are confusing, giving the impression of contradiction.

2

u/Brave1Bear 2d ago

Any software you install on your devices can be potentially used (through bugs or unsafe code) to gain control of that device and therefore access your bank account

2

u/tactic-impress-55 2d ago edited 2d ago

yes, but the author makes a very small note and leaves the impression that adobe would not be compromised just as equally

installing artcraft has the same risk as installing cracked adobe versions, people understand risk

1

u/ceceett 1d ago

That could be applied to any single software on the market, it's not exclusive to Craft Apps.

1

u/dzidol 1d ago

Yes, but you open files with that programs. And you don't expect that, for example, opening simple jpg file for edition may result in loosing your bank credentials (which MAY be possible, if program is written in a junky manner).

2

u/Training_Yak_4655 2d ago

The vulnerability is typically when you open a file from a stranger. It overloads the application that's reading the file in some way, then that takes control of your computer to install spyware, ransomware or an infostealer. Adobe Reader, Excel and Word have had these vulns.

These cloned apps should ideally use code review augmented with AI pentesting on each release, it's unclear if they currently do this.

2

u/Altruistic_Demand_11 2d ago

Podemos regresar al punto del proyecto, colaborar y hacerlo tan viable como Affinity y Photoshop, cualquier persona puede descargarlo, leerlo, corregir errores y recompilar en su propio fork.

Lo que demuestran esas publicaciones es que el equipo ArtCraft necesita mucha ayuda, y que incomoda a cierto sector empresarial que los usuarios no técnicos comiencen a abandonar el software de licencias.

No vamos a comparar el Photo-clone de menos de 1 año de vida, contra un Software empresarial con 30 años de maduración y motores propietarios.

1

u/BigReference1xx 1d ago

Yeah because Adobe has such a stellar track record of building secure products... /s

Just the fact they're using Rust already eliminates a whole class of very common security exploits, so there's that.

1

u/richardbouteh 14m ago

but enough about Adobe software

1

u/mocenigo 1d ago

Oh they used their own tool which I assume is a commercial product, to assess the metrics of the code base.
I am sure the ArtCraft code base needs a good whack, but the message may be a bit biased.

1

u/tweakingforjesus 1d ago edited 1d ago

This is an advertisement for an agentic coding agent. It's not arguing against AI generated code. It is arguing for using their agentic coding agent.

0

u/anders9000 1d ago

While I believe their methodology is probably decent, I simply cannot read ai generated articles.

-9

u/Vast-Comfortable-970 2d ago

It's what happens when you have a bunch of people who have no experience with coding vibecode an app

7

u/h1warkar 2d ago

See you make a good point in general, but doesn't apply in our case. We do actually have a lot of people who are senior software engineers with years of coding and software experience. I myself have been coding since before AI and llms were mainstream, though not for as much as the other maintainers.

Now we don't manually read the prs line by line for most cases, and yes, most of the prs we get are from people who have never used rust, and some probably have never been serious in software development. But we do engineer systems which help us make it easier to review and develop, and they make a huge difference. During reviews i see a lot of prs which have the correct ideas and are in the right direction, but the implementation isn't up to the mark, as per me. I just fix it then and there, ask for changes, or in some cases, rewrite.

If you have any actual suggestions after knowing the people behind it and how we work, we'd love to hear it!!

0

u/Vast-Comfortable-970 1d ago edited 1d ago

They just did a photocraft release using the new crafts-lib library. Guess what?

Photocraft is flooded with UI bugs. Years experience doesn't mean an engineer is good at their job, as this project has proven.

1

u/h1warkar 1d ago

Hmm thanks for the feedback, I would share it up, but somehow your feedback is redundant. We know there are challenges with the new UI framework, its a massive overhaul done on a running project.

If you would ever considering reading, you would know that photoCraft is in early alpha, and we expect such behaviour and will address it to make the apps a better experience and tool overall.

And about the point you tried to make about years of experience doesn't mean an engineer is good at their job. True, they are different things. How about you join the server and we'll get you on call, and you show us how to make it as an engineer :)) It's an open source project, we love the cause and the apps, and we'll keep bettering them for everyone. Stick with the apps for a few more months and I'm sure you'll end up liking it as well :) Until then, any and all feedback and experiences you had or have while using the apps, please keep sharing it, hopefully in a constructive and helpful manner.

0

u/Vast-Comfortable-970 1d ago

That was feedback I saw, not mine. You say massive overhaul, fair point. But one issue was image drop on the home screen broke - the code didn't get ported to the lib crate. You would think a simple feature like this would have gotten tested?

Early alpha would be correct if this was before AI era, but you have hundreds of contributors using opus 5.5 for over a month, and the traction you had to get all the people testing and raising bugs. The amount of time spent on this you are well past alpha stage if the project was done properly.

-2

u/rekopit 2d ago

The AI will maintain the AI code. Let it be the AI's problem.