Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Hello, my name is Tim

Name: Tim 2017-02-26 21:39

https://twitter.com/tdierks/status/835912924329836545

Hello, my name is Tim. I'm a lead at Google with over 30 years coding experience and I need to look up how to get length of a python string.

you don't know if its s.length, length(s), s.len or len(s) (or something eles??).. becaues python is designed by a fucking returd.

in scheme it's (string-length s) and it's never difficult to remember.

Name: Anonymous 2017-02-26 22:07

I haven't programmed anything in Python in years but I'm still fairly certain it's len(s)

Name: Anonymous 2017-02-26 22:07

What kind of argument is that?

Name: Anonymous 2017-02-26 22:08

>>3
Wow, we posted at the exact same time. We must be connected somehow.

Name: Anonymous 2017-02-26 23:17

JACKSON FIVE GET

Name: Anonymous 2017-02-27 0:10

>>2
s.__len__() is also fine

Name: Steve 2017-02-27 9:09

python is a bad language

Name: Anonymous 2017-02-27 9:13

>>1
Actually keeping the #Current_Lang in memory replaces productive algorithms with useless trivia, which is easily googleable.
He is saving his brain memory space for things that matter.

Name: Anonymous 2017-02-27 10:35

In Javascript it's s.length and it's never difficult to remember.

Name: Cudder !cXCudderUE 2017-02-27 10:37

You either have 1 day of Python string-manipulation experience or 30 years of asking-others-to-do-it-for-you experience.

a lead
...probably the latter.

>>8
Bullshit.

Name: Anonymous 2017-02-27 10:50

he wouldn't be wrong if he mentioned some different, less universal API function. len() is extremely common in Python - both because string manipulation is common task and because this function is used not just for strings but also for many different data structures. I don't remember names of most of the date/time manipulation functions but len() is the second thing that comes to mind when I think about FIOC standard library functions (first is print()).

Name: Steve 2017-02-27 11:11

>>9
smh fam switching between s.length in javascript and s.length() in sepples i get a compiler error every time vector.size() also fucks me up bro

Name: Anonymous 2017-02-27 11:32

Name: Anonymous 2017-02-27 13:14

Name: Anonymous 2017-02-28 16:57

>>14
Do you have non anecdotal evidence?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List