Skip to Content

 Forest Lytton

Wishing you health joy and happiness.

17 Sep 2024

R68

ChatGPT & Good coding practices

2023-03-29 12:08:17

In the spirit of clean code and improving code regularly, I ran some old code through chatGPT to see what needs doing and got some great advice back, based on other best practices I have been reading about hear and there. As I am a bit slow to implement, I will have to fill you in afterward - sorry to keep you hanging. haha.


R67

PHP Lessons

2023-03-29 12:04:42

Having implemented the ability to add or edit a blog post, display a tag cloud with counts, and posts by month, I was on the verge of improving the filtering again, but I deserted my project 18 months ago when I my work days got too busy. So this time around, I am going back to basics and understanding things in baby steps - getting more familiar with syntax and alternative syntax (I had found that confusing and hard to remember with all the changes to quotes and such). I am also starting my learning with hard-coded arrays and tags and practice with variables. I am working through making dynamic links in oder to apply css dynamically based on current page. This was really my impetus for learning php in the first place, that coupled with the desire to create a CMS from scratch rather than use a commercially built product like WP, Blogger, or Joomla. The best thing about having several weeks in a row to spend an hour or two is I am beginning to think in coding logic finally, and this week started to be able to make the leap from the phased lesson to the full-strength php I had implemented with strong support from a practiced coder.