Live data from Hacker News

Bashblog – a single bash script to create blogs

github.com

11–20 of 93 posts

Re: Bashblog – a single bash script to create blogs

#11

This is a good example of a program I would like to use if it was distributed in the standard repo of my OS, rather than totally unvetted on the Microsoft Github page of a random developer. PS: I don't know why HN allows downvoting seeing how it is always so abused. Nothing I wrote here is factually false, and what remains is just my personal opinion as a principled user of FOSS. A bit of tolerance for others' viewpo…

What? That's how open source works

Package management in the distro is also how FOSS works?

Re: Bashblog – a single bash script to create blogs

#12
post #7

Mmm, good ol’ bash. I like it.

Awful old Bash. I hate it. Seriously I don't know why you'd do this in Bash. Crazy choice.

Some people like to claim that using a pretty esoteric language with lots of weird footguns, lack of basic features and data types, and spawning subprocesses for everything, is somehow keeping it simple.

I do not understand them.

Re: Bashblog – a single bash script to create blogs

#13
post #7

Mmm, good ol’ bash. I like it.

Awful old Bash. I hate it. Seriously I don't know why you'd do this in Bash. Crazy choice.

Known system dependency that's (almost) always on the system you're on.

I remember somebody once telling me that they had learned vi because "it was always installed". Well, no, technically, the only editor you can be sure is there is ed. So, you know, learn that. I was surprised that they actually did.

Bash is syntactically not perfect, I agree. However it's a well known, mature, stable environment. LLMs can write it well if you need them to. If it was perfect, we'd never have had Perl, and as a result we'd never have had Ruby, Python and other scripting languages.

But I like it's a tool that doesn't require me to go reach for a package manager and some build tools I don't always have on every system.

Re: Bashblog – a single bash script to create blogs

#15
Its time to invent something lightweight and good which runtime is so small that it becomes a system default.

like a microvm with normal language features. Something you can and want to actually attach a debugger onto it. Something independent of architecture too.

I just hate bash :| Even just using bash and curl and checking if its a website or an error page...

Re: Bashblog – a single bash script to create blogs

#16

Its time to invent something lightweight and good which runtime is so small that it becomes a system default. like a microvm with normal language features. Something you can and want to actually attach a debugger onto it. Something independent of architecture too. I just hate bash :| Even just using bash and curl and checking if its a website or an error page...

I use Python for that, since I know it will always be on my machine.

Is this what you have in mind?

Re: Bashblog – a single bash script to create blogs

#17
post #7

Mmm, good ol’ bash. I like it.

Awful old Bash. I hate it. Seriously I don't know why you'd do this in Bash. Crazy choice.

It probably started as a helper script and grew from there. The script seems quite focused and doesn't grow, so a rewrite might not be warranted.

It also has no other dependency, which is also good. I have written helper script to run coding agents in a container. And you guessed it, it's in bash. For the reasons I just wrote down. Should it have to grow I would rewrite it, but not currently.

Re: Bashblog – a single bash script to create blogs

#19

Its time to invent something lightweight and good which runtime is so small that it becomes a system default. like a microvm with normal language features. Something you can and want to actually attach a debugger onto it. Something independent of architecture too. I just hate bash :| Even just using bash and curl and checking if its a website or an error page...

Go has a fast enough compile speed I feel like you could syntactically sugar it to be a command line.

Re: Bashblog – a single bash script to create blogs

#20

Its time to invent something lightweight and good which runtime is so small that it becomes a system default. like a microvm with normal language features. Something you can and want to actually attach a debugger onto it. Something independent of architecture too. I just hate bash :| Even just using bash and curl and checking if its a website or an error page...

exe.dev does a pretty good job of instantly deployable microVMs
Post reply on HN