Lurker News

Comments (122) 25 threads

Earlier comments
la647104 replies#
What is the reason for “open sourcing” this , when any meaningful implementation is locked away behind services and is closed source. I just think these kind of use cases confuses users. There is no problem in being closed source and proprietary (unless you are using preexisting open source code and open sourcing those parts of your code makes it legally compliant) . In any case it is confusing at best and misleading at the worst.
cynicalsecurity3 replies#
Free advertising on Haker News. 10 bucks net profit without any grows is also profitable. Getting to the main page of HN was worth open sourcing what had no potential anyway.

This is my reasoning, I'm not the creator of this.

ricardonunez#
Username checks out.
winrid1 reply#
As someone that built a 20m ARR survey product... The only difference between this and something making millions is a sales team.
testbf1 reply#
And millions in bots and fake reviews.

Continue this thread — 1 reply

lelanthran#
I think maybe you're being overly cynical (yes yes, I did see your username!)

Sometimes, large companies open-source a SaaS product because they expect to make more money from the free marketing (See yesterdays post about headline-driven development) even though their implementation remains closed.
We still give them news-space, don't we? Why should we act any differently for solo developers?

jraph1 reply#
> when any meaningful implementation is locked away behind services and is closed source.

As someone seeking a purely open source forms solution, what do you mean by this?

ensignavenger#
Not the commenter you replied to, but I noticed that it depends on Redis and Mongo, which are proprietary database products. However, there are Redis and Mongo mostly-compatible DBs that are Open Source, so you can probably swap them in (though the project may not officially support them and test with them, so you may have to be willing to contribute testing and bug fixes yourself).
j451 reply#
There are organizations (often not small) that will pay for a hosted and closed source solution if it is available under dual license in case it goes away.

Other organizations still, have open source only policies, or no open source at all.
Many of these applications can be in government.
It can increase the footprint.

ensignavenger1 reply#
What organizations have a no open source policy? They would be hard pressed to find any significant commercial software that doesn't have an open source dependency somewhere it its dependency chain!

Continue this thread — 2 replies

ensignavenger#
I see that the project appears to depend on Mongo and Redis, both non-open source. However, both have substantially compatible alternatives that a user should use in their place. Even if they did not, having the source code available under an open source license means that users can fork it and swap these databases out for something better. Users can learn from and modify the source code for their own uses. Users can review the source code for quality and security. All of these things are possible when the code is open source. So yeah, it would be nice if it used open source dependencies or at least officially supported alternative open source dependencies, making the application open source as is is still a win over keeping it proprietary.
izwasm9 replies#
I really like that you are using nestjs, idk why some devs hate it, IMHO its the best node framework that can be used to build production ready apps, i started using it a month ago at work and it was my first time using it, and it already made so productive
wouldbecouldbe1 reply#
NestJS is nodeJS for Java people. It's like Angular in that sense.

So some people will feel like it's over engineered.
I mean it's overengineered. Why do I have to register all these things, and why does it keep crashing if I register it like this without any understandable error message. It has a little bit of an OCD relationship with dependency injection. Where the normal import system can handle most of those cases.
But few nice things, resolvers, auto-generate swaggers. And TypeORM is lovely.
But yeah it's a bit too demanding. I'm okay with an opiniated framework if it gives a lot of features out of the box (like laravel or NextJs), but NestJS tells me how to do things without giving me enough in return. (auth, sockets etc are still quite a lot of work)

mewpmewp22 replies#
Yeah, I don't know, most of the time only time you actually need dep injection is for tests, and at that point why not just mock with Jest? Feels too much just having to do all this work just to complicate dependencies and make moving around more difficult for tests when a much simpler solution is available.
tisdadd1 reply#
Just wanted to chime in and say that if you use the CLI to generate things, the experience is much nicer. However, you do still need to be in their playground. If you have a large team out org and don't want to have to document extra about the guts, I love having something proven. If you need to mix protocols, I believe Feathers JS was a little simpler to get into last I looked.

Continue this thread — 1 reply

wouldbecouldbe2 replies#
Dependency injection was not really meant to help with testing, but to keep code decoupled. It can be a nice pattern, but even if nestjs forces us to do it, we developers still find creative ways to nullify any attempts to decouple the code we write :).

Continue this thread — 2 replies

pjerem#
nestjs is nice if you’re coming from Angular. It’s basically Angular for the backend.

But like Angular, there is a very wide range of use cases where it is totally overkill and like Angular, companies are throwing it at each and every project.
I don’t find it bad but it’s in a strange spot being more bloated than other JS frameworks while still being way less "batteries included" than more classical corporate frameworks.
Like Angular, I don’t hate it though it’s just that I still haven’t figured out a project where it’s better suited than something else.

_fat_santa#
I recently migrated my API from lambda functions do a dockerized Node API and I evaluated NestJS, though ended up using Fastify. Like others have mentioned, it's great for devs that come from Angular or Java but for me I didn't like that it used decorators all over the place and preferred to have something more "Express like"
calmoo2 replies#
Best makes JavaScript look like Java, it’s needlessly complex and just encourages vast amounts of boilerplate. Awful stuff.
eddd-ddde1 reply#
This is precisely my experience. Classes are painful to deal with. Decorators are not only unergonomic, they also throw away any type safety. Also Nest shoves class transformer and class validator down your throat, which are also a pian in the ass.

My go-to right now is itty router with zod.

kwhitley1 reply#
Love to hear it!

Btw, itty-router v5 just dropped a couple days ago, with a fun batteries-included (still ultra-small) router, that should make your code even leaner.
How is the integration w/ zod anyway, and how can we make it better?

Continue this thread — 1 reply

dns_snek#
Same experience here. Admittedly it's been a few years since I last used it, but there was so much boilerplate coupled with a layer of "magic" that was too thick for my liking.

Provider initialization (dependency injection) failed on me on a few occasions and it always wasted hours of productivity. It would break in some obscure way that wouldn't log any errors to the console, so there was nothing to go on besides attaching a debugger and stepping through layers of framework code. It was quite infuriating because it always happened when I was in the middle of something else.
If your specific use case wasn't covered by their docs (which were very barebones and "hello-world" oriented at the time), it was painful to figure out and use.

aswerty1 reply#
I'm literally in the middle of spending my evening, outside of work, gutting NestJS from a project I've inherited at work. I would literally consider changing jobs if I couldn't remove it.

There is so much to unpack to get as why I have such an issue with it. But time and again I have been frustrated with it in terms of: it's design philosophy, implementation, scope of what it covers, bloat, recommended implementation approaches, etc.
I don't understand how a single framework can think that it should cover: message/request handling, logging, config management, dependency inversion, persistence, and IO. These things have almost no cross over (i.e. if they are well designed they should be easily composable with any other component) but time and again framework developers attempt to bundle them into a "one size fits all solution".
To best sum it up. I think any package I use should be secondary to my application. But this package makes it so that my application is secondary to the framework.

jzig1 reply#
Don’t .NET and Rails do all those things?
NicoJuicy2 replies#
They provide a default.

I suppose in nextjs it's the only option?

Continue this thread — 2 replies

winrid1 reply#
The worst Java frameworks are better than NestJS IMO
pas1 reply#
Why? In what sense? What would you recommend instead for TS? And what would you recommend instead of Nest and TS?
winrid#
I wouldn't really recommend TS anymore. I would just go to a compiled language that actually has runtime type safety and a good ecosystem and devx. Although, it looks like Deno/Bun will improve things. After working with it for 5yrs, I just don't want to deal with the typescript compiler and ecosystem anymore, it's more of a headache than it's worth when Java (or ktl), Go, (and because HN: rust) are great.
bieberChen#
I use nestjs in my open source no-code database https://github.com/teableio/teable, and I really like it, especially the dependency injection capability.
datascienced#
Why Nest over Next? Is it worth switching?
mufeng#
Why not use NestJS, a framework that solves the engineering problems you encounter in other Node.js frameworks?
quantumwoke3 replies#
Can anyone confirm if the legal advice here https://docs.heyform.net/license is correct? Seems slightly different to my own interpretation of the spirit of GPL.
nerpderp821 reply#
They would need to use the AGPL if they want folks that self-host to release their changes.
fsckboy1 reply#
I don't know if the page changed, but it says that it is using AGPL
bachmeier2 replies#
There's nothing problematic about this, except that it's GPL plus conditions. AFAICT, only the second condition would be in addition to the GPL, but I didn't spend much time thinking about it.
thih9#
> it's GPL plus conditions

Not in a uniform way - the license distributed with the code on github doesn’t have the extra conditions.
At this point I’d nuke the repo and force push with AGPL license instead, that seems a better fit.

jahewson3 replies#
GPL does not permit additional conditions, it actually states that additional conditions may be removed by the licensee.

In this case, I don’t see the actual license containing additional conditions, simply that the FAQ guidance on the page is misleading.

Continue this thread — 3 replies

Continue this thread — 1 more reply

thih92 replies#
Congrats on open sourcing your project!

I see that it relies on mongodb, at a first glance this seems a good fit for a forms oriented product - looks like using a document db for actually dealing with documents. How did it work out for you? Would you choose it again?

Continue this thread — 2 replies

Load more comments