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

It really is. It's extremely handy albeit a bit niche these days.


XSLT is very useful to transform nested structures.

The input has to be XML, but you can get there via YAML, JSON, tree-sitter etc. And the output doesn't have to be XML.

xsltproc is usually easy to install.


It's not the LoC I care about, it's the logical separation of concerns and testability. Large functions usually do many things which makes them really hard to test. Also, just mashing all the things in a single function is indicative of the author not having a clear picture of what problem he or she is dealing with.

I have been programming for 30 years and, while I don't consider myself a great programmer, I don't like large functions. In my experience they usually fail at clearly expressing intent and therefore make the code a lot harder to reason about. There are, of course, exceptions to this.


The concept is called content negotiation. We used to do this when we wanted to serve our content as XHTML to clients preferring that over HTML. It's nice to see it return as I always thought it was quite cool.


Agreed! I love that such a tried and true web standard is making a comeback because of AI.


Content negotiation is also good for choosing human languages, unfortunately the browser interfaces for it are terrible.


This is interesting and very timely for me. Just this week I was building a small Go system that uses SQLite. I needed to cross-compile it for FreeBSD on a Mac and ran into issues with CGO. The easiest fix seemed to be to switch from a CGO based library to a pure Go one.


I don't know for freebsd but at least for Linux I started using the zig toolchain and it's wonderful. https://zig.news/kristoff/building-sqlite-with-cgo-for-every...


I hit the same issue, building on mac to deploy to linux.

I added this build step before `scp`ing the binary to the server

  docker run --rm --platform=linux/amd64 \
    -v "$PWD":/app -w /app \
    golang:1.22-bullseye \
    /bin/bash -c "apt update && apt install -y gcc sqlite3 libsqlite3-dev && \
    CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o app-linux-amd64 ./cmd/main.go"

Looking at the article, I should give modernc sqlite driver a try.


I personally really like Bastille for jail management. It's way more ergonomic than creating jails by hand and allows you to focus on the stuff running in the jails rather than the jails themselves.


Exactly. Commodore made a mistake when they introduced it but I loved mine to bits! After owning it for about a year I upgraded it with a 68030 turbo (incl. 4 megs of fast mem, an FPU and an MMU) and a 4 gig IBM Travelstar HD. The upgrade made it one of the flakiest bits of computing hardware I've ever used (you'd be lucky to use it for an hour without it crashing) but it was just so frigging cool! I painted it pink and purple and labelled it "Sikakone" ("Pig machine" in Finnish).


That sounds awesome, do you have any pictures of your Sikakone?


Unfortunately not. It was quite the setup! The A600 had a built-in dock for a hard drive but the turbo took its place. I ran a long ATA cable through the PCMCIA slot and had the drive just sit on the table next to the computer. The turbo also ran extremely hot (it had a plastic cover that started to melt almost immediately so I took it off) which meant I couldn't keep the case closed. I propped it open by shoving a 3,5 inch floppy between the disk drive and the case and have it sit there completely vertically. This allowed for enough air flow to keep the thing from overheating too much. Good times!


I had a Teal Indigo2 for a few years about 15 years ago. I loved it! It had the cool feet that let you prop it up sideways so you could have it in tower mode. The feet had these little scoops embedded in them so the machine could more effectively hoover up all the dust from the floor. Fantastic!


I just want to inform you that the pricing section is effed up. It talks about FramerBite pricing - which I guess is the thing you used to throw this landing page together. That seems very low effort and I would estimate the output metric of that to be 1.03 with a correlation of 0.96.


Damn, this is pretty good: https://song.do/play_music/0634c077e5ff3a79746a6e7a4a3f414d?...

The pompt was: "Menacing New York style rap piece about the dangers of carrots". It kinda delivered!


Regarding the tab management issue referenced in the post, I really could not use a browser without Tree Style Tab. Paired with Tridactyl, it makes tab management and switching tabs a breeze. I don't know if Chrome or any other browser has anything comparable to this setup and, to be frank, I don't even care. Firefox is one of my favorite pieces of technology ever and I'm not willing to give up on it.


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

Search: