Live data from Hacker News

Ask HN: Go-to web stack today?

news.ycombinator.com

331–340 of 453 posts

Re: Ask HN: Go-to web stack today?

#331
post #79
post #17

Earlier quoted context omitted.

how do you handle SEO in this case? AFAIK most crawlers (including facebook etc) don't load javascript, so I'm always wondering how to allow dynamic pages (say a product's page) to be crawled and have a og meta tags. If this had a great solution, boy things today would be much easier!

Google will load JavaScript but you can also use react-static to do static SSR if you’d like your first render to be fast or you’d like better SEO from crawlers that don’t read JS. Ping me if you’d like to know more.

my question is directly related with parent's answer, which, afaik, react assets on s3 + lambda won't allow SSR.

Re: Ask HN: Go-to web stack today?

#332

Use what you know. The technology fashion show continues on at full tilt. PHP, asp.net, node, go, etc. Angular, react, Vue, etc MySQL, sqlserver, postgres, nosql, etc. I've used all of these and more to build systems. I'd stick with what you know and look at what your requirements are, SEO, massive scaling, needs to be cheap, needs to run on multiple platforms, et.

Your username matches the suggestion in your comment (which I agree with wholeheartedly)

Re: Ask HN: Go-to web stack today?

#333

Earlier quoted context omitted.

We've been following this stalk for quite a while and are super happy with it. But there's huge downside: It's really hard to find Django/ Python engineers - let alone phoenix devs. Right now I'm considering a move to JVM. But the frameworks i've seen are all far behind Django. Any thoughts?

Spring Boot is pretty good actually. It doesn’t match some of Django’s features, but if I were to use JVM now, either Spring Boot or a standard Clojure stack with Ring (coupled with Honeywell) would be good enough. (Of course finding Clojure devs is harder, I have spent a lot of time evangelizing it in my country with little success.) I have used both last year in production without issues. Still, Django and Rails ma…

What is Honeywell?

Re: Ask HN: Go-to web stack today?

#334
post #18
post #17

Earlier quoted context omitted.

how do you handle SEO in this case? AFAIK most crawlers (including facebook etc) don't load javascript, so I'm always wondering how to allow dynamic pages (say a product's page) to be crawled and have a og meta tags. If this had a great solution, boy things today would be much easier!

If you are relying on SEO to gain initial traction, your project is going to fail. Start worrying about SEO when you have a core base of users who are actually using your product and by then you'll be more interested in refining features for your userbase that you won't fall into the feng shui trap that is SEO. edited to add: The reason I discount SEO like this is because SEO is essentially chasing a search result ag…

Nobody mentioned initial traction or if it is too early to worry about SEO.

As I asked in my question, I also mentioned the need for og meta tags for social sharing, which is something that is often important for clients I talk to.

The appeal of a static SPA hosted on s3 is great, but I have trouble getting good responses about such fundamentals from people who advocate this architecture.

Re: Ask HN: Go-to web stack today?

#336
post #222

Earlier quoted context omitted.

Some good advice is there but also a lot of misleading stuff. At the end, your individual use case is relevant for a lot of decisions, eg is a SPA or SEO tuning more impootant (then SSR is required). Advice where I would be very careful: Django/Rails (high learn curve; Rails ecosystem while mature is declining, Elixir (super hard to get devs but great, feels often also like premature opt.), relational DBs are great b…

> relational DBs are great but should never be the default What??? Relational DBs are the cornerstone of storage for we applications. And with postgres, you can add jsonb columns when you need unstructured. What could possibly be the default that dethrones relational DBs?

bs sorry, only because there are many use cases for sql doesn't mean it should be default. there is great db tech out there which doesn't fit to all requirements but can save you tons of time.

Re: Ask HN: Go-to web stack today?

#337

Earlier quoted context omitted.

I would be happy to show you how to use redux, without switch statements and even without reducers. It's not that hard, and if you don't like it, just use other state management libs. But don't call it poor design - it has 2 methods.

Can you point to any writeups on this? Would love to reduce the boilerplate a bit, while still needing a global state management tool for a smaller app.

Hi, if you mean how to get rid of switch statements, you can check my comment bellow - about "action-reducer".

I've seen https://github.com/erikras/ducks-modular-redux and it's close to what I do.

Also you can check - https://github.com/reduxjs/redux/issues/1167#issuecomment-38...

Re: Ask HN: Go-to web stack today?

#338
I recently tried Google's cloud functions for backend and firestore for database on a decently sized project. I think it is a good fit for quick small projects and a good experiment if you don't mind a small learning curve. The minor shift in design patterns took me a while to adjust.

Pros:

- Setup is pretty quick, you can move quickly from scratch.

- Deployment is painless.

Cons:

- Firestore is NoSQL which is a huge caveat.

I had to scale the project and add some features later on. Faced some bumps here and there but nothing major (since firebase is still under development). AWS also has similar offerings (lambda, hosted DB etc.) in the same space. I haven't tried them out but look forward to doing so.

For frontend use Vue 10/10 especially if you're looking to put together something quickly. I felt Vue provides a lot more room for "hacking" quick solutions(and improving on top of it later) compared to Angular or even React.

I only prefer this stack for "reactive" web apps though that have a lot of dynamic components. For a traditional website I'd still go with jQuery/Django/SQL.

Re: Ask HN: Go-to web stack today?

#339

Earlier quoted context omitted.

I would be happy to show you how to use redux, without switch statements and even without reducers. It's not that hard, and if you don't like it, just use other state management libs. But don't call it poor design - it has 2 methods.

Can you point to any writeups on this? Would love to reduce the boilerplate a bit, while still needing a global state management tool for a smaller app.

Hi, I'm a Redux maintainer. Here's a few resources.

First, the docs already have a page called "Reducing Boilerplate", which shows patterns like writing a function that accepts a lookup table of reducers [0].

Second, a while back I wrote a pair of posts called "The Tao of Redux" [1] [2]. Part 1 discusses the implementation and intent behind how Redux is meant to be used, and Part 2 looks at why common usage practices exist. As part of that, I pointed out that you can use whatever logic you want in your reducers, and as much or as little abstraction on top of Redux. Switch statements are simply the most obvious way to handle multiple values for a single field, but you should feel free to use whatever approach you want.

Third, we've recently created a new package called `redux-starter-kit` [3]. It helps simplify several common use cases, including store setup, defining reducers, immutable update logic, and even creating entire "slices" of state at once without writing any action types or action creators by hand. I'd encourage you to try it out and let us know how well it works for you.

Please let me know if you've got any other questions I can help with!

[0] https://redux.js.org/recipes/reducing-boilerplate

[1] https://blog.isquaredsoftware.com/2017/05/idiomatic-redux-ta...

[2] https://blog.isquaredsoftware.com/2017/05/idiomatic-redux-ta...

[3] https://redux-starter-kit.js.org/

Re: Ask HN: Go-to web stack today?

#340

Earlier quoted context omitted.

> - Do not use redux until you know React well. You might not need it. Indeed, I would say not using redux at all. I never understood why redux has become so popular, IMAO it's such poor design. It forces you to use switch statements, reducers, mapStateToProps(why?), etc.. Tons of boilerplate in order to set 1 single variable. Not talking about how to put data from the backend into the store in a SSR app.. I'm now us…

Redux still baffles me. I've implemented it 4 times, and it still confuses the hell out of me. MobX is a much better fit for most react apps IMHO. Redux could be good, if you have a database [id] driven application, but for most people is way too restrictive. If you are working in a small team, and are using Redux, you are probably making life harder than it has to be.

Hi, I'm a Redux maintainer. Any specific aspects you're having trouble with? Happy to answer questions.
Post reply on HN