Live data from Hacker News

Tiny websites are great

tinyprojects.dev

141–150 of 227 posts

Re: Tiny websites are great

#141
post #140

Earlier quoted context omitted.

It's nice to know if people are reading what you're putting out.

Is it really so nice that you are okay with handing over their personal data to Google? I really think this is a problem.

I really don't think anything collected qualifies as personal data. I use https://minimalanalytics.com/, which sends a tiny network request.

Remember that it's easy enough to opt-out of Google Analytics, too. I leave it enabled because I consider it to be useful data for webmasters.

Re: Tiny websites are great

#142

Since we're talking about tiny websites, and this seems pretty relevant: If it's only static HTML and CSS, it's just a bucket o' files. You can store things like that on S3 for... I don't even know how little. A tiny amount. You will not find a cheaper hosting option than this. I made this site on S3, using Svelte, which is intentionally the humblest, smallest step up from plain JavaScript HTML & CSS, at the link bel…

You will find a cheaper hosting option. GitHub and GitLab pages are both free for static sites. I've used both, they both are pretty painless. You basically click "make this a website" and tell it your URL. Automatically HTTPS, completely free.

Yep, and there is also https://neocities.org/ for example :).

Re: Tiny websites are great

#143
post #16

I love this initiative in principle, but the instructions left a rather sour taste in my mouth. Create a Firebase app, download and install Node and run some arcane cli commands? For what? To upload a 10-byte HTML file somewhere? Please, do yourself and us a favour and sign up for a free account on https://neocities.org , and make a quirky website by hand for all of us to enjoy. I half want to write a post like this…

Indeed, I hear node and have to think of 'gordian'. No idea why.

Re: Tiny websites are great

#144
post #56

Earlier quoted context omitted.

Even for small personal projects, analytics can give you a lot of insights into what your viewers like. Things like session duration and bounce rate, broken down by page, can tell what content people enjoy and what contents needs some work. Also useful to know what fraction of your users are recurring versus new users to tell whether people actually return to your site or if they just check it out once. Lastly, the r…

Things like session duration and bounce rate, broken down by page, can tell what content people enjoy and what contents needs some work. All those things can be gathered from the initial request if you can set a cookie on the user's machine using a cookie header. If you're Firebase then you'd need a request for firebase-analytics.js to set the cookie, but the file itself could be empty. Also useful to know what fract…

This is so incredibly true. It's astounding how an entire generation can't be bothered to look at their own server logs and think they need to pipe it off to a third-party to let them present graphs to you.

Remember awstats and jwstats?

Re: Tiny websites are great

#146

My personal website, https://g5t.de uses a custom directory-listing kind of framework I wrote - so it doesn't tick all of the requirements. It's not much, but it does its job kinda well (still lacking notable, deep and interesting content, sorry).

That is very nice, a little broken in some places: the [001]-how-to-not-build-a-router link doesn't work, you have to click the .md file, and your github link is broken

But it looks very nice and I love the idea.

Re: Tiny websites are great

#147
I think the premise of this blog post is flawed.

> During my time using frameworks I've become more and more out of touch with the code I'm writing. For example, when I plonk down a button in the Ionic Framework I get a beautifully engineered and designed button, but it also has 10 CSS classes attached to it that I don't really understand. I sometimes feel like the thing I've created isn't truly "mine".

That seems to be the nature of CSS utility frameworks. Composition over inheritance; or in this case monolithic element styles. Is the utility function to fetch elements from the DOM tree also truly "yours"? Where's the line drawn? I could get the text representation of the DOM tree and write my own parser? How about that?

> I therefore decided to go back to the basics and code my own tiny website. I already knew how to go about it, you probably do too, it's really easy (if you don't know here's how). However, I'd never actually done it, and I'd not made a website without a framework in over a decade.

Ah! And there's the problem! Are you creating a website or an application? I do understand that this feels like a cleansing of sorts. But in my opinion doesn't reinforce the original argument.

I think the more experience you gain as a developer the more often you will come to the realization that technology evolves and also becomes more nuanced over time. When confronted with this fact of course the first instinct will be to feel overwhelmed and return to basics. Which if you're creating a mostly static website in this case is perfectly reasonable. But you can't be an expert in everything. Thus frameworks and tools emerge to alleviate some of the pain that stems from designing applications not websites.

Which again reinforces another often quoted realization: the right tool for the right job.

Re: Tiny websites are great

#148
post #137

> No libraries or frameworks (the exception being analytics) Why? Why are analytics necessary? How does it matter for such a website?

It's nice to know if people are reading what you're putting out.

I have a (french) blog[1] having analytics for first years. I realize most page views where not necessary the ones I had the most fun at writing. It was sad to realize your next post would not necessary bring interest and you start to bring what you guess peoples would be interested in, and not what you are interested at in the first place. It breaks motivation on the long run. Like if you where no more blogging for yourself.

I finally remove analytics and now write what I love without being to rationals. It brings far less pressure.

[1] https://www.fevrierdorian.com/blog/

Re: Tiny websites are great

#149

My personal website, https://g5t.de uses a custom directory-listing kind of framework I wrote - so it doesn't tick all of the requirements. It's not much, but it does its job kinda well (still lacking notable, deep and interesting content, sorry).

That is very nice, a little broken in some places: the [001]-how-to-not-build-a-router link doesn't work, you have to click the .md file, and your github link is broken But it looks very nice and I love the idea.

Thanks for your kind words! I fixed the broken links. Maybe I should automate the creation of the readme.md files. :)

Re: Tiny websites are great

#150

>“ Things have really changed since I began learning, and rightly so. Instead of coding in plain HTML, CSS and JS, I'm now using endless frameworks, modules and libraries to build increasingly more complex web and mobile applications. It's great, if I didn't use these tools my code would be an unmaintainable mess.” How sad that this has become the widely accepted narrative. There’s a lot of value right now in NOT bui…

I don't understand why changing a title tag would require any code. Is it the framework or the code? (I don't know Vue, but this smells a bit.)

We had a similar scenario at my workplace, but with React rather than Vue.

We wanted an internal component to be able to change the page title, which ended up with a project to transition to using react-helmet. It ended up taking a few weeks before this project completed.

Post reply on HN