Live data from Hacker News

Create a web app from scratch in under 5 minutes with Meteor and Mailgun

blog.mailgun.net

41–50 of 112 posts

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#41

Just curious, how does Meteor deal with concurrency issues where multiple clients are making changes to the same objects? Does last update win? How does this get reflected back to the UI? Brief example: A grocery list that both my wife and I are editing, deleting, adding, and re-arranging at the same time.

They go into detail on this in their screen casts and online documentation.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#42
post #18

"Type this code and run it". Hey, I can teach you the theory of relativity in 30 seconds: type this "e=mc2".

Yeah, I feel the sentiment. When I read this I was like "really? 5 minutes? Are we really learning anything other than how to follow instructions here?". But I'm in a bad mood so I have to admit I'm being unfair. There's a part of me that's getting a little tired of these kinds of posts because they're often disingenuous. You're really not going to learn or build anything of real use in under 5 minutes. It's definitely a cool marketing ploy for both Meteor, who get some exposure, and Mailgun who may get some new paying customers.

But again, I'm being unfair. While what I said before still stands, there is the fact that I doubt anyone expects you to truly learn the framework in 5 minutes. It's just supposed to be an example of how easy it is to get started. And it works I guess. I personally have never gotten much out of the whole "X in Y time" genre of tutorials but I'm sure others do. Because I'm not new to programming I prefer to take my time and build out my own ideas as I follow these things. So while I read them I'm not actually following each step. I'm just understanding how you get from A to B, translating that to other tasks, and using pieces of the articles as I need them to suit my purposes if that makes sense.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#43
post #11

Anyone who says "5 minutes implementation" to me, get's a nice and sound "GO FUCK YOURSELF" EDIT: Usually it's the business monkey, UX snake oil guys and product leeches that say "Hey, that will only take like 5 minutes, right?"

I usually read it as: "this is a tool that will provide quick results at the expense of other factors". Usually, the other factors are:

1. Flexibility: The tool has limited scope and has used this limited scope to make decisions for you; or

2. Maintenance: The tool uses code generation. Maintenance cost grows with the amount of code, indifferent to its origin (generated vs manual).

Rails, in particular, suffers from problem 2.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#44
post #28

$ curl https://install.meteor.com | sh I really wish people would stop giving instructions like this. Despite all the focus on web security and sandboxing, we continue to instruct people to run arbitrary code on their user account. People should at least give any shell script they download from the internet a cursory look to see if it's doing what it should be doing instead of blindly executing the response from an H…

You're right but this is just kind of a nit-pick. It should be up to the user to decide if they trust the source. The way I see it, it all comes down to the question of do you trust the source. If the source is trustworthy from there you've got to worry about an attacker compromising your trusted source. That happens and it sucks but its life and I for one am not going to stop `gem install`ing and `curl`ing because Rubygems.org was compromised once or some other source was tampered with.

I know my sources, I trust them. If they're compromised and they take me down with them, I'm going to cry a little but it's not like I'm working on a nuclear reactor - I'm making some shit CRUD app. Now as the importance of a codebase increases the kind of attitude like I have should decrease of course.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#46
post #36

I feel like there's a certain point where thoughtfulness trumps speed while building something. Why is there such a desire to do X in N minutes? How can something unique and truly useful come from 5 shell commands?

When I want to make something unique and truly useful, I'd like to get to it. I want to waste as little time as possible on boilerplate and infrastructure.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#47
post #28

$ curl https://install.meteor.com | sh I really wish people would stop giving instructions like this. Despite all the focus on web security and sandboxing, we continue to instruct people to run arbitrary code on their user account. People should at least give any shell script they download from the internet a cursory look to see if it's doing what it should be doing instead of blindly executing the response from an H…

You're right but this is just kind of a nit-pick. It should be up to the user to decide if they trust the source. The way I see it, it all comes down to the question of do you trust the source. If the source is trustworthy from there you've got to worry about an attacker compromising your trusted source. That happens and it sucks but its life and I for one am not going to stop `gem install`ing and `curl`ing because R…

"it's not like I'm working on a nuclear reactor - I'm making some shit CRUD app."

Finally, some much needed humility on HN. Refreshing. And true.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#48
post #28

$ curl https://install.meteor.com | sh I really wish people would stop giving instructions like this. Despite all the focus on web security and sandboxing, we continue to instruct people to run arbitrary code on their user account. People should at least give any shell script they download from the internet a cursory look to see if it's doing what it should be doing instead of blindly executing the response from an H…

At least it's https; I've seen sites on HN recently[1] that suggest you run code pulled over plain http, as if that wasn't an even more horrible security risk than just blindly running a script from the Internet. [1] http://chocolatey.org/

  @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
Goodness, that looks awful.

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#49

Why does HN not like MongoDB, but does like Meteor. Meteor uses MongoDB if you don't know.

Do you have reference to support the fact that HN would be biased against MongoDB?

http://www.hnsearch.com/search#request/all&q=mongodb+bro...

Re: Create a web app from scratch in under 5 minutes with Meteor and Mailgun

#50

whats the difference between mailgun and sendgrid?

Full disclosure: I am the OP and work at Mailgun This is tough for me to answer objectively, but I'll do my best. Both services offer many of the same features and eliminate the pain of managing your own email server. Both services will achieve better deliverability at scale than managing your own server unless you know what you are doing and most people aren't interested in diving that deep into email. Mailgun is ve…

Mailgun sounds like a really good fit for me. I'm running a couchdb server, and I want to set it up to POST to my DB. Dump straight into my document store, life is good.

I did a quick try at it and ran into a 415 from couchdb, which means mailgun didn't send json. Is there a way to configure a route to do that? If not, I'll have to write a custom _update handler.

Post reply on HN