Better HN
topnewbestaskshowjobs
Log inSign up

thedavidprice

70 karma · joined Nov 5, 2015 (11y ago) · 29 submissions

Submissions

comment 6mo ago · link · parent

I (we) have seen these pieces before: replay, time-travel debugging, tracing, APM, event sourcing, etc. What I haven’t seen is the whole thing work as described in a production setting. I.e. capture enough of a production run that you can replay it locally, get the same inputs/results, and then trace a bad value back to where it came from.

Has anyone seen prior tech that got this whole combination viably working? Or is there true (potential) novelty here in the combination of production replay + value provenance + usable workflow?

comment 4y ago · link · parent

How do you foresee region/country playing a part in the startups you choose to invest in?

comment 4y ago · link · parent

I appreciate the term "existential round" as it highlights your intention.

Are there other individuals, angels, firms, etc. that communicate a similar focus and intention specifically for software? Maybe this is more common than I previously realized.

comment 4y ago · link · parent

Yes, indeed! First off, Redwood comes with a Fastify server. `yarn rw serve` is the command you're looking for. Check out the Deploy Docs and this repo thats coming along: http://github.com/redwoodjs/docker/

Secondly, we use Gitpod extensively — starting with a Dev environment for contributing. And as of a week ago we now how a Gitpod starter that spins up a new install @latest using Postgres. Check it out here: https://github.com/redwoodjs/gitpod-starter

Full Doc and being included at the intro to the Tutorial are coming soon!

comment 4y ago · link · parent

Tape.sh runs an Electron desktop app as one of it's 4 clients.

GraphQL is a multi-client solution. Is there something more you're specifically looking for?

comment 4y ago · link · parent

Thank you for the reply. This is an interesting topic. I think at the core a comparison to Next is still apples to oranges imho and unnecessary here. But that's probably a distraction from the concepts at hand.

> Are they making simple spelling changes? Are they making changes to core languages (i.e. Typescript vs Markdown, etc.)? Are they adding a lot of new code and so forth.

I think what you're trying to get at here is answering the question, "Is PR A of greater quality or value than PR B?" I've decided that doesn't matter as much as:

- How easy is it for anyone to open and merge a PR of any kind?

- Once someone opens a PR, do they open another?

- What's the preexisting skill level of someone opening a PR relative to the difficulty of the PR they're attempting?

Trends. Over time. I can't tell you how many contributors start with simple doc updates (which, by the way, are as important as code for the Redwood community) and then follow up with a monster PR. Momentum builds momomentum. Collaboration leads to more collaboration. For the most part, "is A better than B?" is a distraction.

Again, all from my experience and not demonstrable otherwise.

> 4 months for both Next and Redwood and as it currently stands Redwood had 55 unique contributors and Next had 210

One of the reasons this likely feels low to me (in the case of # of Redwood contribs) is that we separate concerns across repos. Is this for the org or the repo?

It would be impossible to find an accurate number, but I'd be much more interested in the ratio of (unique contributors) / (project installations or downloads) and how that ratio trends over time.

For a metric like that, how might the Redwood vs. Next comparison play out?

;)

comment 4y ago · link · parent

I've been living and breathing this project for over two years. From an "is the project healthy" perspective, your explanation of what you interpret from these analytics makes no sense to me. I suspect there's some pre-existing bias as well. (I.E. yes, Next is a very popular front-end React framework and it's been around for a few more years.)

Note: I love analytics. I just think this is, well, weird reasoning from the face of it.

I'll counter with this — here are the metrics I focus on as a measure of "is our open source project healthy"?

- How many unique contributors are there per release? && Is the number growing, steady, or decreasing?

- How many new contributors are there on a monthly basis && Is the number growing, steady, or decreasing?

tl;dr:

Redwood is healthy

comment 4y ago · link · parent

Ha! My thoughts exactly. If I had more time it would make for an interesting post about all the lessons learned as we navigated the pains of Node.js in all its forms.

Lesson One — Building and Bundling are hard but don't make it harder.

We (by that I mean Peter and Danny) took a hard look at new tools, and, well, they let us down. We reverted a few steps that took us months to figure out. But we learned. And someday we'll make a move to different tooling. But in our opinion, those tools are not ready yet. (Side note: I read a tweet about how buggy SWC is with Next. Anecdotally, although we're stoked for the future of SWC, it remains as a draft PR yet to be merged in the Redwood Repo. We also reverted the primary part of our ESbuild implementation. So the tweet jived for me with our experience.)

The hype is all about speed and performance. But I think the reality is fairly simple:

- implementations become unintelligible spaghetti over time

- everyone has been burnt by having to manage this themselves

- poor implementations lead to diminishing performance

Turns out the existing tools are fairly robust. But to use them we spent an epic amount of time tuning and refactoring. It's complex. But it isn't broken. If you're willing to let good enough be good enough, set a benchmark, hit it, etch it in CI, and call it good.

Lesson Two — Let go but pin the packages

Note: We chose to have @redwood packages include all the dependencies and config and integration under the hood. Redwood apps have very little package overhead out of the box. This means we have to tame the dragon behind the scenes.

The "cool kids" seem to be moving to pnpm (and/or Yarn pnp). I've been burned many times by the monstrosity that is node_modules, but, to be fair, it's also fairly incredible what we're able to achieve. I don't think any one package manager is going to be the cure for what ails us. But I do think it's possible to MakeItWork regardless of what you choose:

- pin your packages because the dependency of your dependency is your enemy

- lean hard into CI; then lean harder

- stay current; give in and let Renovate update

Yarn 3 is a phenomenal tool. (Plus the core team is top-notch.) And we're not even using pnp yet. We do have a long way to go and yes, a faster install would be great and a smaller size on disk and etc. and etc. But, again, I think people have been burned by having to figure it out themselves and finding things unmaintainable in the long run.

---

I'm tired and likely not making much sense anymore. I might have lost the thread, but I think the overall point I was trying to get to is this --> zOMG I'm so tired of talking about build tools and package managers and chasing incremental performance gains and can't we just focus on features that move the needle and have fun again? Oh, and PIN your damn packages 'cause that "^" is nothing but trouble!

Thank you and good night.

:)

comment 4y ago · link · parent

Any chance we could be of help over in either:

Redwood Forums: https://community.redwoodjs.com

Redwood Discord: http://discord.gg/redwoodjs

?

comment 4y ago · link · parent

This is wind in our sails. Thank you for posting.

And please do show off what you've built! I'd love to see it.

comment 4y ago · link · parent

I am sincerely interested in what you learn. If you do a comparison and have some time to communicate the results, please look me up on the Redwood Forums or Twitter. This would be a helpful resource and discussion for our community and maintainers (because we are always learning and collaborating, to be clear): https://community.redwoodjs.com

No pressure at all.

(I'm one of the co-founders/leads of Redwood. Tag me @thedavidprice)

comment 4y ago · link · parent

Not that I know of. But here are a few things that may be of interest.

Redwood's GraphQL API is built on Yoga (we collaborate tightly with The Guild) — https://www.graphql-yoga.com You just need a GraphQL Client, which The Guild already has an option ready for you https://apollo-angular.com (Note: Apollo or other clients fine as well.)

Here's an example "How To" about connecting Next (React) with Redwood: https://community.redwoodjs.com/t/how-to-connect-a-next-js-f...

I'm a co-founder of Redwood and help lead the project so I can say as a matter of fact we a highly collaborative and enjoy (and support) exploratory projects. It's a priority for us to better demonstrate the power of Redwood's API through examples. If you'd be interested in digging in collaboratively with the community, I can help connect the dots. Just kick things off over here and tag me @thedavidprice: https://community.redwoodjs.com

No pressure at all! Just wanted you to know the invitation is open. Anytime.

comment 4y ago · link · parent

Ah, that is exactly what's going on. Definitely deserving of a :facepalm: from myself and those of us on the Core Team who missed that. Tom is adding a link back to www.

v1 Launch Week Schedule (this HN Post): https://v1launchweek.redwoodjs.com

RedwoodJS Website: https://redwoodjs.com

GitHub Repo and README: https://github.com/redwoodjs/redwood/

All the conversation was happening here already, so we just jumped in! Apologies for the confusion. We could have caught that earlier.

comment 4y ago · link · parent

You make some great points here!

> I think the real benefit is an increase in the chance that you build your app in a way that's sustainable

Yes, indeed! We discuss "long-term maintainability" often in the project README and during interviews. This is one of the primary lessons Tom learned when building GitHub on Rails.

> ossifies your platform into a fixed point in the hype cycle

We are learning how to communicate these things better, but conventions, tight integration, and a "golden path" do not equate to lock-in of any kind.

If you read through other comments, you'll find a lot of examples where devs are using alternatives for the API as well as front-end libraries.

comment 4y ago · link · parent

Tell me more about "obsolete", because I don't think you mean what that word means?

comment 4y ago · link · parent

You can use Redwood's API with your Angular frontend.

comment 4y ago · link · parent

> there is actual financial backing for Next.js and they have large enterprise users

We haven't communicate this very well until today. Redwood is funded and will continue to be funded. Just not in a typical "for-profit" business model. See: https://tom.preston-werner.com/2022/04/04/redwood-v1-and-fun...

> while Redwood chooses more of the stack for you and what tools you should use (Storybook, Jest, Prisma, GraphQL)

Very true! Just know that the overall integration is modular and extensible. - byo DB Client - want to use REST, go for it! - power Next via the multi-client API, lots of startups doing that already

> There are some startups that use Redwood listed on the 1.0 update website, but at least I do not know any of them

That makes sense because most of them are less than 1 year old. And the funding amount listed was raised in the previous 6 months.

comment 4y ago · link · parent

RedwoodJS is an open-source project. We are in a unique position to receive funding from Preston-Werner Ventures, which allows us to develop the codebase as well as cultivate an amazing community.

Although it's not a typical for-profit business model, we are sustainable and will enthusiastically continue building Redwood to v2 and well beyond.

You can read more about all of that in today's blog post from Tom (aka mojombo): https://tom.preston-werner.com/2022/04/04/redwood-v1-and-fun...

comment 4y ago · link · parent

Yes, indeed! And then posted to YouTube https://youtube.com/redwoodjs

comment 4y ago · link · parent

You can use RedwoodJS API as the backend for Next. There are several startups with multi-client products including a Next front-end as one of many.

comment 4y ago · link · parent

Co-founder of RedwoodJS here. We are so excited and proud of what Redwood has become, both as a project and as a community! Whether you are setting off to start your side project or looking to become an open-source contributor, I'd like to personally invite you to join us.

With Redwood, no one has to go it alone.

If you have any questions along the way, don't hesitate to reach out to me. I'll be watching comments here. And my DMs are open everywhere.

Join the Redwood Community: https://redwoodjs.com/community

So very excited to see what people with Redwood

comment 5y ago · link · parent

> So the idea is mostly about unifying the community with a website dedicated to this paradigm, and if we're lucky we play a small role in promoting more development and better tools in the future.

Yes, please!

comment 5y ago · link · parent

I'm on the RedwoodJS core team and can 100% confirm early performance issues. That's no longer been the case recently. I've seen bulk operations perform just fine and even data pipeline use cases. Now the issue is DB performance in a serverless infra, which needs extra set up and config to perform consistently and at scale.

comment 6y ago · link · parent

Correct. One API. But chose the client (or as many) that you want.

comment 6y ago · link · parent

We are stretching the definition of "JAMstack" here. But the primarily intended emphasis is not just React+API -- it's making structure+design choices that target serverless infrastructure out of the box. It's not perfect and we have a ways to go, but being able to deploy fully serverless is what RedwoodJS is all about.

comment 6y ago · link · parent

That's all @cannikin doing!! Here's his framework, opinions included :) https://github.com/cannikin/cameronjs

comment 6y ago · link · parent

You bet. See our roadmap list here https://redwoodjs.com/tutorial/wrapping-up And if you haven't read the README yet, that will help with the overall vision + direction https://redwoodjs.com/docs

comment 6y ago · link · parent

FaunaDB is definitely on our radar. Thanks for the link -- will check it out now.

comment 6y ago · link · parent

Thanks for the kind words and questions! Others from the team can go into more detail, but here's some high-level for now:

- Typescript is definitely a priority for us. But implementation so far is starting with the backend (see https://github.com/redwoodjs/redwood for current), which isn't inclusive as of yet. We are looking for community involvement here as well.

- Admin interface: ah, very interesting. Could definitely be on the roadmap in the future. We're off to a great start with the Scaffold generator, which uses the schema to create all the pages necessary to run end-to-end CRUD operations on a database table. See https://redwoodjs.com/tutorial/getting-dynamic

- Boilerplate: The short answer is "yes indeed"! It's not 1-to-1 with your example, but there are lots of cases where you'll find this thinking+implementation. Again, the tutorial walkthrough is the best place to see some of this in action.