Hacker Newsnew | past | comments | ask | show | jobs | submit | curiouser2's commentslogin

Wow the HTML is so nice. I was surprised at first bc there are no </p> tags but apparently it's valid! https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p#...


Greg Egan's book Axiomatic has a short story "Blood Sisters" around the medical implications of twins, interesting read


What's the hot stack for self-hosting headless blog stuff now? Been out of the loop since I started reading about jamstack. Hugo? Gatsby? Is Jekyll still a player here?


My suggestion is to pick a templating engine and markup language you like, wire them together with a bit of glue code, and try not to spend too much time fiddling with it instead of writing. When I do realize there’s some feature I want to add, it’s a lot easier to tweak ~100 lines of code that I’m already familiar with rather than trying to figure out the documentation for some plugin system.

I’ve written about this in a bit more detail previously[1], and I’ve also published the source code to my personal blog[2] if you’re curious to see a fully-baked example.

[1] https://search.feep.dev/blog/post/2022-01-16-blog

[2] https://github.com/wolfgang42/linestarve-blog/blob/master/bu...


Personally I made my own static site generator [1][2], which has been a lot of fun, and fairly easy to implement (you just need a solid markdown to html converter, preferrably going further than commonmark standards).

For hosting I use the free tier of Firebase... `Firebase deploy` and Voila. You get not only free hosting but the ability to revert and free around the globe CDN. Pretty darn fast.

[1]: https://github.com/keyle/site-gen-rust

[2]: https://github.com/keyle/site-gen-ocaml


I would also roll my own. I've tried several generators and there is always something that doesn't quite work how I want it to and the documentation is often bad and outdated.

When you roll your own not only is it way simpler than existing solutions it won't change from under you. I blog very infrequently and often from different machines or operating systems, the last generator I used had completely changed between posts and I either had to relearn how it worked or make my own.


I followed a similar path. Forked the pug templating language and adapted it for my needs. It's kind of crude at the moment but it's already powering my website.

https://github.com/matheusmoreira/pugneum


I’m not sure if it’s hit enough, but Jekyll seems to be still going strong. I use it on my personal blog and a few work doc/wiki sites.

It’s still simple and works everywhere. I don’t know ruby but can still get it working and generating.


Emacs org-mode exported to html5 as part of a git post-receive hook for auto-update on repo changes (my stack of choice). Change the html export however you like to fit your deployment. Replace emacs with asciidoc(tor), diagrams-as-code, etc.


Yes, org mode is pure genius. The only issue with org mode is it used to only work well from emacs itself. I use past tense as I've address that issue as an attempt to get more colleague to use org mode when building this: https://github.com/mickael-kerjean/filestash

It takes virtually any org mode document stored anywhere and will expose the org mode export so you can browse the generated pages like a website available as not only a regular html one but also a pdf one with links and all that emacs generate on the fly. Example with a random github repo that have a couple org mode documents:

- pdf export: https://demo.filestash.app/login?type=git&repo=https://githu...

- html export: https://demo.filestash.app/login?type=git&repo=https://githu...

- txt export: https://demo.filestash.app/api/export/private/text/plain/REA... and more ...

It's not super fast as it runs emacs everytime you need to render a page and run the export from there but considering the title of this article, it is well within the theme of blogging like a hacker.


That is super cool! Another thing I really like about fellow emacs'ers; they almost always use good copyleft licenses.


I'm almost embarrassed about the number of times I've rebuilt my blog [1] over the past few years, especially given how infrequently I actually write anything.

A non-exhaustive list includes the following SSGs:

- Astro

- Eleventy

- Gatsby

- Hugo (three times)

- Jigsaw

- Lume

- Next.js

I finally settled on Astro. I don't know whether it qualifies as hot stuff, but I'm happy with it.

[1] https://www.stephenlewis.me


I'd be interested to hear what you did and didn't like about each of those tools. It might make a good topic for a blog post.


Yeah, me too. I’m in the beginning of the journey, and I chose Hugo as my first step.

I am curious as to why you did Hugo thrice and why did you choose Astro in the end.


Regarding Hugo, the Go template language is a little esoteric (or at least very unusual) at times. The final straw, though, was the lack of compatibility with the Tailwind JIT compiler. Apparently it's fixed now, but it took so long that I'd long since moved on.

Astro feels like a really good fit for static content sites. It's easy to understand, and generates very fast sites that don't rely on a tonne of pointless JavaScript (as was the case with both Gatsby and Next when I used them).


Thank you for your evaluation!


My journey has been from jekyll to Hugo to plain HTML.

A blog post can be mostly <h1>, <p>, <b>, and <img> tags. I (mostly) use internal CSS so each post is self contained. Creating a new post is just a copy/paste of the last one and changing the words.

If I wanted a fancy style, I could export one from any template-based theme but I use something minimal. Keeping it simple helps me focus on writing instead of plug-in management and endless tweaking of settings.

In theory I'll run into issues if I want to restyle the entire blog, but I'm happy to preserve old posts as-is. If I wanted to edit a header or footer I could use bulk search/replace.

Occasionally I've wanted to add some extra interactivity or a one-off style. This is straightforward in HTML (assuming you know it) versus a generator that can get in your way with too many layers of abstraction.

https://alexsci.com/blog/hsts-adoption/


No idea. I just use Wordpress - it increases the chance (which is very low) that I will write something and actually publish it, and for that thing not to be a meta "how I set up my blog this time".


That’s basically why I switched over to paying for Ghost tbh, after years of fucking around with various static generators and such.


I like Hugo. It's been a gateway drug into building much more interesting and broadly useful websites than just a blog for me, the same way WordPress was a gateway drug for today's PHP devs. Giving you RSS feeds out of the box is a lovely bonus.

Both my personal website https://andrew-quinn.me/ and my TIL site run on Hugo: https://hiandrewquinn.github.io/til-site/

Most recently I used Hugo to create a backup archive of the Finnish broadcast news, plus translations, which was all in all very easy thanks to its i18n support: https://hiandrewquinn.github.io/selkouutiset-archive/

Hugo also works well with Git submodules, if you want an excuse to learn how those work in more depth. I generally keep one submodule for just the content of my sites themselves, and another one for the theme. A third repo actually brings the two submodules together into a full fledged site.

I even gave a presentation at the local university to first year CS students who wanted to get Hugo up and running. It was a big success!

I wrote https://github.com/Siilikuin/minimum-viable-hugo a while back to turn setting it up into a simple copy-and-paste operation. You might get some use out of it.


Quarto is excellent. https://quarto.org


I am no expert, but I am in the process of transitioning over to NextJS. Reason being it's quite opinionated on how to structure your app / blog and you can produce a completely static website with it - not to mention that there is a very large community to learn and lean on if you get stuck.


OP here. Perhaps check Nue [1] — a static site generator I'm working on full-time. It offers some unique feats like universal hot-reloading of content, style, layout, and reactive components.

[1]: https://nuejs.org


Zola

It does what I need. Fast, search-capable, markdown, and handlebars. The community isn't huge, but it's just what I need to get a little bit of writing online.


Hugo is popular and easy, and I hear Jekyll is a little out of style, but Gatsby and Astro are good. My own blog uses Hugo off-the-shelf with a semi-custom theme, and it works great. This is all hosted on a $4/month VPS with nginx (allowing me to add some custom code or other things if I want to), and has cloudflare in front of it. I hear cloudflare pages and GitHub pages are pretty popular for hosting, though.


11ty, it's just JS. Use a blog template to start with and host it for free on github


I am leaning towards using omg.lol weblog. Not self hosted, 20 bucks a year, but it has git versioning, looks nice and comes with a lot of other interesting features in the package.


Please check out Svekyll.

https://extrastatic.dev/svekyll/svekyll-cli

All 100s on lighthouse.


Its not hot but Jekyll works fine for me. I have my own little templating program which generates a part of my site as well, and it might take over the lot at some point.


Yeah it's wild how the use case for 90% of users is "convert epub/mobi/whatever to azw3 and upload to kindle" and doing that is buried in several right click context menus... I'm comfortable doing it now but it seems as easy as having a left pane for books in my "library" and right pane for books on my device


If you just want to convert books and then copy them to your device I suggest you have a look at the command line tools installed alongside calibre.

`ebook-convert` does exactly that.

https://manual.calibre-ebook.com/de/generated/de/ebook-conve...


Yup!

ebook-convert mybook.epub mybook.mobi


Haven't used it in a little bit, but from memory most of my flow for this was drag and drop. Drag the source onto Calibre, then drag that to the Kindle logo up top.


nah it's worse, prompts for a manual download and update.


I'll give you one better, I wrote a plant life simulator that takes place over 4 or 5 days: https://github.com/jifunks/botany


I love this on tilde.town. Every morning I log in and water my plant and also check in on the plant of one other guy who saved my plant once.


I can lend you my tamagotchi? ;-)


That looks cool, I'll grab it when I get some free time


Wow hadn't seen this one before. A friend had the model M13 growing up with a trackpoint and a pretty shitty right/left click in the middle of the keyboard but this looks amazing.


Yeah what the hell is this person talking about? How do they think software was installed prior to Steam?


yeah! don’t they remember the glory days and freedom of choice to wait in a virtual line on GameSpy to download the bandwidth limited patch from version 1.4 to 1.5 only to realize they’re on 1.2 and there is no delta patch from 1.2 to 1.4 so they can either try again with the full upgrade for 1.x to 1.5 which is about 10x the download size or they can get each incremental patch from 1.2 to 1.3 to 1.4 to 1.5?

come on. there’s a distinct value these app stores add and there is a distinct value in having one for the platform.

the ONLY benefit to this future is Epic gets a larger slice. they will not “pass the benefit down” in some trickle down user freedom economy. they will shove more micro transactions and advertisements into every corner of their marketplace.


Softwares can auto update and hide the process to the user without the need for a store.


I would argue that removing the App Store as a single point of failure for free speech [1][2] would be a pretty big benefit.

[1] https://torrentfreak.com/apple-bans-vpns-from-app-store-in-c... [2] https://www.buzzfeednews.com/article/meghara/pakistan-forced...


You have to realize that saying the app store is a single point of failure for free speech is hyperbolic.


How the hell do you get from "App Store" to "Freedom of Speech"?


Going online to a download website and downloading what ever you want.

There has always been "app stores" if it's tucows download or filehippo or gamespy or what not.

Very few people google "simulation games" and scroll through the pages and pages of google results and go directly to a publishers website and download an exe that they run.

There is and always has been a middleman.


Yeah this guy really should have approached Dairy Queen with a campaign and sold it off.. "we know you can't get mcdonald's ice cream? come to us"


It's likely solve the gap of "I can't use my phone while it's wirelessly charging". With the magsafe thing you can just clunk the charger to the back of your phone and keep using it. While battery life is still crap on these (side note - I didn't hear a single thing in the presentation about battery life... yikes) people are going to be charging their phones while they use them.

I hate to be a pessimist but with them not including a charger or headphones, they're slowly moving toward no data port whatsoever


I guess my confusion is basically that: if I want to use my phone while it charges, I just plug it in with a lightning cable. I don’t need it to “wirelessly” charge if I’m having to connect something to the device anyway. It seems to be a weird 3rd option for charging.

They’re definitely getting rid of the port, maybe next year.


Consider that iPad has replaced lightning with usb-c and that having ports takes up a lot of space... I think they are just planning to phase out lightning and go port-less on the iPhone.


How the hell will car play work without a port?


Wireless CarPlay already exists


Sure, it has existed for several years. But I’ve yet to drive a single car that supports it. By my understanding only super expensive high-end luxury cars support it, and even then it’s hit and miss. I’ve never seen it with my own eyes.


https://www.cars.com/articles/wireless-apple-carplay-and-and... lists 2019 model cars with Wireless CarPlay. I've driven one and tried out the wireless CarPlay, and it works more or less like the wired version (no lag, as smooth as wired CarPlay AFAICT). The only major inconvenience is probably that, if you have a passenger and they want to use their phone for music, you will need to pair their phone to the car instead of just finding the wire and plugging in. Takes about 30 seconds to a minute to go through all the setup. While the cars listed are not cheap by any means, there are a few moderately optioned minivans around the same cost of some of the less expensive cars from BMW (base cost around $38K USD).

Honda is also rumored to be adding wireless support ( https://appleinsider.com/articles/20/10/10/wireless-carplay-... ) for their 2021 Accord model so seems the feature is become available on more affordable cars too.


Beware of BMW pulling unethical crap on its customers by attempting to extract an annual fee for CarPlay: https://www.carscoops.com/2019/08/this-is-why-bmw-charges-80...

They even tried to blame Apple for this, only to have their lie publicly called out by Apple. This created such outrage that the decision had to be reversed, but for me that's enough - they showed their true colors and are very likely to come up with further crap in the future.

https://www.theverge.com/2019/12/4/20995630/bmw-apple-carpla...

Oh I just noticed it was discussed here on HN too: https://news.ycombinator.com/item?id=16195529


I agree that it was ridiculous and to be on guard for these shenanigans. 100%.

Today though, BMW is not charging a “subscription” fee and much more importantly, all of their iDrive data is provided for free with free software updates. And yes, competitive pressure probably forced them to, but it is much better than just 5 or 6 years ago where you were charged for yearly map updates by buying a DVD. They are also the first car manufacturer to support the CarKey feature so they have changed (for now anyways).


I get Facebook ads for a third-party wireless CarPlay dongle that plugs into a car that has wired CarPlay support.

Apple could make a first-party one.


The upper trim levels of the ‘21 Honda Accord have it.


Aw man, my 2019 doesn’t. I rarely need to charge in the car, and it’d be so nice to use CarPlay without having to buckle my phone in


There are dongles available - no, really.


Almost all BMWs from the past few years have it. We have a 2017 X5 and wireless CarPlay works very well and is very convenient.


An X5 is a pretty high-end luxury car.


My hybrid Mini Countryman supports it and it works very well.


An X1 like mine isn’t, and it has wireless CarPlay too


I would presume that they may have some sort of data transfer baked into the puck that will work at USB speeds for CarPlay?


My current car does Carplay wirelessly. You connect via WiFi.


Bluetooth? Heck, even without car play it works fairly well.


Two advantages: (1) the Lightning port can wear out if used often, but the magnets won't; (2) you can attach and remove the phone from a magnetic charger with one hand and without looking / in the dark.


>the Lightning port can wear out if used often

Wait what? I hope you're just saying it can get scratched or warped with rough/improper use.


I have not had an iphone come in with a worn lighting port. 10/10 times it has been extremely packed pocket lint preventing the cable from seating correctly.


I've had that problem, but I've also had the cable clips in the sides of the socket lose some of their grip over time. They're spring steel, but even spring steel is still somewhat subject to plastic deformation with enough cycles.

It's never gotten bad enough to be a problem with mine, but I'm still happier to be using magnetic charging cables most of the time. That's primarily for the convenience of it, which is significant, but I don't mind that they also preserve the connector.

(They're especially convenient in the car. I have an SE, but even with a phone that supported inductive charging, I suspect I'd stick with the magnetic-mount-and-cable arrangement - it's exactly as convenient as inductive charging, with no risk of compromise on the strength of the mount in order to get one with half a transformer in it.)


The lightning port can essentially loosen over time, meaning the “snap” of the cable grips less and the plug can become susceptible to falling out. This has happened to me, even as someone who takes good care of his phone.


Even on very old very carelessly used phones I have not seen this. Every single time the lightning cable does not snap into place, it's some packed lint that is the problem. It can be removed with some care and it works fine after that.


Have you tried canned air to clear debris?


A wooden toothpick is perfect for cleaning lightning ports.


I would not recommend canned air as it would drive lint further into the phone.


Moisture can cause permanent damage when charging. (Corrosion.)


Any moving part will wear out eventually.


Everything under, around, inside and outside the sun will wear out eventually.

The lightning port is not even close to being one of the parts that will wear out first.


If the wireless charging mechanism is solid state, it’s immune from mechanical wear.

Mechanical wear matters for example if you have a Roku, and the buttons in the remote control physically wear out. You can just instead use your phone app to control it over WiFi, and the WiFi antenna will “never” wear out because it’s solid state. Source: I have an old Roku


It's a good rule of thumb, but that doesn't check out in practice.

The wireless charging mechanism, while solid state, generates a lot of heat, which has the potential to degrade the battery especially in certain climates.


Solid state devices can still fail from mechanical stress. Heat cycling and strong magnetic fields could be a problem for wireless charging even if they don’t need to be. The core issue is generally trying to use the cheapest solution, not just mechanical stress.

Ethernet connectors are probably the best example of this, for servers that might be moved every few years their cheap and maintain a solid connection. It’s really desktops and especially laptops where they become such a major issue.


I’m struggling to understand your point. Phones are closer to laptops in that in typical use a wired power connection is frequently plugged and unplugged, so mechanical wear is an important consideration. Why are you bringing up Ethernet on servers in this context, when as you say the pattern of use is utterly different?

I know almost nothing about wireless charging. But have fair experience with working with WiFi devices. In my lifetime, I have observed 0 cases of failure on the WiFi client mechanism, and exactly 1 case of a WiFi router failing due to hardware. Meanwhile, power plugs are the most common part I have experienced wearing out on consumer electronics. Have you experienced lots of failures of solid state electronics due to eg. hear cycling and magnetic fields?


My point was you need to design stuff for the use case and a healthy margin. Incandescent lightbulbs are perhaps the poster child for solid state devices which with a limited lifespan. You can design lightbulbs for a 100 year lifespan at the cost of efficiency and bulb brightness. Even then an incandescent bulbs lifespan is dramatically shorter if your power cycling it every 2 minutes. But eventually stuff like electromigration for example will be an issue for solid state devices. https://en.wikipedia.org/wiki/Electromigration

When designing wireless charging the same efficiency vs lifespan tradeoffs exist. Sure, they might be fine, but don’t expect them to last 20 years or anything. Further, the mats are significantly more expensive than a cable.

PS: Connector specifications are generally a dumpster fire because nobody wants to be forced to build expensive cables. And even if the spec says X, if Y is cheaper and still mostly works then you can bet people will do Y. Failure tends take a while at which point people buy a new cable vs returning the old one etc.


Thanks! Your answer reinforces my personal preference for wires to supply power :)


On my last phone, it's precisely the part that wore out first. A local guy replaced it for about $50 and I got another year of life out of the phone before I dropped it and broke the screen. (Note, this was an iPhone 6 that I replaced about a year ago)


Sure, and for some people the part that wears out first is the third SoC capacitor.

In agreggate though, the lightning port isn't the first thing that will break, and if it breaks you can use wireless charging. Whereas if you only use wireless charging there is less redundancy and the part that actually wears out the fastest, the battery, will degrade faster due to the heat.


I think the sun will outlive the lightning port. Unless the sun explodes, in which case technically it would have ended prior to its contents hitting Earth and destroying the lightning port.


I didn't suggest that, I just said that everything wears out.


(3) Lightning cables corrode quickly in the salty sea air.

Good inductive charging is an advantage here.


I can’t agree. My iPhone 6 is about six years old, and the port still works like new.


Counterpoint - I have an iPhone 6 that has exactly this problem. The cable doesn't get seated properly, so occasionally it stops charging or disconnects when attached to a computer.


Try cleaning the pocket lint out of it. Major quality of life improvement for me.


Another +1 for lint. Use a wooden toothpick and be gentle


This. I’ve just solved exactly those problems by cleaning out the hole.


I upgraded from 6S to 2nd gen SE because of intermittent charging of 6S. Over time, port became loose, cable didn’t fit and come out easily.


> you can attach and remove the phone from a magnetic charger with one hand and without looking / in the dark.

You can't do that with the cable?


I assume the non-swappable battery will give out long before the lightning port wears out.


Well I live in taiwan, so it’s easy to find someone to swap out the battery.

I might upgrade to a 12. It’s a nice number; 6,12.... 18?


The primary use case is watching a movie or listening to music with headphones. Can’t charge and listen without an extra dongle. Apples solution is BT headphone they sell but it’s a bad pattern.


I agree it is a bad pattern. Remove features from a device to force you to buy an alternative accessory. Nowhere else would anybody accept this - eg. a car that came without a steering wheel so you had to buy one.

Next they'll take the screen from the phone and force you to buy an accessory screen!


a car that came without a steering wheel so you had to buy one.

When I bought a new Ford pick-up truck in the 90's, it didn't come with a rear bumper. That was an add-on. I presume because different people will want different rear bumpers (regular, towing, something else).

When I lived in the desert, I regularly saw brand pick-up trucks without tailgates, or with various specialty ones, so I assume those are also optional.


Thanks! Very informative!

What was it like living in the desert? Where abouts was it in the world? Sounds an interesting life.


Fair enough, but I bit the bullet on AirPods Pro earlier this year and have been really impressed.


I've used Apple phones for the last ~10 years but I have held back on AirPods as I've read a few reports from people whos AirPods have lasted ~18 months before the (non-replaceable, because Apple) battery begins to heavily degrade.


non-replaceable, because Apple

Non-replaceable by you because the AirPods are so small.

But they can be replaced by Apple for $49. Or $0 if they're still covered under AppleCare.


Plugging also charges faster than inductive charging, so when you 'need' to charge your phone you should prefer plugging direct.


Site claims about the same with small pro losing an estimated hour and mini having 5 hours or so less.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: