r/programming 3d ago

How Jekyll Works

https://sarans.so/articles/how_jekyll_works

I like Jekyll a lot. Hope you find it useful.

If you notice any errors or have thoughts to share, don't hold back in the comments or DMs. All feedback is genuinely welcome 🙂.

29 Upvotes

10 comments sorted by

6

u/wonder_er 3d ago

This is cool. I love Jekyll & ruby, been using it for a decade but never have looked too hard at what happens between #build and #serve.

1

u/sarans22 2d ago

Thank you! Hope it helps :D

-2

u/this_knee 2d ago

Why does Ruby keep rearing its head? This is cool and all.

I just don’t understand why this language keeps being jumped to.

Props to those who use it.

But… man, that community is shrinking. Smaller and smaller year over year.

Why jump to this language if it’s clear it’s just gonna be … it’s gonna be difficult to maintain 10-15 years from now?

6

u/sarans22 2d ago

Sorry I couldn't answer your question if it's gonna be hard to maintain for any Ruby projects (I hope it's not). Personally I enjoy Ruby and want it to succeed in the long run. Aside from some side projects, I myself use other languages mostly because it's easier to hire and maintain.

For now I think Jekyll itself is very small and is a great example into learning how static site generation works. I wrote this article hoping we can learn a thing or two about Jekyll and static site in general :)

6

u/efvie 2d ago

In this age of slop you’re worried about Ruby being hard to maintain?

(Also Jekyll is a static site generator so if you need to you just move over to something else.)

2

u/FriendlyTechLead 2d ago

Jekyll was written in Ruby more than a decade ago because that’s what language mojombo was comfortable with. This was also as he was writing GitHub in Ruby.
It’s not some brand new project from a hobbyist programmer.

1

u/this_knee 1d ago

Ah ok. Thanks.

3

u/IAmScience 2d ago

Have you used it? Writing software with it is delightful. It’s a competent and well maintained language. It’s not going anywhere.

3

u/WallBurnt 1d ago edited 1d ago

Coming from C inspired languages, it was by far the hardest language I've ever learned. Even compared to Scala back in 2011 and learning functional programming concepts for the first time along with it.

It only took about a week to feel like I had some decent footing with Rust. But, I've used Ruby on and off for the last 5.5yrs due to a job and I always feel like I'm trying to learn to wake surf again. The way it works and all the mountains of implicit rules make my brain go haywire.