All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Building a Translation CLI Tool: Navigating API Complexity and Finding Simpler Solutions

By

ezekg

4mo ago· 14 min readenInsight

Summary

The article details the author's frustrating experience trying to build a simple command-line translation tool using various translation APIs. After encountering numerous obstacles with different services (Google Translate, Microsoft Azure, DeepL), including complex authentication, confusing documentation, and unexpected costs, the author eventually discovers a simpler solution using Apple's built-in translation capabilities. The piece serves as both a technical tutorial and a critique of overly complex API implementations that hinder developers from accomplishing simple tasks.

Key quotes

· 5 pulled
A hungry ghost trapped in a jar can probably figure it out in one shot.
I was ready to give up. I was ready to accept that maybe I'm not smart enough to figure this out.
The documentation is a mess. It's confusing, it's contradictory, and it's full of dead ends.
I was about to give up when I remembered that Apple has its own translation service.
The moral of the story is that sometimes the simplest solution is the best one.
Snippet from the RSS feed
or: Writing a Translation Command Line Tool in Swift.

You might also wanna read