Live data from Hacker News

Show HN: Pyscn – Python code quality analyzer for vibe coders

github.com

71–80 of 87 posts

Re: Show HN: Pyscn – Python code quality analyzer for vibe coders

#71
post #19

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.

I'm not sure what that means. My codebase with 40k lines (via cloc) takes 20 seconds (M1 Pro).

Re: Show HN: Pyscn – Python code quality analyzer for vibe coders

#72
post #68

Earlier 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.

Ha, fair enough. I forgot entirely the essence of that tweet, but I was really getting swept away with AI code at the time and probably was projecting my experience onto his tweet. I guess vibe-coding isn't what I like doing.

Re: Show HN: Pyscn – Python code quality analyzer for vibe coders

#74

see also https://github.com/mozilla/rust-code-analysis which also builds on Tree Sitter, tracks similar metrics, and supports quote a few languages

Thanks for sharing! Good to know about rust-code-analysis. Always helpful to see what other tools are doing in this space.

Re: Show HN: Pyscn – Python code quality analyzer for vibe coders

#75
Looks good to me! The status bar did something weird on my codebase in which 2% was really 100% so it looked like it was gonna take hours but only took a minute or so.

I'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

#76
Here are some anti patterns a colleague put in their code.

Prescriptive 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

#77
post #12

Current 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.

Personally i think we would need to see more specialized models RustGPT or ClangCPT or GoGPT. A model tuned for a specific language with proper tooling integration beyond MCP tools. The current general purpose models will always be biased towards what they have training data for, and we're clearly seeing them struggle with these languages. (My personal experience with AI C or Rust code is quite atrocious.)

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

#78

This is pretty awesome! If it's built on tree-sitter, is it fair to assume it's generalizable across languages?

Tangential, tree-sitter also allowed Aider, AI coding asisstant to exist and allow LLMs to work on codebases above their context limit.

https://aider.chat/docs/recordings/tree-sitter-language-pack...

Re: Show HN: Pyscn – Python code quality analyzer for vibe coders

#79
I saw this project show up in some newsletters. Awesome project idea. I've been using 'vulture' so far.

But 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 errors

I'm certainly in a folder with python files.

Re: Show HN: Pyscn – Python code quality analyzer for vibe coders

#80

I 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.

Haha, maybe your code is better than you think! But seriously, we'd love to hear if the thresholds feel too lenient. Feedback welcome!
Post reply on HN