n1ghtm4n
Joined 14 years ago
Joined 14 years ago
The global population is 7.1 billion and rising fast. We should all cheer when we hear these statistics.
https://en.wikipedia.org/wiki/Urbanization#Environmental_eff...
http://inventorspot.com/articles/six_startling_scenes_overcr...
2) banal observations once you finally figure out WTF they are talking about. check.
3) lauded for being the smartest, greatest, most brilliant intellectual of their age. check.
4) books with inscrutable titles like Bubbles: Spheres Volume I: Microspherology and Rage and Time. check. (LOL! How big do your balls have to be to give a book a title like that?)
5) constant name-dropping of fashionable intellectuals. check.
Must be European philosophy!
UPDATE: quote from Amazon description of Bubbles. Behold the enormity of Peter Sloterdijk's balls:
"reinterprets the history of Western metaphysics as an
inherently spatial and immunological project, from the
discovery of self (bubble) to the exploration of world
(globe) to the poetics of plurality (foam)."
http://www.amazon.com/Bubbles-Spheres-Microspherology-Semiot...http://redmonk.com/sogrady/2013/02/28/language-rankings-1-13...
PROGRAMMER SEES INTERNAL REPRESENTATION
foo(int a, char b) foo_int_char
foo(int x) foo_intThe fact that it's used all the time would suggest it's not pointless inefficiency, no? Maybe you should try Python before bashing it.
>Python is doing the exact same thing as Go here, but in a less efficient manner.
It's not doing the same thing. "�є" is not the same as "єℓℓ".
In Go:
fmt.Printf("%s", string([]rune("нєℓℓσ")[1:4]))
// єℓℓ
In Python: print("нєℓℓσ"[1:4])
# єℓℓThis might explain why my comments seem like heresy to you. I would point out that the OP is about Python programmers switching to Go.
What happens when you slice a unicode string in Go is that it cuts multi-byte characters right in half, unless you get the byte boundaries just right. I know real programmers keep the byte boundaries for all the chars in all their strings in their head at all times, but for people like me this basically makes string slicing unusable for non-ASCII text.
Python somehow magically slices unicode strings without chopping characters in half.
In Python:
s = "нєℓℓσ"
s[1:4] # "єℓℓ"
In Go: s[1:4] // "�є"