News for hackers. Stuff that matters.
Re:Programmers can’t write algorithms without help by drizze on Monday November 04, 2019 @12:04PM (#21443676)
In their defense, some other languages make the length of a string an attribute/property on a string instance. Python feels like the odd one out here making it a free function you must pass an instance to.

If the tech lead spent a lot of time working with another language that made the length an attribute, I think it would be reasonable for them to need to look it up often.

https://apidock.com/ruby/String/count https://docs.oracle.com/javase/7/docs/api/java/lang/String.h... https://developer.apple.com/documentation/swift/string/30035...

There are no comments on this comment yet.