Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zedshaw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
zedshaw
15y ago
Everything has overhead and the only way to control it is to have options that fit your proposed work load and then optimize based on empirical evidence. If however your only option is the callback, then you have no way to work around its
242.
▲
by
zedshaw
15y ago
Even though it's GPL you should still read the code. It's very well written and educational. If GPL means you refuse to even read the code then I'm sad for you.
243.
▲
by
zedshaw
15y ago
Ryan has a vested interest in not having people adopt coroutines since they show that his stupid "events with callbacks are faster and easier than threads" is bullshit. The truth is if you have coroutines (and these are really easy in unix
244.
▲
by
zedshaw
15y ago
I moved to SF from NYC, and NYC was way safer by comparison. I used to work for the NYC Dept. of Correction crunching the numbers on arrests and inmates and I can tell you this is the biggest difference between the two cities: NYC -- The
245.
▲
by
zedshaw
15y ago
Just for the record, I am as sick of this part of the book showing up on HN as everyone else. I do not post it here, other people do, and I apologize in advance for it showing up here all the time half-finished. But, if you have a problem
246.
▲
by
zedshaw
15y ago
Funny because I actually solve it no problem by using that wonderful technology called a for-loop, which does terminate. So it's only a halting problem when you use K&R's code.
247.
▲
by
zedshaw
15y ago
Mastering Regular Expressions is the book you're thinking of.
248.
▲
by
zedshaw
15y ago
No, you're wrong still. NL/EOL doesn't factor into it at all. You also are one of those people who thinks the following: 1. "I have been bit in the past by not knowing an obscure fact." 2. "To protect myself, I must learn every obscure fact
249.
▲
by
zedshaw
15y ago
I don't consider that a failing of regular expressions (which predate perl), but a failure of implementation. I've thought that instead of syntax it should be an API option that says "this is a matcher" vs. "this is a capture". Then the sa
250.
▲
by
zedshaw
15y ago
Yeah, so I thought about making the 2nd half a walk through building a regex engine by first building a lexer, then a parser, then the engine, but I wasn't sure if that'd work to teach regular expression. I think it'd be a great way to rea
251.
▲
by
zedshaw
15y ago
I already told you that your reason it was busted is wrong. It's not because of NL or EOL, it's because of the order of precedence of the | operator. If you're going to correct me, be right. In fact, someone also posted a solution in the
252.
▲
by
zedshaw
15y ago
Regex aren't difficult to learn, it's just nobody teaches them as a language with a base syntax and words to use. If you just sit down and memorize the names of a few symbols, then learn what each does, then it becomes fairly clear. It's m
253.
▲
by
zedshaw
15y ago
I tried to keep it generic, so most of the regex in the book will work in Perl, Ruby, Python, and the libraries since they all originate from Perl's ideas of PCRE. The choice of using Python was mostly because people had read my other book
254.
▲
by
zedshaw
15y ago
Nope, the tl;dr didn't miss a thing.
255.
▲
by
zedshaw
15y ago
No, it is true. People learn to code from absolutely nothing all the time with my books. Depending on their motivation they then go on to make all kinds of stuff.
256.
▲
by
zedshaw
15y ago
Wrong again. First case she didn't have to put her full address on, but everyone knew who she was because she was actually walking around giving them out and she didn't mislead them. Second case is about religious freedom and the governm
257.
▲
by
zedshaw
15y ago
Everyone who's for anonymity or pseudo-anonymity wants an all-or-nothing solution where they are totally hidden. The people who propose making everyone known want everyone to totally put all their information online with no protections. Wh
258.
▲
by
zedshaw
15y ago
Wrong. I'd defend his right to say it if he weren't anonymous. In the US you do not have a right to anonymous speech. In most countries you don't have this right. You can mostly say whatever you want in public because the people around
259.
▲
by
zedshaw
15y ago
You can prove it had an effect on the employees that worked there, and to a fairly exact number. The agreement covered all employees, not just tech workers. Combined that makes up about 350k employees, and you can then extrapolate how m
260.
▲
by
zedshaw
15y ago
> The sample of those who were studied included individuals between ages 55 and 65 who had had any kind of outpatient care in the previous three years. So they sampled a conveniently sick group of elderly men and then "controlled" for a
261.
▲
by
zedshaw
15y ago
Yes, it is illegal in a criminal way, thus the original DOJ investigation and settlement between these companies and the DOJ.
262.
▲
by
zedshaw
15y ago
Yes, most of my crashes on the mongrel2 server I run come from ZeroMQ too. They fix them when I find them, but I actually run my servers under valgrind continually so I can catch them and report them.
263.
▲
by
zedshaw
15y ago
Hey, just a quick reply, that, yes I'm rather busy right now but I still squeeze in time for Mongrel2 and should be getting out a 1.8 beta soon.
264.
▲
by
zedshaw
15y ago
> I see this largely as a failure of education. You see this issue in many areas and much earlier on like teaching mathematics. In schools there tends to be one method used and that method doesn't suit everybody. I've found that educati
265.
▲
by
zedshaw
15y ago
Right. Developers getting paid. You hear that sound? Listen real carefully. It's the sound of our profession being flushed down a toilet because your buddies are cheating businesses out of their money by charging too much for too little.
266.
▲
by
zedshaw
15y ago
Looks interesting, good design, didn't try it because it requires a login that gives a scary "THIS APPLICATION WANTS TO READ YOUR EMAIL ON GMAIL OH NOOOEESSSSS" login.
267.
▲
by
zedshaw
15y ago
> As a programmer, you should unequivocally _never_ do this yourself. Bullshit. You guys going around throwing your platitudes, shoulds, and nevers at people rarely have any evidence supporting your claims, and usually it just hides a l
268.
▲
by
zedshaw
15y ago
No, it's defective and buggy. You can't prove logically that the while loop inside will end given any random input. An implementation with a length will end given any input. That is a bug. If you wrote code like that then I'd flag it
269.
▲
by
zedshaw
15y ago
The rise of the internet fanboi has brought a large number of young and/or impressionable people who confuse hubris and verbal violence with competence and depth. After years of "ignoring the trolls" I now prefer to thrash them to warn the
270.
▲
by
zedshaw
15y ago
Excellent critique, but you show your hand here: > K&R is an excellent reference, and LCTHW covers some new topics like valgrind, which is great. Wrong, I already demonstrate that they have an example that is basically strcpy() and
More ›