Live data from Hacker News

How to build a website without frameworks and tons of libraries

kodingkitty.com

121–130 of 270 posts

Re: How to build a website without frameworks and tons of libraries

#121

> Mind you, Hetzner webhosting starts at 2 EUR! How crazy is that? Oh yeah? and netlify is totally free for an infinite amount of sites! how crazy is that? > We use a short Python script with exactly 45 lines of code. Including comments and blank lines. > > In summary, this is the simple toolchain for building our web: > > Developer updates index.src.html > Watchdog.py detects the file change and ... > ... renders Ji…

They don't want to use a framework so they wrote their own framework that is most likely shittier and more impossible to debug. Also, now they have to train all their new engineers on their own home-grown shitty/impossible-to-debug framework.

How is a 45 line python script that runs templates hard to debug? You’re calling something “most likely” shitty, but have you seen it? Used it? I find this post and the method they use to produce their site utterly refreshing. What is “shitty” is many dozens (being kind) of JS libraries, complex configurations, and learning multiple tools to produce the same result!

Re: How to build a website without frameworks and tons of libraries

#122
Sounds already too complex for me.

I wrote my post as Gemtext (the Gemini markdown) and wrote a python script that convert it to HTML and generate an index page.

Also, I put the CSS in each page because I’ve 42 lines of CSS and I did the math to show that having 42 more lines in each file would never cost more than having a second http request.

Honestly, it was a lot simpler than expected, without using any python library or any template. The hardest part was generating the email to send to the list. I spent month analysing different frameworks, different static site generators. I spent week trying to find a good CSS.

According to the git history, it took me 2 weeks of hacking to get it done including importing 18 years of Wordpress history. And without having to learn anything because it was straight python. And the best of all is that I can easily change/correct if I’ve a bug. It’s my code.

We, computer scientists, forgot completely that we could simply code adhoc solutions instead of trying to reuse everything. We take more time to learn and adapt than to do.

https://git.sr.ht/~lioploum/ploum.net for the code

(the site itself is https://ploum.net)

Re: How to build a website without frameworks and tons of libraries

#123

> Mind you, Hetzner webhosting starts at 2 EUR! How crazy is that? Oh yeah? and netlify is totally free for an infinite amount of sites! how crazy is that? > We use a short Python script with exactly 45 lines of code. Including comments and blank lines. > > In summary, this is the simple toolchain for building our web: > > Developer updates index.src.html > Watchdog.py detects the file change and ... > ... renders Ji…

It is simple, both templating and hot-reloading are fairly common programing concepts, neither are uncommon or esoteric when it comes to web development.

The specific implementation is irrelevant, you could use any other piece of software to achieve it.

Re: How to build a website without frameworks and tons of libraries

#125

Earlier quoted context omitted.

I've been meaning to do this and move away from Smugmug. Would you be okay to share your portfolio and/or source?

Someone beat me to the punch and added the URL (thanks!). The site is what's left over after trying a few different options, most notably Ghost and later Zola. Most of the current layout mimics what can be created within Ghost's editor. I then migrated to Zola which shares the bulk of the layout. Currently most of my images are coming from Zola's "/processed_images" directory. You can view the Zola codebase here[1] i…

The detailed response is much appreciated!

Re: How to build a website without frameworks and tons of libraries

#127
post #105
post #97

Earlier quoted context omitted.

On my Chrome/Android I have the default font size larger. And sometimes HN loads with my preference - and others it loads tiny. No rhyme/reason.

On iOS Safari, sometimes the same element type on the same page will be different sizes (e.g. the navigation buttons on xkcd).

I think you and the parent comment are running into a mobile feature that attempts to ensure text is legible: https://maxleiter.com/blog/mobile-browsers-resizing-font

Re: How to build a website without frameworks and tons of libraries

#128
post #122

Sounds already too complex for me. I wrote my post as Gemtext (the Gemini markdown) and wrote a python script that convert it to HTML and generate an index page. Also, I put the CSS in each page because I’ve 42 lines of CSS and I did the math to show that having 42 more lines in each file would never cost more than having a second http request. Honestly, it was a lot simpler than expected, without using any python li…

Email? Python script? Git?? Okay, Rube Goldberg.

I serve my site from a 6502 processor I carved out of balsa wood back in 2003 and epoxied to an ethernet cable. When I want to make changes, I heat the EPROM with a hair dryer until the right bits flip. No templating, no code, no bloat.

Re: How to build a website without frameworks and tons of libraries

#129

> Mind you, Hetzner webhosting starts at 2 EUR! How crazy is that? Oh yeah? and netlify is totally free for an infinite amount of sites! how crazy is that? > We use a short Python script with exactly 45 lines of code. Including comments and blank lines. > > In summary, this is the simple toolchain for building our web: > > Developer updates index.src.html > Watchdog.py detects the file change and ... > ... renders Ji…

Take a deep breath and go for a walk, there's no reason an inconsequential blog post should make you this angry.

Re: How to build a website without frameworks and tons of libraries

#130
post #122

Sounds already too complex for me. I wrote my post as Gemtext (the Gemini markdown) and wrote a python script that convert it to HTML and generate an index page. Also, I put the CSS in each page because I’ve 42 lines of CSS and I did the math to show that having 42 more lines in each file would never cost more than having a second http request. Honestly, it was a lot simpler than expected, without using any python li…

Gotta say, that's a great blog. I opened it only to check the design and ended up reading 4 articles back to back.

It feels nostalgic scrolling down and back through our technological history.

Post reply on HN