I'm surprised you went with go for this, you're going to encounter so much pain with large codebases.
Curious why you say this. It says in the readme it can do 100K lines per second.
Show HN: Pyscn – Python code quality analyzer for vibe coders
71–80 of 87 posts
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#72Earlier quoted context omitted.
By whose definition? Yours? That seems circular.
By the guy who have birth to the whole stupid trend: "... fully give in to the vibes, embrace exponentials, and forgete that the code even exists." If you're "vibe coding" you don't know and you don't care what the code is doing.
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#73There's no way vibe coders care about this. Focus on real engineers.
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#74see also https://github.com/mozilla/rust-code-analysis which also builds on Tree Sitter, tracks similar metrics, and supports quote a few languages
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#75I'll try hooking it into my refactor/cleanup workflow with copilot and see how it works as grounding.
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#76Prescriptive comment: Comment describes exactly what the following code does without adding useful context. (Usually this is for the LLM to direct itself and should be removed).
Inconsistent style: You have this across modules, but this would be in the same file.
Inconsistent calling style: A function or method should return one kind of thing.
(In the worst case, the LLM has generated a load of special cases in the caller to handle the different styles it made).
Unneeded "Service" class: I saw a few instances where something that should have been simple function calls resulted in a class with Service in the name being added, I'm not sure why, but it did happen adding extra complications.
Those are the ones off the top of my head.
As a senior dev, I think use of these tools can be fine, as long as people are happy to go and fix the issues and learn, anyone can go from vibe coder to coder if you accept the need to learn and improve.
The output of the LLM is a starting point, however much we engineer prompts, we can't know what else we need to say until we see the (somewhat) wrong output and iterate it.
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#77Current AI is most proficient in java-script and python because of the vast training data. But in the long-run, i feel like languages with good static analysis, static type checks, clear language rules, memory leak detection, fuzzing, test oriented code, and any number of other similar tooling is gonna be the true game-changer. Directed learning using this tooling could improve the models beyond their training set, o…
I was more optimistic before bur if 95% of the all software is written by these two languages, it will be very hard for any (better) alternative to disrupt them. The only way will likely to make better profiling & debugging tools to help maintain existing codebase.
But specialization restricts target market and requires time to develop. Its currently faar more lucrative trying to make a general purpose model and attract VC funding for market capture.
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#78This is pretty awesome! If it's built on tree-sitter, is it fair to assume it's generalizable across languages?
https://aider.chat/docs/recordings/tree-sitter-language-pack...
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#79But when i try to run analyze or check.
Running quality check...
Complexity analysis failed: [INVALID_INPUT] no Python files found in the specified paths
Dead code analysis failed: [INVALID_INPUT] no Python files found in the specified paths
Clone detection failed: no Python files found in the specified paths
Error: analysis failed with errorsI'm certainly in a folder with python files.
Re: Show HN: Pyscn – Python code quality analyzer for vibe coders
#80I ran these on some (non-vibe-coded) large repositories of my code that I'm not too proud of, and it gave me an A. I feel validated.