News for hackers. Stuff that matters.
Re:Show HN: I've asked Claude to improve codebase quality 20... by tayo42 on Thursday December 11, 2025 @11:41AM (#46233646)
How do you end up with 3 to 4 languages in one project?
Re:Show HN: I've asked Claude to improve codebase quality 20... by saulpw on Thursday December 11, 2025 @11:51AM (#46233779)
Typescript on the frontend, Python on the backend, SQL for the database, bash for CI. This isn't even counting HTML/CSS or the YAML config.
Re:Show HN: I've asked Claude to improve codebase quality 20... by tayo42 on Thursday December 11, 2025 @12:25PM (#46234255)
I wouldn't call html, yaml or css languages.

Same for sql, do you really context switch between sql and other code that frequently?

Everyone should stop using bash, especially if you have a scripting language you can use already.

Re:Show HN: I've asked Claude to improve codebase quality 20... by wosat on Thursday December 11, 2025 @02:43PM (#46236172)
Sorry for being pedantic, but what does the "L" stand for in HTML, YAML, SQL? They may not be "programming languages" or, in the case of SQL, a "general purpose programming language", but they are indeed languages.
Re:Show HN: I've asked Claude to improve codebase quality 20... by tayo42 on Friday December 12, 2025 @11:21AM (#46245599)
You don't have to apologize. It's the internet, pedantic is expected
Re:Show HN: I've asked Claude to improve codebase quality 20... by pdntspa on Thursday December 11, 2025 @12:36PM (#46234416)
Dude have you even written any hardcore SQL? plpgSQL is very much a turing-complete language
Re:Show HN: I've asked Claude to improve codebase quality 20... by tomgp on Thursday December 11, 2025 @11:53AM (#46233805)
HTML, CSS, Javascript?
Re:Show HN: I've asked Claude to improve codebase quality 20... by pdntspa on Thursday December 11, 2025 @12:11PM (#46234062)
Oh my sweet summer child...
Re:Show HN: I've asked Claude to improve codebase quality 20... by merely-unlikely on Thursday December 11, 2025 @12:21PM (#46234205)
Recently I've been experimenting with using multiple languages in some projects where certain components have a far better ecosystem in one language but the majority of the project is easier to write in a different one.

For example, I often find Python has very mature and comprehensive packages for a specific need I have, but it is a poor language for the larger project (I also just hate writing Python). So I'll often put the component behind a http server and communicate that way. Or in other cases I've used Rust for working with WASAPI and win32 which has some good crates for it, but the ecosystem is a lot less mature elsewhere.

I used to prefer reinventing the wheel in the primary project language, but I wasted so much time doing that. The tradeoff is the project structure gets a lot more complicated, but it's also a lot faster to iterate.

Plus your usual html/css/js on the frontend and something else on the backend, plus SQL.

Re:Show HN: I've asked Claude to improve codebase quality 20... by zelphirkalt on Thursday December 11, 2025 @02:02PM (#46235592)
3 or 4 can very easily accumulate. For example: HTML, CSS as must know, plus some JS/TS (actually that's 2 langs!) for sprinkles of interactivity, backend in any proper backend language. Oh wait, there is a fifth language, SQL, because we need to access the database. Ah and those few shell scripts we need? Someone's gotta write those too. They may not always be full programming languages, but languages they are, and one needs to know them.
Re:Show HN: I've asked Claude to improve codebase quality 20... by jessoteric on Thursday December 11, 2025 @03:18PM (#46236589)
i find it's pretty rare to have a project that only consists of one or two languages, over a certain complexity/feature threshold
Re:Show HN: I've asked Claude to improve codebase quality 20... by theshrike79 on Thursday December 11, 2025 @03:49PM (#46236949)
Go for the backend, something javascripty for the front end. You're already at two. Depending if you count HTML, CSS or SQL as "languages", you're up to a half dozen pretty quick.