TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Which programming language do you think offers the best support for SQL?

3 pointsby jennooalmost 6 years ago
I find that a language as Go feels really tedious working with SQL, Java on the other end of the spectrum has many options but they feel pretty bulky. Whats your language of choice for a relatively simple CRUD app which uses SQL?

4 comments

davismwflalmost 6 years ago
Honestly I&#x27;ve never found a programming language where SQL didn&#x27;t have some tedious tasks. There are always lots of little edge cases and error handling etc that never seems to be fully covered by the libraries. That said, for a CRUD type app, I usually default to node.js unless the requirements would exclude it for some reason, then I&#x27;d move to Go, but generally I avoid writing new Java anymore, not that I think Java is bad or evil, I just prefer other languages.<p>For node we use the pg-format package to format most of our queries and then the standard pg package to execute queries. It is honestly one of the easier and cleaner ways methods I&#x27;ve used. I am not a big fan of ORM&#x27;s and find a lot of them add way to much complexity for too little benefit, so I am a big fan of either stored procedures&#x2F;functions or straight (but safe) query building.<p>I have written code in node.js, Go, C &amp; C++, Java and Python to manipulate data in different sql databases and they all have some form of tedious tasks in relation to the SQL integration.
评论 #20597506 未加载
smt88almost 6 years ago
I&#x27;ve never encountered great database mapping. I like .NET&#x27;s type-safe query builder, but it&#x27;s still very limited once you get beyond the absolute basics.<p>You may be interested in <a href="https:&#x2F;&#x2F;hasura.io" rel="nofollow">https:&#x2F;&#x2F;hasura.io</a>
评论 #20596529 未加载
评论 #20597516 未加载
chmaynardalmost 6 years ago
Great question. General-purpose programming languages and query languages have entirely different objectives and don&#x27;t mix well. In practice, SQL is a high-level messaging protocol used to communicate between two processes (client &lt;-&gt; server) or two modules within a single process (client &lt;-&gt; embedded DBMS).<p>I worked with several operating systems that included a native programming language and a built-in DBMS: DEC-MUMPS (MUMPS) and IBM OS&#x2F;400 (RPG). The facilities for database queries in these languages were much better than embedded SQL.
评论 #20597527 未加载
Grazesteralmost 6 years ago
That&#x27;s easy, .NET using C# entity framework.