Live data from Hacker News

Write libraries instead of services, where possible

catern.com

31–40 of 328 posts

Re: Write libraries instead of services, where possible

#31

> A service has constant administration costs which are paid by the service provider. A properly designed library instead moves these costs to the users of the library. I agree with the articles point, but this introduction, right there, is why it's not happening. SaaS turns your startup into a unicorn and yourself into a rich person. Or at least that's what you are hoping/aiming for. A library is not going to make y…

[deleted]

Re: Write libraries instead of services, where possible

#32

Earlier quoted context omitted.

Stealing a library is easier than stealing a service.

Yes. I suppose it’s the same with installable software. But it sells anyway.

One example of this is computer games. There are games like StarCraft 2, Diablo 3, where server is required even for solo-playing and it's not possible to play offline. I think that one of the reasons is to make it harder to crack a game (as you would need to re-implement server) and to make a cracked game objectively worse (as your implementation will not be as polished).

Re: Write libraries instead of services, where possible

#33
1990s advice on a 1990s website. It's the opposite. We need to move away from package hell by splitting our work in two opposite directions: on the one hand, we should move back to large, effective standard libraries; on the other hand, we should move toward more services, fewer library packages. A project shouldn't need more than a few packages, usually for something like a database connection protocol. Working with libraries is the worst part of the job.

Re: Write libraries instead of services, where possible

#34
post #23

This is very sound advice. That being said it's incredibly hard to follow this advice in environments which encourage a polyglot stack and 'the best tool for the job' mindset. The moment you have more than one language in your stack it becomes easier to build services than to maintain libraries in each language. You can of course write native C libraries with bindings to different languages but that's a bit weird. It…

why weird?

It also doesn't have to be C, just anything that compiles to a native binary lib.

Re: Write libraries instead of services, where possible

#37
post #33

1990s advice on a 1990s website. It's the opposite. We need to move away from package hell by splitting our work in two opposite directions: on the one hand, we should move back to large, effective standard libraries; on the other hand, we should move toward more services, fewer library packages. A project shouldn't need more than a few packages, usually for something like a database connection protocol. Working with…

This is one of the worst ideas I've ever read on this site. But I'm glad you wrote it, as this is the epitome of a sentiment I've many times seen lurking.

- Standard libraries always go bad over time as idioms change and they don't have a policy for breaking changes

- Services do not compose as easily as libraries. Composition is key to code reuse.

I understand most off the industry deals with terrible libraries, and many of you long for simpler times, but the proliferation of complexity will occur with or without the NPMs of the world, as the industry grows and functions in a economy that doesn't care about externalities, including endemic stupid extra complexity.

Re: Write libraries instead of services, where possible

#40

> A service has constant administration costs which are paid by the service provider. A properly designed library instead moves these costs to the users of the library. I agree with the articles point, but this introduction, right there, is why it's not happening. SaaS turns your startup into a unicorn and yourself into a rich person. Or at least that's what you are hoping/aiming for. A library is not going to make y…

Is SaaS really the only viable (or "unicorn") business model?

Do people not sell software licenses anymore? (In theory nothing prevents you from making your license require recurring payment as well)

Post reply on HN