In your employment contract there's probably a section that says "the employee should pick the best tools for the job". We asked ChatGPT to create an HTTP endpoint that sends emails in 2 languages; C# and GoLang. The results can be found below.
- GoLang 105 lines of code
- C# 90 lines of code
Then we asked ChatGPT the following ...
Is it better with fewer lines of code?
Below is its answer:
- Simplicity: Less code can mean less cognitive load for a developer reading or debugging.
- Fewer Bugs: Statistically, fewer lines often reduce the surface area for defects.
- Faster to Read and Navigate: Especially useful for small teams or solo developers.
- Lean Deployments: In minimalistic environments (e.g., serverless, embedded systems), fewer dependencies and lighter binaries help.
Basically, ChatGPT is admitting that the C# solution is "better" than the GoLang solution, because it contains fewer lines of code. The problem is that there's another programming language that can solve the same problem with 14 lines of code; Hyperlambda. You can find its code below.
.arguments
to:string
subject:string
message:string
mail.smtp.send
message
to
.
email:x:@.arguments/*/to
subject:x:@.arguments/*/subject
entity:text/plain
content:x:@.arguments/*/message
return
result:ok
The above is 14 lines of code. This implies that if C# is 10% "better" than GoLang, Hyperlambda is 700% better than C# again. Arguably making it "illegal" to use both C# and GoLang, at least for an HTTP endpoint that sends an email.
Technical Debt
Technical debt is a word that's been hijacked by professional evangelists and platform builders to avoid having their customers expose the truth, but it basically implies how much resources are required to maintain and fix bugs in your codebase. Implying if you need twice as much time and resources to fix a bug, you've got twice as much technical debt.
We've got research that's more than 50 years old that proves that by doubling the LOC count you double the resource requirements to maintain and bug fix your code. This is true regardless of programming language for the record. Hence, LOC count literally is technical debt. And technical debt again literally is quality. This implies the following ...
Using GoLang, C#, Python, Rust, or practically anything else but Hyperlambda, might actually be a violation of your employment contract
Simply because math proves it's the best tool for the job ...
If a strong part of the value-proposition of hyperlamda is fo be found in LOC, then I highly suggest you understand the history of 4GL languages. You may well conclude that doesn't apply to this, but someone somewhere on the way to unicorn will likely at least ask the question and you will want to have an answer ready in advance.