Live data from Hacker News

The ideal tech stack for a personal developer blog in 2020

vriad.com

231–240 of 275 posts

Re: The ideal tech stack for a personal developer blog in 2020

#231

Wild to see so many people fail to realize that part of a "personal developer blog"'s job is CV support. From that perspective, it makes perfect sense to build it with the same technologies as the jobs you're looking to get. But hey, I guess it's a lot more fun to talk about how somebody's hobbying wrong and they should've used Jekyll or Hugo or PHP or a shell script or a Python script or a Makefile or just hand-writ…

I think everyone is surprised because the choices made actually result in a worse UX. Sure, the backend decisions make developer's life easier, but they turn a static page of text into a big cpu and network using monster.

Everything has its place, and I am not sure react+ts is the right thing.

(and this was exacerbated by the post title.. The current title is nice, but the HN submission title made it sound like this is ideal for everyone)

Re: The ideal tech stack for a personal developer blog in 2020

#232
post #203

Earlier quoted context omitted.

That page of just text is a 1Mb download... Is this what the web has become now? Do we really need 1Mb of boilerplate for 10Kb of text?

I don't know where you got 1MB, the page for me was 363.09KB with caching off. That said, I do that React+TypeScript is overkill for a personal blog.

Yes you're right, my mistake! I just saw the headline figure but still... it's only text!

I have developed stuff in react (among other things too) but horses for courses: this is an html website with some javascript sprinkles, so it should be tiny imo.

Re: The ideal tech stack for a personal developer blog in 2020

#233

Earlier quoted context omitted.

I think TypeScript is about as standard for Javascript as it's going to get, I feel. I can't imagine writing Javascript without it anymore. But then again it took TypeScript coming along that made writing JavaScript something tolerable outside of having to use it for work. I don't think there's going to be any new typing system that's 5% better that everyone is going to shift to just because it's the new hotness anym…

Have you been around last time, when CoffeeScript definitely was here to stay? Or that other time, when Dart was almost here to stay, and on its way to replace JavaScript?

Coffeescript was here to stay? I always saw it as a seki-esoteric language people sprinkled their CV with.

Dart was a push by Google but went nowhere.

TS drives Angular, has first-class support on React and soon in Vue. Most libs have TS typings. Nextjs (amongst others) provide easy TS integration. It’s being pushed by M$, C# and Java like seem to like it and Enterprise (tm) adopts it.

It’s an entirely different beast.

Re: The ideal tech stack for a personal developer blog in 2020

#234

Earlier quoted context omitted.

Came here to say Hugo is the correct answer for a Personal Developer blog, unless you're using it to showcase your skills in a particular technology, at least in my experience. Finally dived into Hugo and it's just so easy to get going with making Markdown content and turning it into a static site with one of the themes from their gallery. There's a bit of a rabbit hole to go down if you want to get more custom than…

How do you host your site? I've been using Github Pages which has Jekyll support and that's worked fine, but I'm curious where people host their Hugo sites (or how hosting works when you run the server yourself). Is it AWS? Dreamhost? or something else? Do you have to manage a proxy or handle load/cost spikes? Can a surge of traffic take down the site? I haven't read a ton about this, but I'm curious about it. It'd b…

That's the beauty of a static site generator -- github just expects valid HMTL to be generated and pushed to a specific branch. Github has no more Jekyll support than it has support for Hugo or a custom static site generator written in bash.

I host my hugo-based blog with github pages.

Re: The ideal tech stack for a personal developer blog in 2020

#235

Earlier quoted context omitted.

How do you host your site? I've been using Github Pages which has Jekyll support and that's worked fine, but I'm curious where people host their Hugo sites (or how hosting works when you run the server yourself). Is it AWS? Dreamhost? or something else? Do you have to manage a proxy or handle load/cost spikes? Can a surge of traffic take down the site? I haven't read a ton about this, but I'm curious about it. It'd b…

That's the beauty of a static site generator -- github just expects valid HMTL to be generated and pushed to a specific branch. Github has no more Jekyll support than it has support for Hugo or a custom static site generator written in bash. I host my hugo-based blog with github pages.

Ah ok - I think I understand.

Github does have special Jekyll support, but you just generate the hugo static files locally and only push those up to where Github expects them to be?

I think with Jekyll Github will re-generate the static files for you and works with the RSS plugin automatically.

Good to know though - might be worth checking out Hugo, thanks!

Re: The ideal tech stack for a personal developer blog in 2020

#236

Earlier quoted context omitted.

That's the beauty of a static site generator -- github just expects valid HMTL to be generated and pushed to a specific branch. Github has no more Jekyll support than it has support for Hugo or a custom static site generator written in bash. I host my hugo-based blog with github pages.

Ah ok - I think I understand. Github does have special Jekyll support, but you just generate the hugo static files locally and only push those up to where Github expects them to be? I think with Jekyll Github will re-generate the static files for you and works with the RSS plugin automatically. Good to know though - might be worth checking out Hugo, thanks!

Huh, I didn't know that Github had that sort of integration. I'm surprised that they're willing to run arbitrary ruby like that.

Re: The ideal tech stack for a personal developer blog in 2020

#237
post #126

I just remade my personal site after a 6 year break. It took me 4 hours to redo a static HTML and CSS mockup, learning a bunch of great new things about CSS Grid and Vars... then another week to convert that static into a Gatsby static-generator site. It's sort of insane how over engineered we've gone on this stuff. HTML and CSS are pretty great tools for a blog. We can skip the React, GraphQL, etc.

So... why did you convert it to Gatsby?

Keeping up with the Joneses. I think it’s good to have opinions on the new hot thing.

Re: The ideal tech stack for a personal developer blog in 2020

#238

The tech stack for my personal blog is a It's really just a (bad) static site generator, it's just that every static site generator I've run into so far was way more complicated than I need and so it was faster to write my own with only the three features I want than to learn a big complicated tool. I guess I have mixed feelings here. It makes sense to invest time in a complicated setup for a personal website as a ho…

Thanks for the measured response here.

I address the fact that the site, as it currently exists, doesn't need any of this currently. I tried to be clear in my "criteria list" that I'm designing for power and flexibility; I don't want to limit myself down the road.

I definitely could have verbalized my stance on headless CMSs better. I'm very aware that there are ways to use them without requiring two round trips. But in the very next paragraph I say "I want every page of my site to be pre-rendered to a set of fully static assets". The solution you allude to (a headless CMS with server-side rendering) requires a server and doesn't meet that criteria.

I also know you can do generate a static site with Next/Gatsby + a headless CMS that's integrated into your build step. I didn't do that way because it seemed overkill - I'm happy using my file system as my CMS.

You mention that I reject using "MD along with React". Which bit of the post are you alluding to? I do reject the idea of putting React components inside of `` tags inside of a Markdown file. Based on my criteria, the "React + a sprinkling of Markdown" makes more sense than "Markdown + a sprinkling of React". Otherwise it's an uphill battle (with a fair bit of boilerplate) to use React Hooks, import styling libraries, etc.

I'm not sure I follow your logic w.r.t this being a damning condemnation of React. There a build step (either Babel or TypeScript) required to use cutting-edge React. That additional layer of separation is what makes it so hard to do React+TS inside of these Markdown-centric CMSs. I don't think that impedance mismatch reflects poorly on either React or the SSGs - they each have their uses.

Could you elaborate on the "other, simpler options even within the TS ecosystem"?

Re: The ideal tech stack for a personal developer blog in 2020

#239

I really think the negativity in the comments here is overblown, and misdirected. The author has a totally reasonable set of requirements: React + TypeScript, writing posts in Markdown, small amounts of interactability, and static site generation. It may be an indictment of the JavaScript ecosystem and the current state of the web that nothing exists that can help the user accomplish this out of the box, but that doe…

This is so ridiculous coming from someone that did front end during the pre SPA days. I don’t event know where to start here . It’s a blog, not a complicated backend solution requiring a stack like this. Just throw in something simple to get the posts from the database and update the dates and you’re done . It’s over engineered and symptomatic of major issues in the front end community.

Having a database for a personal blog seems like overkill.

Re: The ideal tech stack for a personal developer blog in 2020

#240

Earlier quoted context omitted.

This meme is tedious. Typescript is here to stay. No question. React has been a thing now for what, six years? And it feels like 80% of FE job opening require React. And no major shift on the horizon.

When did you start web development? Serious question. We went through all the ‘here to stay’ a few times over already. Cordova, Bootstrap, Backbone, Coffeescript, Angular, Grunt, Gulp, Require.js/AMD, I think we already moved into and out of React Native lol, that whole Mongo thing, everyone had to be a D3 expert almost at one point, isomorphic apps almost became the thing - Meteor, they were all here to stay.

Isomorphic is a thing and is used in the technologies mentioned in the article.
Post reply on HN