Live data from Hacker News

A new blog for 2024

chrisnicholas.dev

51–60 of 114 posts

Re: A new blog for 2024

#51
post #35
post #24

Again, because I'm boring like that: it's pretty hilarious to me that anyone would choose to make a new blog and not just use WordPress, especially when their stated aim contains this: "...that makes it as easy as possible to create posts". There are some moments when you shouldn't use WordPress. A blog is not one of those moments. Avoiding the obvious tool for the job is classic developer trendytool syndrome.

Please don't post shallow dismissals, especially of other people's work. https://news.ycombinator.com/newsguidelines.html

Shallow because...?

I was making a point that the best tool for the job can sometimes be the one which is widely used, hugely supported, cheap to host, well understood - it may not be the trendy choice, but "trendy" is not (in my humble opinion) a terribly good criteria for tech stack decisions...

Re: A new blog for 2024

#52
Catalyst looks pretty neat. I decided not to go with any kind of component system for the latest iteration of my blog / personal site, and overall I like that decision - I know how everything on the site works, and I just write articles in plain HTML. I really enjoy the flexibility I get from this approach, and it's allowed me to do some neat layout things on certain articles without having to figure out how to escape from the context of a SSG or whatever.

I will say, though, that there's a bit more manual labor involved in setting up a page and writing content than I would prefer. In some of my articles it would have definitely saved time to just write the content in markdown, and there are a few repeated components on each page that would definitely be nice to extract out.

So anyway, maybe some kind of minor refactor is in order - although every time I consider doing this, I try to remind myself that actually writing / making content is the more important thing to spend time on. Maybe if I ever get to the point where I'm writing multiple posts a week it would be worth optimizing the workflow more.

Re: A new blog for 2024

#53
post #51
post #35

Earlier quoted context omitted.

Please don't post shallow dismissals, especially of other people's work. https://news.ycombinator.com/newsguidelines.html

Shallow because...? I was making a point that the best tool for the job can sometimes be the one which is widely used, hugely supported, cheap to host, well understood - it may not be the trendy choice, but "trendy" is not (in my humble opinion) a terribly good criteria for tech stack decisions...

It's not an interesting point, especially if you intend it as a tangential flamewar hook and, as you say yourself, you post it repetitively. The submission is not about 'tech stack decisions', it's somebody showing something they made. You don't have to like it or have much to say about it but a completely generic 'just use something else' is well within the scope of the guideline and a bunch of other ones.

Re: A new blog for 2024

#55
post #31

Earlier quoted context omitted.

Not really, wordpress is a bit of nightmare to code upon and buying plugins and themes can result in incompatibility issues and vulnerabilities. I think Medium is easier, but it’s a walled platform.

Sorry to be argumentative, but it just isn't. It's PHP, and you probably don't need to code anything at all. You also don't need many plugins. Incompatibility issues and vulnerabilities just aren't a thing - as long as you keep stuff up to date and don't install a thousand dodgy plugins, you'll be fine. And yes, this is what I do: maintaining 50+ sites for clients, so I have been round the block a few times, not just…

"This is what I do and I am fine with all the trade-offs so doing it any other way is wrong and a waste of time" - classic developer do-as-i-say-ism.

Re: A new blog for 2024

#56
I like Next.js and have used it for a few projects. However, my previous two blog iterations (yes, I remake my blog as often as writing blog post) with Next.js (page router) were less than ideal.

Even with full static generation, Next.js still makes your site a React application. A page might be pre-rendered completely on the server, but Next will still ship JS to the client for hydrating ... zero dynamic content. Here, speed is not a concern for me (I believe the performance impact (ab)using React for text content is negligible), but the fact that it is just ... not ideal?, irks me so much.

Then I turn to Zola, a more traditional SSG, but then for any interactivity or demo in the posts, I need to add my own vanilla JS, which is a hassle to maintain, and I am not a very good developer. (Though Zola is excellent for completely static sites, much nicer than Hugo IMO.)

I want the site to have zero JS except the sprinkle of React components in the middle of otherwisr semantic DOM nodes for content. The fact that this was seemingly impossible in Next.js is just mind-boggling to me. Then I discovered Astro, which does exactly what I want, no more, no less. Only write markdown? Slap in the official Markdown plugin. Want latex math? Slap in the official remark/rehype plugins and katex stylesheet. Want react components in the middle of the post? Just import it into MDX files. The result? Absolutely no JS if there are no React components, otherwise the only JS shipped is restricted to those components.

(That should have been the logical way to build frontend, and now Next.js is following Remix and Astro with its fine-grained component approach using RSC. Too bad the last time I tried the app router, all markdown plugins broke, while Astro is building my site beautifully.)

Re: A new blog for 2024

#58
post #34

Earlier quoted context omitted.

I mean, write a simple plugin that enables you to embed these using a shortcode, if there isn't an existing plugin that does it already? WordPress is insanely customisable - it's "just php". And sure, maybe his new skill learning could be coding on WordPress :-)

> I mean, write a simple plugin that enables you to embed these using a shortcode Ok, so learn php when they could just use js which they likely already know and likely get paid to know. Wordpress and php are negative value skills, you do not want to advertise that you know those things as a developer because someone might try to hire you for them.

> Wordpress and php are negative value skills, you do not want to advertise that you know those things as a developer because someone might try to hire you for them.

This was unnecessary.

Re: A new blog for 2024

#59
post #56

I like Next.js and have used it for a few projects. However, my previous two blog iterations (yes, I remake my blog as often as writing blog post) with Next.js (page router) were less than ideal. Even with full static generation, Next.js still makes your site a React application. A page might be pre-rendered completely on the server, but Next will still ship JS to the client for hydrating ... zero dynamic content. He…

[deleted]

Re: A new blog for 2024

#60
post #48
post #41

Earlier quoted context omitted.

I'm not sure I'd want to prioritize PHP development as a new skill in 2023^H4.

Again, pretty hilarious given how full featured and fast PHP is nowadays, but ok... I'm also gonna make a little private bet that PHP will outlast a fair amount of the currently trendy tooling...

I'm with you on the anti-PHP hate, but FWIW PHP and JavaScript came out exactly 6 months apart from each other, and one is the only way to code in the browser, so I'd say both are pretty likely to last a long time.
Post reply on HN