Live data from Hacker News

Best practices in modern web projects

blog.arvidandersson.se

21–30 of 89 posts

Re: Best practices in modern web projects

#21
>Serve these through a CDN that is optimised for serving static files to ensure high transfer speeds and therefore increased user happiness.

I was not aware this was that common or even considered always the best practice. Is this really the best practice for any website? How exactly is a CDN more optimized than nginx on a dedicated server with 1GB connection?

Re: Best practices in modern web projects

#22
post #9

No idea how this is getting so many points. There's absolutely nothing of any practical interest here. Use version control and documentation... End of post. I'd say these are more industry standard practices than leading edge.

True, although you'd be surprised to see how many people fail to provide proper docs, or use git for source control, still in 2014. I agree with others in here, maybe the title is just misleading more than anything else.

Re: Best practices in modern web projects

#23
post #9

No idea how this is getting so many points. There's absolutely nothing of any practical interest here. Use version control and documentation... End of post. I'd say these are more industry standard practices than leading edge.

There will always be a new freshman class. Every year, someone joins HN (or the community at large) knowing next to nothing. We should welcome those people, not make them feel bad for being new.

Re: Best practices in modern web projects

#25
post #17
post #6

Earlier quoted context omitted.

The benefit of standardizing on a tool that is "good enough" is worth it imo. Learning git is easier than learning svn, darcs, hg, perforce and git and juggling between them when you want to submit patches to open source projects or get new clients.

I am not going to argue with you on that point, because that is the reason I am using GIT. CVS would be far more suited to my personal use cases.

I'm curious how CVS is suited enough to anyone's use cases to be worth discussing when SVN exists.

Re: Best practices in modern web projects

#26
post #16
post #7

Earlier quoted context omitted.

The world's inconsistent internet connections are a great reason to require distributed version control. I'm often trying to work from a location without a reliable connection to the internet, be it a plane, train or bus, a coffee shop with spotty internet or a meetup. Requiring a connection to a server kills productivity in those situations. Perhaps there is something to be said for Mercurial, but unless you were pr…

Yes, but I would guess that non distributed would suit 90% of use cases. I imagine most software is still developed in one physical location.

Your imagination ignores days where you WFH (like I am right now), it ignores remote workers, it ignores work while traveling, it ignores outsourcing, it ignores open source development.

But who cares, because Git or Mercurial can be used in a centralized manner if you want. But it doesn't have to be. That's why it's good.

Re: Best practices in modern web projects

#27

>Serve these through a CDN that is optimised for serving static files to ensure high transfer speeds and therefore increased user happiness. I was not aware this was that common or even considered always the best practice. Is this really the best practice for any website? How exactly is a CDN more optimized than nginx on a dedicated server with 1GB connection?

One of the reasons is that CDNs are geographically distributed so the files will be served from a datacenter closer to the client.

Re: Best practices in modern web projects

#28

>Serve these through a CDN that is optimised for serving static files to ensure high transfer speeds and therefore increased user happiness. I was not aware this was that common or even considered always the best practice. Is this really the best practice for any website? How exactly is a CDN more optimized than nginx on a dedicated server with 1GB connection?

At a minimum, a CDN automatically caches and serves content from multiple servers globally.

Re: Best practices in modern web projects

#29
The "12 Factor App" manifesto http://12factor.net/ is in the same vein as this, perhaps a bit more in-depth.

I like the idea of these guides generally. I think it'd be more valuable if they linked to example production code that followed the principles however, since there's no substitute for the real thing.

Come to think of it, I've never seen anybody write up any kind of index of (for example) Github projects that exemplify good design patterns for people to look at. Or some kind of recommended code reference list.

Re: Best practices in modern web projects

#30
post #9

No idea how this is getting so many points. There's absolutely nothing of any practical interest here. Use version control and documentation... End of post. I'd say these are more industry standard practices than leading edge.

True, although you'd be surprised to see how many people fail to provide proper docs, or use git for source control, still in 2014. I agree with others in here, maybe the title is just misleading more than anything else.

Failing to use git as your source control mechanism is not an actual problem; failing to use any source control is a problem, you don't have to use git.
Post reply on HN