monies^2
monies^2 is a simple incremental game, it has funny mspaint graphics and about 4 stages from what i can tell. i'm currently working on sacrificing more and more money to summon dreams hoping i can get something nice, you should try it, its not very hands on.adding comments turned out to be one of the difficult things to do yet and i had to change most of the website and rewrite a lot of internal logic to get it to work, i had to allow people to make accounts so that they could make comments, but there was no concept of permissions, and anyone with an account could create posts. to solve that i had to add in a rights system and change creating posts to do that, but then i had to find a assign some rights to users without having to manually go in and give them said rights, so i had to add groups and set it up to add everyone to a certain group. once i did that i realized that it would be a huge pain to add rights to the database manually so i set up a tool to let me regenerate the database whenever i needed to (doing that every time rights are requested would get bad fast). after i had a decent rights system set up, i needed to add comments, so i made more web component things to do that (sorry about the flash of unstyled stuff while the component js is loading, i'm trying to figure out how to make that faster)
i suppose since i'm letting people add comments i should add a reference on the site's markup language (well, mediawiki's markup language)
formatting
so i added a formatting system (well... duh), thats pretty cool. i decided to base it off wikitext because it had all the formatting characters in one place (unlike markdown where youre reaching all over your keyboard), so 2 's would italicize something and 3 would make something bold, = would make headings. i also fixed newlines because they used to not actually show the newline part (every post should render as intended now). eventually i want to add escape characters, images and links so i can show more than just a big wall of text on here.i've been working on minifying my code, the javascript and css seemed pretty easy so i set them aside for later, the real challenge was dealing with the html. html has all sorts of special cases (newlines may or may not be meaningful, whitespace may be rendered) so it was a challenge to figure out what i could and couldnt get rid of, and there werent any tools available that didnt add a runtime performance penalty for php. eventually i was able to cook up some awful perl monstrosity that seemed to work well *enough* (it completely destroyed the 404 page for some reason so i had to go in and fix that). im glad thats over with and i shouldnt have to worry about it anymore.
i've also added an rss feed at https://xutils.org/blog/rss for anyone who still uses an rss reader (if you arent you totally should its so nice having all your news in one place). i dont really have that much to say about it so i guess thats going to be the end of todays entry!
while i was working on it i learned a lot about web dev beyond static pages and some simple js, im excited to see how this goes, if all of this was made in just 5 days i cant imagine how itll end up looking in a year.
note to self: make it so creating a post doesnt discard the draft because the database code messed up and i had to rewrite this whole thing from scratch