Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is the thing about glue code that people are rambling about? I’ve never seen such glue code that is tedious to write. What I’ve seen are code examples that I copy-pasted, code generators that I’ve used, and snippets that I’ve inserted. I strongly suspect that the tediousness was about making these work (aka understanding), not actually typing the code.





> I’ve never seen such glue code that is tedious to write.

Its a fair point, its not the writing per se thats tedious:

Fetch data from API 9522, write storage/trasformation/validation code, write display code. Test, tweak/fix, deploy.

Do you know how many badly designed and poorly documented API's I have had to go through in 25+ years? Do you know how many times I have written the same name/first_name/FirstName/First_name mapping between what comes in and what already exists. Today it's an old personal project, tommrow a client app, the day after home assistant (and templated yaml).

Why should I spend any time figuring out if the api doc is poorly or well written? Why should I learn what esoteric scheme of tokens you have chosen to put up the facade of security. Is mapping code fun to write? It's like the boiler plate around handling an error or writing a log message (things that you let autocomplete do if you can). Do you really want to invest in the bizarre choices of systems you USE but not often enough to make it worth your time to commit their goofy choices to memory (I'm looking at you templated yaml).

You are right that the "code is easy". It's the whole process and expense of brain power on things that are, in the long run, useless that makes it tedious. The study where people did not retain what the wrote/did with the LLM is a selling point not a down side. Tomorrow I have to do the same with API 9523 and 9524, and I'm going to be happy if it gets done and I retain none of it.


I quite enjoy inventing parsers for docs and generating clients. You should try that approach instead of writing everything by hand.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: