Tag Archives: Names

Code Scent 92 – Remoted Subclasses Names – Python Dev Feed

Code Scent 92 – Remoted Subclasses Names In case your courses are globals, use absolutely certified names TL;DR: Do not use abbreviations in subclasses Rename your courses to supply context Use modules, namespaces or absolutely certified names Mistaken summary class PerserveranceDirection { } class North extends PerserveranceDirection {} class East extends PerserveranceDirection {} class West…

Read More

Teaching the computers to write number names using JavaScript – JavaScript Dev Feed

Teaching the computers to write number names using JavaScript Today we will try to teach the computer to translate numbers into words First Step Let’s use the number-word dictionary const numberWords = { 0: ‘zero’, 1: ‘one’, 2: ‘two’, 3: ‘three’, 4: ‘four’, 5: ‘five’, 6: ‘six’, 7: ‘seven’, 8: ‘eight’, 9: ‘nine’, 10: ‘ten’,…

Read More