Live data from Hacker News

How to build a website without frameworks and tons of libraries

kodingkitty.com

161–170 of 270 posts

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

#161

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

[flagged]

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

#162

Earlier quoted context omitted.

Jinja is a templating framework. You can use it with ansible for example, to replace config values or secrets in a configuration file for different servers, etc

after some research i now know that, but there was no clear link or description of what the heck was going on

[flagged]

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

#163

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

I am one of those vanilla advocate that is sick of the react for everything approach everyone seem to follow for simple stuff. To argue the point with code, I made a scaffold with examples of what such simple web app could look like in pure es6: https://mickael-kerjean.github.io/skeleton/example/index.htm...

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

#164

Earlier quoted context omitted.

after some research i now know that, but there was no clear link or description of what the heck was going on

[flagged]

Apart from the person who has "fullstack" in his username.

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

#165

Earlier quoted context omitted.

Jinja is a templating framework. You can use it with ansible for example, to replace config values or secrets in a configuration file for different servers, etc

after some research i now know that, but there was no clear link or description of what the heck was going on

When I look at the page, there’s a link on the word Jinja. And the next word is templates. Maybe you aren’t familiar with what a template is, but they are hardly obscure. Here’s a list of large websites that used a Perl-based templating engine a decade ago: http://www.masonhq.com/sites

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

#166
I’m just really tired of this debate about “frameworks” and “complexity”.

If your client asks you for a custom CMS with a multi-stage publishing workflow with i18n and regulation-compliant a11y, you’ll need high-powered tools to build it in the time clients expect. Lots of clients in enterprise are like this, which is why the demand for this stuff is so high. If you’re working in B2C this may be surprising, but this is what the underwater part of the tech industry iceberg is.

Yes, a complicated Next.js setup or Vite toolchain isn’t necessary for a static blog. But the people who are talking seriously about these tools aren’t talking about making a simple blog site (even if that’s what their “reduced teaching case” tutorial is).

So can we just chill with this framework hate? If you’ve got ideas for simple ways to make web sites, go ahead and publish tutorials, and if they’re appealing then people will start doing things your way where appropriate. But please don’t position yourself in opposition to a vague “spicy toolchains and trendy frameworks” enemy.

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

#167

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

> simply put, it's quite clear you ARE using frameworks, just in your mind, perhaps, you "aren't"

You're conflating libraries with frameworks. I see no frameworks listed in TFA so they're not wrong. Seems a weird argument to be getting so angry about

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

#168
post #103

Alright, I’m gonna be that guy. Right now, sveltekit + skeleton has absolutely blown my mind at how fast you can make a usable prototype. It’s honestly insane. You don’t even need to know svelte, really. As long as you can understand the file based routing thing, the rest is just html unless you really need more. Especially with the tailwind stuff built right in and a mostly vanilla looking theme. I’ve tried probably…

SvelteKit is amazing. I disagree about Skeleton though. Skeleton makes you feel productive and safe at first but it has a lot of foot-guns. It leads you down a happy path until you don't like something and then it's difficult to customize. You're much better off using DaisyUI or something headless like MeltUI when it's ready. Take a look at Skeleton's own site https://www.skeleton.dev/docs/get-started Press page down…

I mean it’s called skeleton. If it weren’t anemic we’d be wondering what happened.

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

#169
post #103

Alright, I’m gonna be that guy. Right now, sveltekit + skeleton has absolutely blown my mind at how fast you can make a usable prototype. It’s honestly insane. You don’t even need to know svelte, really. As long as you can understand the file based routing thing, the rest is just html unless you really need more. Especially with the tailwind stuff built right in and a mostly vanilla looking theme. I’ve tried probably…

I'm not finding a "here's what you type and here's the final page" style example. Is there one? Id prefer not to install something and run through the steps just to see it.

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

#170

For information, static sites are unchallenged imho. Even for a certain level of collaboration, I think one could get away with using static sites. I haven't tried this in practice but imagine having a git-based CI/CD flow for a static site, where non-technical end users could use the web-based Markdown editors of github.com or gitlab.com to make small changes, save and push via a pull request. Each merge is of cours…

There's a fairly popular site I run that is run like that, except we don't use github. Just `git push production production` to push the production branch to the production machine. The bare git repo there has a post-commit hook that detects production branch pushes and unpacks the branch to the correct server directory, compiling some static assets along the way. If we want you to be able to push to production we just add your public key to the machine where that git repo resides (no login, just git). Makes pushing changes very easy. But it's obviously not high-availability, or CDN-backed or anything crazy.
Post reply on HN