Hacker News new | ask | show | jobs
by lopkeny12ko 863 days ago
It's not 50 lines of code if all the real work is done by importing a library...

That's like saying, I can solve any problem in 2 lines of code. I'll publish a library for it first, then:

import foo; foo.do_the_thing()

Magic!

3 comments

Software developers hate this one simple trick!
did people say the same thing when assembly code got abstracted away?
There's levels of abstraction. "lines of Python" to me roughly means the standard library.
Agreed. If it was "RLHF a LLM in <50 lines" I feel it would be clear, but "lines of Python" implies something different.
Importing a library is not abstraction any more than closing your eyes is abstracting the world to black.
The point of libraries is abstraction. You get to use the library without writing the library or knowing the underlying implementation.
[relevant xkcd]