Bert Visscher's Website

Home Love Letter Accessibility Blog Work RSS Feed Contact
Nederlands
Posted on: 2018-07-01

Starting Off My New Website

I've had this webspace for quite some time already, and only now is it starting to look like something. That's because there are some requirements I wanted this website to meet, which I managed to do by typing all of the code myself. Here's what I achieved that way.

Oh, before I go on... Although I tried to keep this page easy to understand it will still get pretty geeky.

The Code is Clean

This website only contains the code I typed myself. So, it should all look squeeky clean. Both HTML and PHP are plain text anyway, so... :-)

Redirects

As of the date I'm posting this, my website contains 10 redirects. I made them so that, if someone asks for, say, a link to a social platform I use, I could say something like: "You can find it at bertvisscher.net/..." followed by something which depends on what I'm asked for.

No Repetitions or Unnecessary Typing

See that date at the top of the page? No, that wasn't typed by me while I wrote this post. I made some PHP which takes the name of the directory the post is saved in, and then puts dashes in the right places.

I didn't want to have to type the same code in several files, let alone in every blog post, so I did what I could to...ahem..."include" lines of code. If you understand PHP, then you know what I mean. It's basically making a file with lines that are used on multiple pages and then saying, in every file in which I want to use them, "include /includes/theselines.inc here".

Automatically List Blog Posts

The page at bertvisscher.net/blog shows a list of all the blog posts I type. Of course, I could enter a line for each post manually, but what if I forget one? That's why I use PHP to make that list for you, every time you visit bertvisscher.net/blog.

Yes, you read that right. Every time you visit that page, some PHP code makes a list of all the blog posts I put on this website, especially for you.

I've done it before, on the website of an organization I've worked for.

I hope you enjoyed reading this blog post. If you have any questions or comments, then please let me know in the form down below.


Comments

Please fill in all three fields or the form will not be sent. Your comment will not appear right away.