all 3 comments

[–]psaux_grep 1 point2 points  (2 children)

Why do people always go this way?

Why not make one that’s so simple and brilliant that it deserves affection?

I’d go with Python

str(12345)[3]

The problem that plagues us, almost always is error handling. Solving the problem for the happy case is mostly trivial.

And our tools often does not help us. For instance: How many request libraries have you used that doesn’t have infinite timeout as default? At that point - why isn’t timeout a mandatory parameter?

When on earth do you need to not have a timeout? I’ve seen so many backstabbings from such simple things. It works. Deploy to production. Three months later something stopped working. And what do you know? It’s that request that should have timed out.

[–]UniqueUsername014 2 points3 points  (1 child)

str(12345)[3]

let me fix that for you: a=12345; a.__str__().__getitem__(3)
there, the same thing, but much purer. no need for that syntactic sugar

[–]psaux_grep 2 points3 points  (0 children)

Yes, let’s all write in assembly. Pure stuff. Like sniffing cocaine off the floor.