100 Days of Code Day 81
Have you ever done a problem then checked other people solutions to see they did in a much better and easier to understand way. Well that happened to me today. For the exercise Anagram (check if two words are different but made up on the same letters) I had a dictionary of characters and their counts I was comparing. The first community solution they just sorted the words and checked if they were equal. So much easier and better. Oh well, at least it works. Everyone is way too gung ho on LINQ in the C# track. I feel like a loser if I don’t do things the LINQ way.
Last night I had to wait up for laundry. I think I got if/then/else/else if working while I waited. I think.
Today I decided to try for the PRINT statement. It is one of the statements left I need to start running programs. I got it working and still had some motivation so I decided to try the load command that is REPL only. It took some doing but I finally got it (if statement jump labels were messed up again for a while).
At this point I should have everything I need for a 100 bottles of beer program that I downloaded as a test (can’t remember from where). I needed to add more built-in functions str$, ltrim$, rtrim$, and trim$. I also had to fix some of my syntax differences like requiring == for equality checks in the source file. But eventually (after fixing some IF labels), I got it to run! Huzzah! it is a partially functional language now.
