Live data from Hacker News

Mern: Build JavaScript apps using React and Redux

mern.io

41–50 of 141 posts

Re: Mern: Build JavaScript apps using React and Redux

#41

Your demo needs fixing, it's open to XSS and that has been tried and tested, as expected for this crowd. :)

As a curious noob, could u explain what is the source of the XSS vulnerability in this case? Is it simply that the site isn't being served over tls/ssl?

[deleted]

Re: Mern: Build JavaScript apps using React and Redux

#42
post #40

I don't think isomorphic means what you think it means.

https://en.wikipedia.org/wiki/Linguistic_prescription vs https://en.wikipedia.org/wiki/Linguistic_description You might dislike it but it's become common usage in the js community so by any reasonable non-prescriptive definition of 'means' it 'means' what this author says.

Right! One of my favorite instructors (a computational linguist) in one of my favorite classes (linguistics) always used to say "We as linguists do not prescribe language, we describe language".

Re: Mern: Build JavaScript apps using React and Redux

#43
post #5

The page keeps mentioning 'isomorphic apps' but I have no idea what those are. From googling, they appear to be JS code that can run client and server-side? Not what I would have guessed!

> 'isomorphic apps'

…also known as 'universal apps' nowadays

(see https://medium.com/@mjackson/universal-javascript-4761051b7a...)

Re: Mern: Build JavaScript apps using React and Redux

#44

Earlier quoted context omitted.

Because people hate the constraints put in place by SQL. It doesn't really matter that they'll spend dozens of hours re-implementing stuff they would've gotten for free with SQL in a RDBMS (not to mention the benefit of serious stability), what matters is that the initial effort to make a change is much lower, and thus developers feel like they're saving a lot of time/hassle. They don't seem to connect the cost on th…

With NoSQL you do have to reimplement all of the constraints in the application but this will likely be necessary even for SQL code because you'll need to provide both server and client side validations on user input. SQL can be even more of a pain because you'll need additional checks to handle the SQL server's particular blend of error handling if/when something goes wrong. In both SQL and NoSQL, any decent ORM sho…

Why would an SQL ORM provide validations? The database itself already does.

Additionally, user data isn't the only data that needs to be validated. The vast majority of our data is generated by the program itself, and schemaless databases have given us endless headaches with this.

Re: Mern: Build JavaScript apps using React and Redux

#46
post #12

Earlier quoted context omitted.

Mongo is often quick to get people started and simple to work with. No migrations, or joins, etc. etc. It's not for every project, but quite nice for prototyping.

Not only prototyping. If the final product will have a moderate amount of users generating a moderate amount of data, there is really no drawbacks with mongoDB. The real cost is development time.

Of the mongoDB projects I've been involved with, I've always wanted to do large complex joins and filters which was just didn't perform as well as relational databases, and there is no support (as far as I know) for geo-coded data.

That's why I suggest it's good for prototyping, maybe it will work for some projects long-term, but I don't think it's the norm as mongoDb would suggest.

However, most prototypes don't end up as successes, so that's where I figure it's worth the switching cost once a go-nogo decision is made.

Re: Mern: Build JavaScript apps using React and Redux

#48

FWIW 'isomorphic javascript' was pretty much supplanted by 'universal javascript' last year per this medium post [1]. You might consider changing the copy. Edit: At the very least Dan Abramov (Redux creator) is ok with universal [2] [1] https://medium.com/@mjackson/universal-javascript-4761051b7a... [2] https://github.com/gaearon/react-redux-universal-hot-example

I was under the impression that the community as a whole had agreed to switch to that term as well. :( Given your name I reckon you feel strongly about this, too.

Re: Mern: Build JavaScript apps using React and Redux

#49
FRAMEWORK (shitty tragedy in one act)

Dramatis Personae

PROGRAMMER, programmer

HIPSTER, hipster

* * *

ACT I

Small room. There are a table with paper stacks, opened "Perrier" bottle, two huge monitors and a programmer sitting behind. Programmer reads papers, looks on first monitor, then on second and typing something. From time to time he says "damn idiots". Number of "damn idiots" is divided equally between papers, first and second monitor.

Door opens loudly

PROGRAMMER: Who's there?

Hipster runs into waving his hands

HIPSTER: Framework! New awesome framework! Just look, it's awesome! Just look!

Programmer looks into hipster's iPad

  @moccachino.render()
  helloWorld({
    view: "myProject.sample.view.Hello",
    div: "myContainer",
    data: {
      message: "Hello World!"
    }
  });
then takes a "Perrier" bottle and smashes on hipster's head. Hipster falls on the floor.

PROGRAMMER: Damn idiots.

Exeunt.

(sorry for my English)

Re: Mern: Build JavaScript apps using React and Redux

#50

So this is a repo that is being cloned on your computer [1]. I have a couple of questions : 1. Why not just creating yeoman generator? 2. Don't you think it is too opinionated and inflexible to be useful? 1: https://github.com/Hashnode/mern-cli/blob/master/lib/main.js

NIH Syndrom?
Post reply on HN