Live data from Hacker News

How to build a website without frameworks and tons of libraries

kodingkitty.com

31–40 of 270 posts

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

#31
I believe the most minimalistic and productive way is to just use php. The language was specifically just created for that. If it's a simple site then you don't need composer you don't need router logic. just create separate files for header footer navigation and include them on each page.

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

#32

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…

I'm a technical writer and this is how I'm running docs at my company. You'd be shocked at how easy it was to get one of our content marketers comfortable enough to start opening pull requests for an internal-only docs site. (It helped that I assured them that, thanks to how branches and approval workflows function, absolutely no changes they made could ever wreck the live site.)

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

#33
post #21

Slightly off-topic: His single "index.php" with jQuery is helping him to earn thousands per month. https://twitter.com/levelsio/status/1675829733668319233/phot...

Are there ways to view tweets without an account? Kind of like archive.is? For now, I could enter it in Google and view cache, but I assume that will go away soon.

And if I understand correctly, it's not the index.php, but the actual service behind it, that earns thousands per month. Looks nice :)

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

#34
post #21

Slightly off-topic: His single "index.php" with jQuery is helping him to earn thousands per month. https://twitter.com/levelsio/status/1675829733668319233/phot...

Probably doesn't need jquery either as most of its functionality is now native to browsers.

Also fwiw, another one here without a logged in Twitter acc

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

#35

I believe the most minimalistic and productive way is to just use php. The language was specifically just created for that. If it's a simple site then you don't need composer you don't need router logic. just create separate files for header footer navigation and include them on each page.

if you want simple, you can't beat PHP + HTML. I wouldn't actually go that simple for anything that's more than a single purpose script, usually I would at least have a separate templating library, but it's really nice that you can do it.

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

#36

I believe the most minimalistic and productive way is to just use php. The language was specifically just created for that. If it's a simple site then you don't need composer you don't need router logic. just create separate files for header footer navigation and include them on each page.

There are a number of simple frameworks, but soon you are back to the common bloat from adding too many frameworks.

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

#38
post #33
post #21

Slightly off-topic: His single "index.php" with jQuery is helping him to earn thousands per month. https://twitter.com/levelsio/status/1675829733668319233/phot...

Are there ways to view tweets without an account? Kind of like archive.is? For now, I could enter it in Google and view cache, but I assume that will go away soon. And if I understand correctly, it's not the index.php, but the actual service behind it, that earns thousands per month. Looks nice :)

[deleted]

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

#39
A tiny mostly static website written by one person certainly doesn’t need anything special.

A website/webapp with millions of visits per day and a ton of stakeholders requesting features every week, on the other hand...

It all depends on the use case, like most stuff.

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

#40

I believe the most minimalistic and productive way is to just use php. The language was specifically just created for that. If it's a simple site then you don't need composer you don't need router logic. just create separate files for header footer navigation and include them on each page.

Ya, or any server side scripting language. You just want the ability to refactor your site, as in, name, save, and load data and code blocks.

And if html allowed inserting html as it does css or js from external files, even that would be mostly be redundant. If only it let you use at will.

Post reply on HN