News for hackers. Stuff that matters.
Re:Medium asks $5 a month for nothing by sverige on Saturday March 25, 2017 @08:15AM (#13955249)
> it has become the go-to site for tech musings written by unpaid people who can't be bothered to set up their own blogs.

This is it for me. If you want to write about tech, or the tech scene, and especially web tech, why can't you just build a site? I've built a few and I don't even do web development for a living so I had to teach myself some stuff.

Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @08:38AM (#13955321)
Because it is difficult, a lot of work and potentially very expensive (when you have traffic) to build your own.

If you are in tech, you should understand to use the right tool for the job.

Re:Medium asks $5 a month for nothing by hdra on Saturday March 25, 2017 @09:14AM (#13955453)
I agree. I don't think they should write a custom website to host their articles. I'm perfectly happy reading Ghost or WordPress.com articles as long as the site is well designed to fit the content.

While Medium is a very beautiful, well designed site, it doesn't work equally well for every kind of content out there. Technical content with code snippets are one of the least-suitable type of content for Medium.com design.

No matter how much thought is put into the design of the site, Medium's design is still designed to be a one-size-fit-all kind of product, and well, that means no matter how high quality their design is, it is still taking a somewhat "highest-common-denominator" approach to the design.

Re:Medium asks $5 a month for nothing by sverige on Saturday March 25, 2017 @08:48AM (#13955364)
I'm not saying you have to build a server to host your blog. You can host it on AWS or elsewhere if you get a lot of traffic. It's not that hard to get a domain name, host it somewhere, and write some HTML code.

Yes, it could be difficult and a lot of work if you think you need embedded videos that autoplay and follow readers as they scroll down trying to escape that and the pop up pestering them to subscribe.

Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @08:57AM (#13955405)
Hosting it somewhere on your own will not give you good analytics, a good clean theme, and a CDN. A wordpress does. You're going for a ton of extra work.

AWS is madness for personal projects. You don't seem to realize how bad you're about to be bankrupt when an article hit the front HN page. If you have a high quality picture, a gif or a video, it's game over.

Re:Medium asks $5 a month for nothing by Turing_Machine on Saturday March 25, 2017 @10:43AM (#13955885)
"You don't seem to realize how bad you're about to be bankrupt when an article hit the front HN page."

I've had a couple of AWS-hosted pages make it to the HN front page.

I don't recall my S3 bill going up to any significant degree, much less bankrupting me.

S3 bandwidth is $0.023/GB at the most expensive tier. It's hard to imagine bankruptcy resulting from any text-oriented site, even if it does hit the HN home page. Maybe if you're hosting hours of HD video or something.

Also, I've never had any trouble using CDNs from an S3 page. Details?

Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @02:54PM (#13956999)
Bandwidth is $0.090 per GB. (You mixed it up with the storage price that is $0.023/GB).

Let's say the site is 1MB to deliver. That's nothing fancy, lots of text, css, logos, headers.

For 100k viewers, that's about 100GB of traffic, or $9 dollars.

How do you bankrupt yourself with your blog from there: By multiplying it.

1) You've got more than this single article => triple it.

2) You've got medias (picture/gif/video) that take 3MB => quadruple it.

3) My traffic stats don't account for bots/crawler => You're at the mercy of them or any dude who "ab -n 1000000 yoursite.com/logo.png"

A bill of hundreds of dollars for a personal blog might not scare a HN silicon valley engineer making $15k a month but that's much more than enough for the rest of the world. Even in western Europe, don't expect the disposable income to be much more than $100 a month.

Re:Medium asks $5 a month for nothing by Turing_Machine on Saturday March 25, 2017 @10:34PM (#13958755)
"Bandwidth is $0.090 per GB. (You mixed it up with the storage price that is $0.023/GB)."

Correct, my fault there. I was somehow looking at the wrong chart.

"Let's say the site is 1MB to deliver"

I think your estimate of the size of a typical blog post is considerably at variance with the norm. 2-3K would be more like it. Maybe 100K with logo.

Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @11:08PM (#13958878)
The HTTP headers alone to do a couple of requests are more than 4kB.

The text alone of an article can easily be more than 10kB (that's about 1500 words).

3k might have been correct in 1997 for a single standalone HTML page with only text, very little text actually, and very little formatting.

100k is doable for a very minimal site.

Re:Medium asks $5 a month for nothing by Turing_Machine on Sunday March 26, 2017 @08:16PM (#13964196)
1500 words is much longer than the norm for a blog post. The standard length for classic newspaper columns (in the U.S.) was 700-750 words, and most bloggers don't write posts anywhere near the length of a newspaper column.

By the way, are we talking about normal blog posts or are we talking about "sites"? What is a "site"? Wikipedia is a site. So is a page with nothing but "Hello, world" on it.

Re:Medium asks $5 a month for nothing by user5994461 on Saturday April 01, 2017 @09:37AM (#14012040)
Newpapers are short. Blogs articles are longer.

Most articles on the top of Google (outside of news) are much longer than 700 words. See there for some numbers:

https://www.snapagency.com/blog/whatll-be-the-best-length-fo...

Re:Medium asks $5 a month for nothing by watwut on Saturday March 25, 2017 @09:49AM (#13955615)
It is harder to make said html look nice - unless you are graphics designer. But also, it requires additional time to spend which matters.
Re:Medium asks $5 a month for nothing by muraiki on Saturday March 25, 2017 @09:44AM (#13955588)
Hosting a web site for a blog is expensive? A local webhost offers 75GB of transfer for $6 a month, with the highest transfer day per month dropped completely. If you want a CDN on top of that, it's a whopping $1 per month per 10GB.
Re:Medium asks $5 a month for nothing by z3t4 on Saturday March 25, 2017 @08:46AM (#13955357)
you could easy have a web server with thousands of visitors running on a rasbery pi. i would say a week end project to set it up or one hour if you already are familiar with web servers.
Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @09:01AM (#13955411)
Your raspbeery will be crushed to death when the article will go on the first page of HN.

You seriously overestimate the capabilities of a raspberry and undestimate the traffic you get.

Re:Medium asks $5 a month for nothing by ttd on Saturday March 25, 2017 @09:24AM (#13955493)
I'm curious about this. If you have a purely static site, what would be the major bottleneck for a front-page-reaching site hosted on a raspberry pi? I'm thinking things like compression would eat up a lot of its CPU, but you seem to know more about this than me.
Re:Medium asks $5 a month for nothing by mcbits on Saturday March 25, 2017 @10:05AM (#13955681)
A solid 3,000-word article with enough CSS to make the page look nice will fit comfortably in 20-30KB gzipped. A Raspberry Pi could handle on the order of tens of requests per second (tens of thousands per hour).

A fluffy 500-word Medium-style article with 1-2MB of JavaScript serving no apparent purpose and 5-10MB of animated GIFs would be another story.

Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @03:14PM (#13957104)
A realistic static site will have multiple css, a logo, potential images in the headers/footers/sides, links to the other top read articles with icons, pictures/schemas/drawing/photos in the content.

That sets any stupid article at a 500kB bar.

I have no doubt that a HN engineer can publish a single .txt file and force gzip-9 compression, however that's not an acceptable blog by any standard.

Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @03:02PM (#13957054)
> what would be the major bottleneck for a front-page-reaching site hosted on a raspberry pi?

For a fully static fully cachable site, it's the bandwidth.

Your home connection cannot serve Gigabytes of data in a timely fashion.

Re:Medium asks $5 a month for nothing by jessaustin on Saturday March 25, 2017 @09:54AM (#13955638)
Can't compression be done ahead of time? ISTR it worked that way when serving content directly from S3, at one point...
Re:Medium asks $5 a month for nothing by user5994461 on Saturday March 25, 2017 @03:24PM (#13957139)
Last I checked, compression wasn't supported by all browsers all the time. It needs to be done dynamically depending on the settings the browser allows.

nginx or varnish can do that (with more or less correct rules).

In practise, I usually disable compression everywhere and let the CDN handles it.

The CDN is configured to compress on the fly and I am very confident that CloudFlare/Akamai are doing that much better than a broken snippet of nginx settings from stack overflow.

Re:Medium asks $5 a month for nothing by jessaustin on Sunday March 26, 2017 @10:30AM (#13960936)
As one would expect, S3 can certainly support various browsers. It ends up being just like content negotiation, in that you have multiple representations that could be served from a particular resource, depending on what headers are sent.

I'm not sure if it's still like that, since I'm not using S3 for that right now.

Re:Medium asks $5 a month for nothing by ttd on Saturday March 25, 2017 @10:33AM (#13955830)
I'm not an expert by any means, but I think you can manually gzip your content and add rewrite rules to Apache (don't know about other servers) to use the .gz versions. I think this is the only way for compressed content to be cached by Apache, but I'd love to learn if I'm wrong here.
Re:Medium asks $5 a month for nothing by z3t4 on Saturday March 25, 2017 @07:48PM (#13958126)
You could also reuse an old laptop, buy a proper server, rent a VPS, or buy web hosting space for a few bucks per month.
Re:Medium asks $5 a month for nothing by z3t4 on Saturday March 25, 2017 @08:41AM (#13955338)
even worse i have seen web devs using png tables instead of html tables or svg. have publishing web content become too hard ?