Morning!
Good morning lovely people
I'm building a website for a friend and decided to use only server side rendering and (if possible) no (cl)js. only HTML and CSS. so far so good. And it certainly makes a very fast impression.
People were doing this in the 00s too. PHP + MySQL. or CGI. It's all the rage again :)
I made a guestbook with babashka + PHP :P https://cgi.michielborkent.nl/guestbook.php https://blog.michielborkent.nl/using-babashka-with-php.html
https://mikrobloggeriet.no/ has been server side rendered HTML since its inception, and we have no plans for client side state or client side rendering! The biggest surprise for me has been how much I enjoy quick deploys. Tests take maybe 15 seconds, then the new app launches in about another 5 seconds.
correction: 17 seconds total.
$ pwd
/Users/teodorlu/repo/mikrobloggeriet/mikrobloggeriet.no
$ time bb deploy
test
[(................................)(.)(..)(...)(.)(.......................)(..........)(.....................)(....)(......)(..............)(..)(..............)(.)(...)][]
55 tests, 137 assertions, 0 failures.
deploy*
Pushing code to garden...
Starting new deployment...
Fetched dependencies
Started nREPL server on 0.0.0.0:6666
[Deploying... /]
Success: App deployed to:
push
Everything up-to-date
bb deploy 17.39s user 2.37s system 48% cpu 40.590 total Both are very fast indeed, nice work. and yes, this is what we used to do. and then React came along. I'm enjoying it so far and I'll see how far I get.
ooh and I'm using SQLite as a DB, also very convenient.
sqlite rocks!
@thomas what are you using for rendering html? Hiccup?
yeah Hiccup, seems to do the job.
and I even have my SCG in hiccup.
found a website that converts it for me 😉
SCG? 🧐
SVG
sorry
Ahh 😁
fat fingers
"it's just data" ❤️
I love representing stuff with EDN
yeah, I love EDN as well... so much nicer then JSON IMHO.
morning
👋 🇪🇺
Morning
good morning
Good eduction morning
I keep trying to make sequence work so I can have cached goodness, but I've not been successful yet. I still need to redo the work
I'm trying to reduce RAM so I absolutely don't want any cache!
Eduction is a real gem Feeling the RAM prices pressure?
Just trying to be a good citizen, no external pressure
Eductions are cool and you're doing good by using them ❤️ (we won't call them cold streams)
I never thought CPU cycles and storage io would become so cheap
Thanks to Sama, they'll get more expensive again, don't get used to it