tymski.pl/

First website update

The codebase got a tiny bit better. I was using iframes for menu, header, footer...


Long time ago...

I had a blog on tymski.pl like over 10 years ago, but deleted it at some point, because it was even more cringe than this one.

Just recently

I re-bought this domain on OVH and noticed I got a free 100MB hosting with PHP support. I was planning before to just host a static site on github pages, or maybe develop a small DotNet App and put it on a small Azure tier.

Back to php

My first website template I wrote when I was like 15 I think, was a html table with iframes for each section. I had an iframe for the menu, header, footer. I was so proud of my design.

But the guys on a programming forum told me I should use something called "PHP" for templating and CSS for the layout. I created my new websites with php, using "include" for the sections. To this day my first client's website uses that template. I think they will go under soon though.

AI php template

I was curious if the greatest coding model Claude 3.5 can write me a shitty php template, without me spending time on coding, and it did. I just wanted a basic template that reminded me of a simpler time in my life, over 15 years ago, when for me even the most basic code was magic.

After 5 attempts of trying to explain to the AI that the dark mode should have dark background, I looked at the code.

Get posts? I think I should get help.

First, let us take a look at some crimes against programming in the current codebase that I asked for. For example, whenever we want to do anything with posts, we just load all files from the 'content' folder! And these are just php files with variables like title, date, excerpt, content. That's just bad.

However, each time the AI wants to sort the posts, it makes a different function to do that, and sorts them twice. I didn't ask for that. Did it lower it's standard of coding to match mine? Or is it just stupid?

I don't know where this post was going, but I need to go now, cya.

[TODO] Never finish this post.