:: krowemoh

Thursday | 26 DEC 2024
Posts Links Other About Now

previous
next

PHP BASIC 1

2024-09-19
php-basic

I fixed up issues with my OPEN statement and I also added in the SELECT statement and now I'm able to create the main area of my blog. It can open my posts and read in a record and parse out the various things I need for the home page.

I didn't realize that I didn't finish some of my implementations such as handling assignments to an array. Things like X<-1> = 1 weren't working.

I'm pretty happy that I haven't used this anywhere important as I imagine there is going to be quite a few breaks and optimizations that will happen if I do use this for real.

I'm also pretty happy that I was able to jump back into the codebase and get these things sorted out pretty quickly. I thought I had forgotten most of it but the logic has stuck with me and reading my own code was pretty straightforward. I'm slowly learning things and this was one of those things where I could see that I've learned.

Still though, there is much to learn as I can tell that my templating language is terrible and held together by duct tape. It's going to be a fun day when I can port the blog over.

The next thing I need to work on is dynamic routes and passing in url slugs.

Note: Dynamic routes was relatively straightforward as it re-used the dynamic route logic I already had in SERPAHIM. Adding this to WEB.INT was quick and I quickly got my blog posts rendering.

I did make some changes to the EVALUATE.BTL function to handle larger subroutine calls.

I think the next thing to work on is skip writting the curly braces for each line and to instead create blocks that are BASIC code and use the curly braces for just embeds.