This is an interview question. Does subclasses inherit private fields? I answered “No”, because we can’t access them using the “normal OOP way”. But the interviewer thinks that they...
  • May 19, 2022
  • 0 Comments
According to http://www.faqs.org/docs/diveintopython/fileinfo_private.html: Like most languages, Python has the concept of private elements: Private functions, which can’t be called from outside their module However, if I define two files:...
  • May 17, 2022
  • 0 Comments
I’ve had good luck for several years (6 years!) running WordPress with Members Only and Feed Keys. This provided a completely members only blog (no external view at all)...
  • May 16, 2022
  • 0 Comments
I’ve stripped Private: and Protected: from my custom post title that are forced to be private. I’m using CSS Tricks’ snippet for doing so: function the_title_trim($title) { if( is_admin()...
  • May 15, 2022
  • 0 Comments