Jump to content

fanThomas

Members
  • Posts

    2
  • Joined

  • Last visited

About fanThomas

  • Birthday 08/01/1950

Previous Fields

  • Languages
    PHP, Javascript, CSS3, HTML5

Profile Information

  • Location
    Winterthur, Switzerland
  • Interests
    Classic Cars, Tube Radios, Archaeology

fanThomas's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I am missing the explanation for the f-strings in python 3.6+. I am learning python and found such a expression in the example for the __str__() Function. I was curious how that works but din't find an explanation. An external investigation cleared the fog an I found that it is not mentioned in string.format section where it belongs to.
  2. I needed to clone an array so that i could reuse its original content later, however the program din't work correctly, the original was always destroyed. I used a simple assignement as it works fine in PHP. Researching on the internet for the problem I found that Objects in Javascript are assigned by reference always.On W3schools i did't found any hint about this important behaviour difference to other languages, neither in the tutorial nor in the reference. I suggest therefore to loose a word anywhere about this, best in all concerned Objects as Arrays, Date Objects and Javascript Objects. This would help new programmes to better understand the Javascript concept and save lot of time for bug fixing.Also an example how to best clone an Array or other Object would be greatly appreciated since it is not easy to do this in Javascript.I love to use W3schools and I use it always for reference when I'm programming. Especially the examples on your pages are very helpful. Many times I could simulate the problem solving before i used it in my programs. Thank you for this very helpful tutorial and reference.Thomas Jakober
×
×
  • Create New...