Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
n1ghtm4n
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
n1ghtm4n
13y ago
Thank you for putting so much work into this, but it's not Python 3!
2.
▲
by
n1ghtm4n
13y ago
That's not necessarily a bad thing! People move to cities to find a better life, and they usually find it. That's great unless you think a life of rural poverty is some kind of noble virtue. The global population is 7.1 billion an
3.
▲
by
n1ghtm4n
13y ago
Why has no one brought up overcrowding in Japan? You don't think that's going to affect the birth rate? http://inventorspot.com/articles/six_startling_scenes_overcr...
4.
▲
by
n1ghtm4n
13y ago
"[God has] an inordinate fondness for beetles" -- favorite J.B.S. Haldane quote. About 1/4 of all known animal species are beetles.
5.
▲
by
n1ghtm4n
13y ago
1) obscurantist jargon. check. 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 title
6.
▲
by
n1ghtm4n
13y ago
The RedMonk programming language rankings seem much more plausible to me. They're based on 1) questions on StackOverflow and 2) projects on GitHub. http://redmonk.com/sogrady/2013/02/28/language-rank
7.
▲
by
n1ghtm4n
13y ago
Function overloading can be accomplished by name mangling at compile time. PROGRAMMER SEES INTERNAL REPRESENTATION foo(int a, char b) foo_int_char foo(int x) foo_int
8.
▲
by
n1ghtm4n
13y ago
>Ok, so it's not just a language wart, but a fertile source of pointless inefficiency in everyday Python code, glad to know. The fact that it's used all the time would suggest it's not pointless inefficiency, no? Maybe y
9.
▲
by
n1ghtm4n
13y ago
Thank you for the explanation! Converting to a rune slice and back does give me the behavior that I wanted. It still looks butt ugly to me, but at least it works. In Go: fmt.Printf("%s", string([]rune("нєℓℓσ")[1:4]
10.
▲
by
n1ghtm4n
13y ago
You're right. You're not very familiar with Python. String slicing with numbered indices is used all the time. And you can slice more than just strings! It's one of the coolest features of Python and you're really missin
11.
▲
by
n1ghtm4n
13y ago
Thank you for expressing it so eloquently.
12.
▲
by
n1ghtm4n
13y ago
> What happens when you take a slice of a string? 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 b
13.
▲
by
n1ghtm4n
13y ago
A very good point. I still think it's a big win if it makes it 1% easier for new programmers to understand.
14.
▲
by
n1ghtm4n
13y ago
Why not a 2-word struct with the rune count instead of the byte count? There's zero performance cost for many strings because the rune count is known at compile time. For the rest, most strings are too short for Big-O analysis to be re
15.
▲
by
n1ghtm4n
13y ago
That's 10 minutes where I could be... you know, living my life , man. Everybody knows what + does. You don't have to teach a high schooler that "if A or B" means "if either A or B is true". They just get it. B
16.
▲
by
n1ghtm4n
13y ago
Some thoughts after spending ~100 hours with Go. - Function overloading is a major convenience that you will miss. There are differently named versions of every function and you will call the wrong version with the wrong arguments all the
17.
▲
by
n1ghtm4n
13y ago
Austrian School economists don't make predictions, but when they do they're right 100% of the time, except when they're wrong in which case I will remind you that Austrian School economists don't make predictions. If you think I'm exaggerat
18.
▲
by
n1ghtm4n
13y ago
Good to see the Austrian School weirdos at the Ludwig von Mises Institute have given up real-world economics and now just play video games. Hopefully in the virtual world their incredible track record of dead-wrong predictions will cause le
19.
▲
by
n1ghtm4n
13y ago
"All this means that on the scale of hundreds of years our population growth may actually look like a very steep sigmoidal curve. But of course, in 2050 our planet and species will look very different than it currently is. There is a limit
20.
▲
by
n1ghtm4n
14y ago
OMG! America is under attack by birth control pills! Yes, women in the US freely choosing to use birth control is just like forced abortions and house raids in China. "The root cause of most of our problems is our declining fertility rate