Programming
-
In English code, we often like to combine multiple words when naming something in our code. This precision is sometimes necessary because naming is important, and hard! If you’re not convinced, read Tom Benner’s “Naming Things, The Hardest Problem in Software Engineering”. But, most programming languages don’t allow spaces in variable names, because lexers and…
-
Arithmetic in Python is pretty easy, right. For example, just add numbers: 5 + 3 8 But, just try this with numbers in other languages, like Arabic (it’s the same operation as above: 5 + 3): ۵ + ۳ Cell In[3], line 1 ۵ + ۳ ^ SyntaxError: invalid character ‘۵’ (U+06F5) Oh no! Python…
-
Here I am coding up some exercises in my first love of a language, Perl (Its the CPAN, I tell you). In my console, I kept getting a strange result: Hi Fred! You are the first one here! 1 Hi Barney! I’ve also seen Fred here! 2 Hi Wilma! I’ve also seen Fredand Barney here!…