Live data from Hacker News

Bashblog – a single bash script to create blogs

github.com

71–80 of 93 posts

Re: Bashblog – a single bash script to create blogs

#71

Earlier quoted context omitted.

Why? If it works and it gives you the features you require that where's the issue? If all 1200 lines of code are utilised and provides you with the blog stack then that's pretty efficient. How is this any different of someone including multiple python modules to create the same stack for which probably amount to more lines of code if you were to copy and paste in to a single document. It's like react, a stack with st…

Note that I didn't say anything about "If it works and gives you the features you require", you added that. If you remove that from your reply you're on your way to understanding why I don't like an absolute unit of a bash script.

I did yes, got ahead of myself there. I get it.

I'd rather a single unruly page of code to do the whole thing rather than multiple modules that do multiple things half-efficiently that require multiple thought to uncover.

Re: Bashblog – a single bash script to create blogs

#72

A single 1200 line bash script to create blogs. I love bash for quick hacks. I abhor it for things like this.

Why? If it works and it gives you the features you require that where's the issue? If all 1200 lines of code are utilised and provides you with the blog stack then that's pretty efficient. How is this any different of someone including multiple python modules to create the same stack for which probably amount to more lines of code if you were to copy and paste in to a single document. It's like react, a stack with st…

> If it works

It often doesn't work.

> How is this any different of someone including multiple python modules to create the same stack for which probably amount to more lines of code if you were to copy and paste in to a single document.

There's no problem with 1200 lines of code. The problem is 1200 lines of Bash. The difference is that Bash is incredibly awkward and error prone compared to almost every other language out there.

Re: Bashblog – a single bash script to create blogs

#73
post #64
post #63

Earlier quoted context omitted.

Nobody's interested because everyone is one prompt away from exactly the same thing catered to their specific needs.

Wow that was pretty passive agressive lol, sure you're probably right

I’d argue that was active aggressive, actually.

Re: Bashblog – a single bash script to create blogs

#74

Earlier quoted context omitted.

Why? If it works and it gives you the features you require that where's the issue? If all 1200 lines of code are utilised and provides you with the blog stack then that's pretty efficient. How is this any different of someone including multiple python modules to create the same stack for which probably amount to more lines of code if you were to copy and paste in to a single document. It's like react, a stack with st…

> If it works It often doesn't work. > How is this any different of someone including multiple python modules to create the same stack for which probably amount to more lines of code if you were to copy and paste in to a single document. There's no problem with 1200 lines of code. The problem is 1200 lines of Bash . The difference is that Bash is incredibly awkward and error prone compared to almost every other langu…

> It often doesn't work.

I suppose my main bash script on BSD, ~400 lines for backup, compilation and other admin tasks including a portable static text/plain web server have never failed me but never tested them interchangeably, so, prone some truth to failure.

I am not disagreeing of course and I would agree, Bash is designed for the system functions and that this is niche. However if it's all you got, eh, go for it.

Systems admin for 15 years and have handled some very hosed systems. Maybe the python binary got hosed and you were really desperate to share your lasagna recipe with your mother and the internet, it does have a purpose. Not ideal, sure.

Re: Bashblog – a single bash script to create blogs

#75
post #56

It's so interesting to me how people consider writing bash scripts to be some sort of absurdist gimmick. I've made some scripts like this for blogging, as well as many other things. It's often not the best choice. There are situations where, I'd argue, it is. One of the main reasons, in my experience, is for very lightweight servers. I don't want python or node or anything. I want to run a web server with 128mb of ra…

Bash gets way more hate than it deserves, in ways that are like "this kitchen knife is terrible for cutting down trees!"

Like, yeah, why are you mad? And also, if a dude wants to cut down a tree with a kitchen knife that's actually pretty impressive.

Re: Bashblog – a single bash script to create blogs

#76

A single 1200 line bash script to create blogs. I love bash for quick hacks. I abhor it for things like this.

For what it's worth, I bet this opinion literally doesn't matter anymore.

Write your thing in whatever you want, AI it into another language, done.

Re: Bashblog – a single bash script to create blogs

#79
I've been using shell to blog for a while.

Engine: https://github.com/alganet/alganet.github.io/blob/master/bui...

Result: https://alganet.github.io/

Does RSS, updates old pages when index.html changes, dual-language.

My local test server is also shell: https://github.com/alganet/alganet.github.io/blob/master/ser... (good old https://gist.github.com/alganet/140c7c12d1603c244a01 from 2015)

Re: Bashblog – a single bash script to create blogs

#80

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...

Dude, that's C.
Post reply on HN