Sometimes, way back in the past, software writers set massive traps that we still fall into today. Like when someone at Microsoft wanted to make MS-DOS seem different to Unix so they used backslash ā\ā for filename separators rather than forward slash ā/ā. Or that other time, when someone else (or maybe the same person - who knows) thought it might be a wizard wheeze to make MS-DOS not care about the case of filenames so that Fred and fred were regarded as the same file.
This piece of genius still haunts us today. For example, when you put the web pages that you tested on your PC up onto GitHub and then find that they donāt work because youāve said ātomato.pngā in the code and the file is called āTomato.pngā.
Now, weāll gloss over the stupidity that caused the file to be called āTomato.pngā in the first place - mainly because that is my stupidity. Letās focus on how hard it is to fix. If you rename the file on your PC (which is hard enough because you canāt just rename Tomato to tomato - you have to go Tomato->temp->tomato) GitHub doesnāt see this change in filename name as a change in your project and so it wonāt push the changes into the server. I could change the filename to āTomato.pngā in the program code, but all my other files start with a lower case letter and Iām loth to be inconsistent. I do have some pride left.
In the end Iāve fixed this by changing the name of the image file to āredtomato.pngā which does reflect a change and also makes the game futureproof in that if I fancy adding some blue tomatoes later I now have a naming convention I can use.
If youāre not sure why I want to have tomatoes in my game take a look here. See what kind of high score you can get. My maximum so far is 740.