underscore naming convention in Python

Single and double underscores have a meaning in Python variable and method names. Some of that meaning is merely by convention and intended as a hint to the programmer—and some of it is enforced by the Python interpreter. If you’re wondering “What’s the meaning of single and double underscores in Python variable and method names?” … Continue reading underscore naming convention in Python

Captcha if you can: how you’ve been training AI for years without realising it

All those little visual puzzles add up to AI advances Congratulations are in order. You, yes you, dear reader, have been part of something incredible. Thanks to your hard work, millions of books containing pretty much the sum-total of human knowledge have been successfully digitised, saving their texts for future generations. All because of you. … Continue reading Captcha if you can: how you’ve been training AI for years without realising it

What’s the difference between using “let” and “var” to declare a variable in JavaScript?

ECMAScript 6 introduced the let statement. The difference is scoping. var is scoped to the nearest function block and let is scoped to the nearest enclosing block, which can be smaller than a function block. Both are global if outside any block. Also, variables declared with let are not accessible before they are declared in … Continue reading What’s the difference between using “let” and “var” to declare a variable in JavaScript?